System Library Common Framework
Search Results for

    *.Benchmark*,*.Tests*,*.ApiTests*,*.BaseTest*,DelegateJsonConverter,CalleeCancelledRequestException,ClientResponse,ContentType,OutputCachePolicy
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework SystemLibrary.Common.Framework.Net.dll

    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
    Examples
    Arguments
    X

    Methods

    Increase a metric by 1 for a specific label and segment

    public static void Inc(string label, string segment = null)

    X

    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
    X
    Methods arguments
    Type Name Description
    string label

    Name of the Metric, 'The Pie Chart' if you will

    string segment

    Null or a specific segment to increase within the same 'Pie Chart'

    }

    In This Article
    Package: nuget
    Source: github
    Website: System Library Common Framework