microsoft / ApplicationInsights-Announcements

Subscribe to this repo to be notified about major changes in Application Insights.
38 stars 13 forks source link

Deprecate PerformanceCounter type #6

Open SergeyKanzhelev opened 8 years ago

SergeyKanzhelev commented 8 years ago

We plan to deprecate PerformanceCounter type in favor of custom metrics.

Proposed conversion is similar to what we use for custom metrics today. When we receive PerformanceCounter (pc) we save it as a Metric (m):

m.Name = pc.CategoryName + “ - “ + pc.CounterName
m.Value = pc.Value
m.Count = 1
m.Properties[“CounterInstanceName”] = pc.InstanceName
foreach (prop in pc.Properties)
    m.Properties[prop.Name] = prop.Value

There is a multi-step plan to accomplish this:

  1. Overlap period when performance counters are forked as metrics
  2. After a week of overlap period UI will switch to use metrics. Historical data for performance counters should be available in metrics explorer

FAQ

Will it affect existing limits?

Will there be a data loss?