NamespaceSystemLibrary.Common.Framework
Metric class count metrics in memory and exposing it to Prometheus or the /metrics/ui endpoint if you are on Gold Tier license
Metric
public static class Metric
Inheritance
object
Metric
Metric class count metrics in memory and exposing it to Prometheus or the /metrics/ui endpoint if you are on Gold Tier license
Increase a metric by 1 for a specific label and segment
Increase cache metric hit and miss:
Metric.Inc("cache", "hit");
Metric.Inc("cache", "miss");
// Results in one metric "cache" with two segments, hit and miss, with 1 count in each
}