mithril_signer/metrics/
service.rs1use mithril_metric::{build_metrics_service, MetricsServiceExporter};
2
3use mithril_metric::metric::{MetricCollector, MetricCounter, MetricGauge};
4
5build_metrics_service!(
6 MetricsService,
7 signer_registration_success_since_startup_counter:MetricCounter(
8 "mithril_signer_signer_registration_success_since_startup",
9 "Number of successful signer registrations since startup on a Mithril signer node"
10 ),
11 signer_registration_total_since_startup_counter:MetricCounter(
12 "mithril_signer_signer_registration_total_since_startup",
13 "Number of signer registrations since startup on a Mithril signer node"
14 ),
15 signer_registration_success_last_epoch_gauge:MetricGauge(
16 "mithril_signer_signer_registration_success_last_epoch",
17 "Latest epoch at which signer successfully registered on a Mithril signer node"
18 ),
19 signature_registration_success_since_startup_counter:MetricCounter(
20 "mithril_signer_signature_registration_success_since_startup",
21 "Number of successful signature registrations since startup on a Mithril signer node"
22 ),
23 signature_registration_total_since_startup_counter:MetricCounter(
24 "mithril_signer_signature_registration_total_since_startup",
25 "Number of signature registrations since startup on a Mithril signer node"
26 ),
27 signature_registration_success_last_epoch_gauge:MetricGauge(
28 "mithril_signer_signature_registration_success_last_epoch",
29 "Latest epoch at which signature successfully registered on a Mithril signer node"
30 ),
31 runtime_cycle_success_since_startup_counter:MetricCounter(
32 "mithril_signer_runtime_cycle_success_since_startup",
33 "Number of successful runtime cycles since startup on a Mithril signer node"
34 ),
35 runtime_cycle_total_since_startup_counter:MetricCounter(
36 "mithril_signer_runtime_cycle_total_since_startup",
37 "Number of runtime cycles since startup on a Mithril signer node"
38 )
39
40);