From 75e3fd649bf4baae66a7415634fe999c726ba149 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Thu, 3 Jul 2025 19:11:11 +0200 Subject: Add metric for lookup state --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 0f81440..3d749ab 100644 --- a/src/main.c +++ b/src/main.c @@ -180,6 +180,7 @@ int main(int argc, char** argv) { // Init the lookup dht.lookup.target = (struct nodeid){.inner={0x19b8a941, 0x38fa0191, 0x1403fac2, 0x581000ab, 0x19583cda}}; dht.lookup.state = OP_PENDING; // We want this to run at some point. + prom_gauge_set(lookup_state, dht.lookup.state, NULL); #define RECV_BUFF_SIZE 4096 char buff_storage[RECV_BUFF_SIZE+1]; @@ -251,6 +252,7 @@ int main(int argc, char** argv) { lookup_refresh = 0; // Restart the lookup periodically dht.lookup.state = OP_PENDING; + prom_gauge_set(lookup_state, dht.lookup.state, NULL); } } -- cgit v1.2.3