1.2.1 • Published 5 months ago

hypermetrics v1.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Hypermetrics

Hypercore Prometheus metric collector.

Usage

const client = require('prom-client')
const hypermetrics = new Hypermetrics(client)

const core = new Hypercore(ram)
await core.ready()
hypermetrics.add(core, { name: 'name-of-the-core' })

server.get('/metrics', async function (req, res) {
    res.send(await hypermetrics.register.metrics())
})

server.listen({ port: 8080 })
1.2.1

5 months ago

1.2.0

5 months ago

1.1.0

6 months ago

1.0.1

7 months ago

1.0.0

8 months ago