1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use mithril_metric::{build_metrics_service, MetricsServiceExporter};

use mithril_metric::metric::{MetricCollector, MetricCounter, MetricGauge};

build_metrics_service!(
    MetricsService,
    signer_registration_success_since_startup_counter:MetricCounter(
        "mithril_signer_signer_registration_success_since_startup",
        "Number of successful signer registrations since startup on a Mithril signer node"
    ),
    signer_registration_total_since_startup_counter:MetricCounter(
        "mithril_signer_signer_registration_total_since_startup",
        "Number of signer registrations since startup on a Mithril signer node"
    ),
    signer_registration_success_last_epoch_gauge:MetricGauge(
        "mithril_signer_signer_registration_success_last_epoch",
        "Latest epoch at which signer successfully registered on a Mithril signer node"
    ),
    signature_registration_success_since_startup_counter:MetricCounter(
        "mithril_signer_signature_registration_success_since_startup",
        "Number of successful signature registrations since startup on a Mithril signer node"
    ),
    signature_registration_total_since_startup_counter:MetricCounter(
        "mithril_signer_signature_registration_total_since_startup",
        "Number of signature registrations since startup on a Mithril signer node"
    ),
    signature_registration_success_last_epoch_gauge:MetricGauge(
        "mithril_signer_signature_registration_success_last_epoch",
        "Latest epoch at which signature successfully registered on a Mithril signer node"
    ),
    runtime_cycle_success_since_startup_counter:MetricCounter(
        "mithril_signer_runtime_cycle_success_since_startup",
        "Number of successful runtime cycles since startup on a Mithril signer node"
    ),
    runtime_cycle_total_since_startup_counter:MetricCounter(
        "mithril_signer_runtime_cycle_total_since_startup",
        "Number of runtime cycles since startup on a Mithril signer node"
    )

);