UNPKG

@christiangalsterer/node-postgres-prometheus-exporter

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