Skip to main content

Interface: PrometheusMetricsExporter


Prometheus metrics exporter options



prometheus: Object

Type declaration

bindAddressstringAddress to bind the Prometheus HTTP metrics exporter server (for example, Metrics will be available for scraping under the standard /metrics route.
countersTotalSuffix?booleanIf set to true, all counter names will include a "_total" suffix.
unitSuffix?booleanIf set to true, all histograms will include the unit in their name as a suffix. EX: "_milliseconds"
useSecondsForDurations?booleanIf set to true, the exporter will use seconds for durations instead of milliseconds.