ApplicationInsights-dotnet icon indicating copy to clipboard operation
ApplicationInsights-dotnet copied to clipboard

[Metrics] Metric aggregation do not respect the roleName and roleInstace of requests and dependencies

Open SergeyKanzhelev opened this issue 9 years ago • 7 comments

Metric pre-aggregation should respect roleName and roleInstance context properties of the requests and dependencies it pre-aggregates to support multi-tenant scenarios when a single process runs multiple roles (service fabric scenario)

SergeyKanzhelev avatar Mar 30 '17 18:03 SergeyKanzhelev

cc: @macrogreg

SergeyKanzhelev avatar Mar 30 '17 18:03 SergeyKanzhelev

@SergeyKanzhelev I would suggest to close this particular issue because the scenarios we support for metric aggregation currently do not require it. There is a ton on dimensions we could use, but we use only those that are required by currently supported per-aggregation scenarios. Why are these special?

What are your thoughts on this?

macrogreg avatar May 22 '17 20:05 macrogreg

In case of Service Fabric application the same appdomain may host multiple roles. In this case pre-aggregation logic should respect role name specified for request or dependency.

@nizarq can shed some light on specifics.

I'm not asking for any other dimensions. Those are special as current backend does the same already - pre-aggregates the same exact metrics for requests and dependencies on role and role instance

SergeyKanzhelev avatar May 22 '17 20:05 SergeyKanzhelev

Thank you for clarifying, @SergeyKanzhelev . Since Service Fabric support for per-aggregations was not intended in its initial release we should mark this issue differently than "bug". What would be an appropriate label? "Feature Request" or similar?

Overall, I absolutely agree we should support Service Fabric scenarios as soon as we can. However, since we have explicitly not done it yet, we should correctly label this tracking item.

Thanks!

Update: I went through available labels. I did not want to create a new one to keep things concise. Out of the ones available, "enhancement"seems most fitting. Please let me know if you feel otherwise.

macrogreg avatar May 22 '17 20:05 macrogreg

I would like to understand how metric pre-aggregation works. Is there a GitHub issue/discussion or something else I can look at.

nizarq avatar Jun 09 '17 21:06 nizarq

There is some limited discussion here: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics#trackmetric

macrogreg avatar Jul 05 '17 23:07 macrogreg

closing as duplicate.https://github.com/microsoft/ApplicationInsights-dotnet/issues/1233

cijothomas avatar Oct 18 '19 17:10 cijothomas