UNPKG

@christiangalsterer/mongodb-driver-prometheus-exporter

Version:
21 lines (20 loc) 923 B
import type { Logger } from './exporter'; export declare class ConsoleLogger implements Logger { info(message: string): void; warn(message: string): void; error(message: string): void; } /** * Merges an array of label names with the label names of the default labels into a new array. * @param labelNames array of label names to merge with the default labels * @param defaultLabels default labels to merge with * @returns array of merged label names */ export declare function mergeLabelNamesWithStandardLabels(labelNames: string[], defaultLabels?: {}): string[]; /** * Merges Labels with default labels * @param labels labels to merge with the default labels * @param defaultLabels default labels to merge with * @returns merged labels */ export declare function mergeLabelsWithStandardLabels(labels: Record<string, string | number | undefined>, defaultLabels?: {}): Record<string, string | number>;