@dalee/prom-node-init
v1.0.0
Published
Simple library to automate prometheus metrics serving.
Downloads
3
Readme
Prom node init
Just a bit of automatization for hapi node projects.
Starts server on port 7070 which exposes metrics, route - /metrics
Probes default metrics with using prom-client
Probes gc stats with prometheus-gc-stats
Example from glue manifest:
{
plugin: {
register: 'prom-node-init',
options: {
defaultMetrics: { timeout: 5000 },
}
}
}