1.0.0 • Published 6 years ago

@dalee/prom-node-init v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

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 },
        }
    }
}