0.0.1 • Published 2 years ago
@cascadeos/dynamic-metrics v0.0.1
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);
0.0.1
2 years ago