Collect a snapshot of every metric’s current samples. This will usually be called in regular intervals, eg. From a cron job.
To retrieve the metrics use the getMetrics method.
Create or retrieve a counter metric.
Optional
labelNames: string[]Create or retrieve a gauge metric.
Optional
labelNames: string[]Create or retrieve a histogram metric.
Optional
labelNames: string[]Optional
buckets: number[]Returns all 60 buffered snapshots.
IF YOU WANT A LONGER HISTORY YOU SHOULD USE AN EXTERNAL TOOL LIKE PROMETHEUS TO SCRAPE THE DATA.
Collects metrics about a finished request.
Default metrics service implementation of Zibri.