Attaches the service to the Zibri application.
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.
Create or retrieve a gauge metric.
Create or retrieve a histogram metric.
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.
Interface for a metrics service.