diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-05-04 00:39:13 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-05-04 00:39:13 +0200 |
| commit | 2c4af77f5f7231b560c344ccaff3cc73f0d616e9 (patch) | |
| tree | 44dbe299c49b35399fb755ef81929b32af9312fd /src/metrics.h | |
| parent | bdb9db6458594d9265c86362d248e30fcf8ea26e (diff) | |
Refactor lookup init and add routing table metric
I think it would be nice to see the detailed routing table occupancy.
I've added a metric that exposes the current occupancy of each bucket.
That should provide me some insight into the current distribution of
nodes and if we need to find a way to keep the closer buckets alive.
Diffstat (limited to 'src/metrics.h')
| -rw-r--r-- | src/metrics.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/metrics.h b/src/metrics.h index f129ce7..098c20b 100644 --- a/src/metrics.h +++ b/src/metrics.h @@ -22,6 +22,9 @@ extern prom_counter_t *retries; extern prom_counter_t *keepalive_count; extern prom_counter_t *requestsProcessed; +extern prom_counter_t *lookup_count; + +extern prom_gauge_t *routing_table_occupied; void metric_init(); void metric_end(); |
