-
Notifications
You must be signed in to change notification settings - Fork 981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Registry publishing metrics with count equal to zero #2463
Comments
Also, I've noticed that there is a comment on
|
I am also facing the issue. In a try to overcome this, I "recreated" AzureMonitorMeterRegistry class but replaced the
Most probably not the best solution, but it works, at least for Timer metrics, which we use |
We found other way to solve this which may be useful. Microsoft's library provides interface Kotlin code:
|
This commit also applies it to FunctionTimer and DistributionSummary. Closes micrometer-metricsgh-2463
@uvalashchuk @vagpap Thanks for sharing! I created #2472 to try to resolve this. |
I understand that Azure wants count to be greater than zero but I might create an issue for them because this is super weird:
|
We're using micrometer to collect metrics into Azure application insights and faced an issue when data from timer being published even when timer was not called in this period. This results into invalid aggregation, because Azure app insights replaces
valueCount = 0
tovalueCount = 1
.For example, we're using 1 minute collecting interval and a method which has
Thread.sleep(300)
in it's body. This method produces metrics described below.For entries which have
value = 0
there where no method calls, but it was pushed into app insights. This results in wrong aggregation when we're building dashboards using default metrics visualizer from Azure.(Method executes 300ms, but on time chart we're observing average time of 150ms)
The text was updated successfully, but these errors were encountered: