@balena/jellyfish-metrics
TypeScript icon, indicating that this package has built-in type declarations

2.10.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @balena/jellyfish-metrics

Weekly Downloads

28

Version

2.10.0

License

Apache-2.0

Unpacked Size

68 kB

Total Files

15

Last publish

Collaborators

  • dfunckt
  • page
  • balena.io