summaryrefslogtreecommitdiff
path: root/src/metrics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/metrics.c')
-rw-r--r--src/metrics.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/metrics.c b/src/metrics.c
index de39cdb..eb50f09 100644
--- a/src/metrics.c
+++ b/src/metrics.c
@@ -11,6 +11,7 @@ prom_counter_t *peers = NULL;
prom_gauge_t *current_hashes = NULL;
prom_counter_t *hashes = NULL;
prom_counter_t *hash_expired = NULL;
+prom_gauge_t *hash_next_expire = NULL;
prom_counter_t *queries = NULL;
prom_counter_t *requests = NULL;
prom_histogram_t *offered = NULL;
@@ -140,6 +141,15 @@ void metric_init() {
)
);
+ hash_next_expire = prom_collector_registry_must_register_metric(
+ prom_gauge_new(
+ "dht_hashes_next_expire",
+ "Next time a hash expires",
+ 0,
+ NULL
+ )
+ );
+
queries = prom_collector_registry_must_register_metric(
prom_counter_new(
"dht_queries_total",