microsoft / ApplicationInsights-Go

Microsoft Application Insights SDK for Go
MIT License
154 stars 52 forks source link

Send performanceCounters instead of customMetrics #43

Open dcseifert opened 4 years ago

dcseifert commented 4 years ago

Description

I am currently using this project to monitor my project kelon with Application Insights. So far this works great, but I'm struggling a bit with Performance-Metrics. I.e. when I try to send the current CPU-Usage like this: client.TrackMetric("% Processor Time", cpuPercentage) the value only appears in the table 'customMetrics' and not 'performanceCounters' inside the view 'protocols'.

Is there any possibility to send metrics to 'performanceCounters' so that they appear in the performance monitor?

emmansun commented 4 years ago

You can reference performance.go. I copied the names from nodejs implementation.

dcseifert commented 4 years ago

Awesome! Thank you so much!