@balena/jellyfish-metrics
v2.10.0
Published
Metrics library for Jellyfish
Downloads
3,108
Readme
Jellyfish Metrics
This library gathers Prometheus metrics and exposes them to be scraped by balena-monitor. Jellyfish production metrics can be found in this dashboard.
Usage
Below is an example how to use this library:
import * as metrics from '@balena/jellyfish-metrics';
// Start server to expose gathered metrics data.
metrics.startServer(context, portNumber);
// Mark that a card was read from the database.
metrics.markCardReadFromDatabase(card);
Documentation
Visit the website for complete documentation: https://product-os.github.io/jellyfish-metrics