@christiangalsterer/node-postgres-prometheus-exporter
Version:
A prometheus exporter for node-postgres
11 lines (10 loc) • 427 B
TypeScript
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;