Function iota_metrics::uptime_metric
source · pub fn uptime_metric(
process: &str,
version: &'static str,
chain_identifier: &str,
) -> Box<dyn Collector>
Expand description
Create a metric that measures the uptime from when this metric was constructed. The metric is labeled with:
- ‘process’: the process type, differentiating between validator and fullnode
- ‘version’: binary version, generally be of the format: ‘semver-gitrevision’
- ‘chain_identifier’: the identifier of the network which this process is part of