0.0.1 • Published 2 years ago

@cascadeos/dynamic-metrics v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

Dynamic Metrics

This library gathers Prometheus metrics and exposes them to be scraped by cascade-monitor.

Usage

Below is an example how to use this library:

import * as metrics from '@cascadeos/dynamic-metrics';

// Start server to expose gathered metrics data.
metrics.startServer(context, portNumber);

// Mark that a card was read from the database.
metrics.markCardReadFromDatabase(card);