pub fn bridge_uptime_metric(
process: &str,
version: &'static str,
sui_chain_identifier: &str,
eth_chain_identifier: &str,
client_enabled: bool,
) -> Box<dyn Collector>
Expand description
Similar to uptime_metric
, but for the bridge node with different labels.
Create a metric that measures the uptime from when this metric was constructed.
The metric is labeled with:
- ‘process’: the process type. We keep this label to be able to distinguish between different binaries.
- ‘version’: binary version, generally be of the format: ‘semver-gitrevision’
- ‘sui_chain_identifier’: the identifier of sui network which this process is part of
- ‘eth_chain_identifier’: the identifier of eth network which this process is part of
- ‘client_enabled’: whether the bridge node is running as a client