Setu-TS
    Preparing search index...

    Interface IMetric

    A registered metric.

    0.1.0

    interface IMetric {
        help: string;
        name: string;
        type: MetricType;
        observe(value?: number, labels?: Readonly<Record<string, string>>): void;
    }

    Hierarchy (View Summary)

    Index
    help: string

    Human-readable description.

    name: string

    Metric name (Prometheus naming conventions).

    The metric instrument kind.

    • Records an observation.

      For counters the value is the increment (default 1); for gauges the new value; for histograms and summaries the observed sample.

      Parameters

      • Optionalvalue: number

        The observed value

      • Optionallabels: Readonly<Record<string, string>>

        Label values keyed by label name

      Returns void