UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

11 lines 1.09 kB
import { AvgMinMaxConfig, CounterConfig, GaugeConfig, HistogramConfig, AvgMinMax as IAvgMinMax, Counter as ICounter, GaugeExtra as IGaugeExtra, Histogram as IHistogram, LabelsGeneric, MetricsRegisterCustom, NoLabels, StaticConfig } from "@lodestar/utils"; import { Registry } from "prom-client"; export declare class RegistryMetricCreator extends Registry implements MetricsRegisterCustom { gauge<Labels extends LabelsGeneric = NoLabels>(configuration: GaugeConfig<Labels>): IGaugeExtra<Labels>; histogram<Labels extends LabelsGeneric = NoLabels>(configuration: HistogramConfig<Labels>): IHistogram<Labels>; avgMinMax<Labels extends LabelsGeneric = NoLabels>(configuration: AvgMinMaxConfig<Labels>): IAvgMinMax<Labels>; /** Static metric to send string-based data such as versions, config params, etc */ static<Labels extends LabelsGeneric = NoLabels>({ name, help, value }: StaticConfig<Labels>): void; counter<Labels extends LabelsGeneric = NoLabels>(configuration: CounterConfig<Labels>): ICounter<Labels>; } //# sourceMappingURL=registryMetricCreator.d.ts.map