Skip to content

Commit 9bda80f

Browse files
committed
feat: add metric for the number of CardanoDatabase artifacts produced since aggregator startup
1 parent 8fe4dd8 commit 9bda80f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

mithril-aggregator/src/metrics/service.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ build_metrics_service!(
6666
"mithril_aggregator_artifact_cardano_transaction_total_produced_since_startup",
6767
"Number of Cardano transaction artifacts produced since startup on a Mithril aggregator node"
6868
),
69+
artifact_cardano_database_total_produced_since_startup:MetricCounter(
70+
"mithril_aggregator_artifact_cardano_database_total_produced_since_startup",
71+
"Number of Cardano database artifacts produced since startup on a Mithril aggregator node"
72+
),
6973
runtime_cycle_success_since_startup:MetricCounter(
7074
"mithril_aggregator_runtime_cycle_success_since_startup",
7175
"Number of successful runtime cycles since startup on a Mithril aggregator"

mithril-aggregator/src/runtime/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl AggregatorRunner {
192192
metrics.get_artifact_cardano_transaction_total_produced_since_startup()
193193
}
194194
SignedEntityType::CardanoDatabase(_) => {
195-
todo!("To be implemented after the artifact builder is available")
195+
metrics.get_artifact_cardano_database_total_produced_since_startup()
196196
}
197197
};
198198

0 commit comments

Comments
 (0)