@balena/jellyfish-metrics

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

Generated using TypeDoc