@christiangalsterer/mongodb-driver-prometheus-exporter
Version:
Prometheus exporter to monitor the MongoDB Node.js driver
21 lines (20 loc) • 923 B
TypeScript
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>;