You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Azure Monitor exporter to export metrics using the OTLP exporter, the customMetrics showing up in application insights always have value: 0.
Steps to Reproduce
Can be reproduced by taking measurements (e.g. from a counter) in a .NET application:
Any IntValue() will be discarded, which might be why for the above sample code (which uses Counter<long>) the value in Application Insights is 0. If wanted, I can work on a fix for this.
bastbu
changed the title
Azure Monitor exporter exports metric values always as 0 for counter measurements
Azure Monitor exporter exports metric values always as 0 for long counter measurements
Feb 24, 2023
Component(s)
exporter/azuremonitor
What happened?
Description
When using the Azure Monitor exporter to export metrics using the OTLP exporter, the
customMetrics
showing up in application insights always havevalue: 0
.Steps to Reproduce
Can be reproduced by taking measurements (e.g. from a counter) in a .NET application:
Expected Result
As per the above example, the
value
field should be10
(given avalueCount
of 1).Actual Result
The
value
,valueMin
,valueMax
andvalueSum
fields are all0
:The console exporter on the test application displays the value to be
10
, which is correct:Collector version
0.72.0
Environment information
Environment
OS: WSL2 on Windows 11
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: