MCPcopy
hub / github.com/prometheus/client_js / MetricConfiguration

Interface MetricConfiguration

index.d.ts:221–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219type LabelValues<T extends string> = Partial<Record<T, string | number>>;
220
221interface MetricConfiguration<T extends string> {
222 name: string;
223 help: string;
224 labelNames?: T[] | readonly T[];
225 registers?: (
226 | Registry<PrometheusContentType>
227 | Registry<OpenMetricsContentType>
228 )[];
229 aggregator?: Aggregator;
230 collect?: CollectFunction<any>;
231 enableExemplars?: boolean;
232}
233
234export interface CounterConfiguration<T extends string>
235 extends MetricConfiguration<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected