UNPKG

@christiangalsterer/node-postgres-prometheus-exporter

Version:
11 lines (10 loc) 445 B
import type { Client } from 'pg'; import type { Registry } from 'prom-client'; import type { PgClientExporterOptions } from './pgClientExporterOptions'; /** * Exposes metrics for a pg.client in prometheus format. * * @param client The pg client to monitor. * @param options Optional parameter to configure the exporter */ export declare function monitorPgClient(client: Client, register: Registry, options?: PgClientExporterOptions): void;