2
votes

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.

2
Same problem. I'm tracking from a worker role application, no metrics can be found in the metrics explorer..Peter Lindström
@PeterLindström I use workaround with custom events with properties and metrics. Still, it's not possible to vizualise this data. All you can do, is to go inside each event to see these values. If no one will post better answer, will submit it by myself with custom events.Tonven

2 Answers

4
votes

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)

0
votes

@PeterLindström, @Tonven You should be able to now visualize data for custom metrics and properties. Go to this blog to learn more