Expand description
Metrics module for the application.
- This module contains the global Prometheus registry.
- Defines specific metrics for the application.
Modules§
- Metrics server module
Structs§
- Gauge for available memory in bytes.
- Gauge for total number of contracts being monitored (across all monitors).
- Gauge for CPU usage percentage.
- Gauge for used disk space in bytes.
- Gauge for disk usage percentage.
- Gauge for memory usage in bytes.
- Gauge for memory usage percentage.
- Gauge for number of active monitors (not paused).
- Gauge for total number of monitors (active and paused).
- Gauge for total number of networks being monitored.
- Gauge Vector for per-network metrics.
- Global Prometheus registry.
- Gauge for total memory in bytes.
- Gauge for total number of triggers.
Functions§
- Gather all metrics and encode into the provided format.
- Updates metrics related to monitors, triggers, networks, and contracts.
- Updates the system metrics for CPU and memory usage.