Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.1k views
in Technique[技术] by (71.8m points)

azure - Application insights track metric is not working?

I followed up this question: Application insights for wpf application and created console application, where I am using application insights like this:

var telemetry = new TelemetryClient();
telemetry.TrackEvent("My event");
telemetry.TrackMetric("Test Metric", 13);
telemetry.TrackTrace("Simple log message");
telemetry.TrackException(new Exception());

Everything works and data is sent to Azure, except TrackMetric. Metric is not available neither in metrics explorer, neither in diagnostic statistics.

How can I fix it?

Thank you in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Update 2/5/15: Custom metrics exposed through trackMetric and the various trackEvent( x, properties, metrics ), or other track calls that take custom properties and metrics should now be visible in both Metrics Explorer and event details blades.

Prior: metrics were only visible in event detail property blades (at the bottom)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...