Commit 3fbd510c authored by David Goulet's avatar David Goulet 🆘
Browse files

metrics: One relay metrics was not using metrics_format_label()



This resulted in the labels not being surrounded by double quotes and
thus Prometheus not liking it.
Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent e3f5dc1f
Pipeline #6141 passed with stage
in 26 minutes and 13 seconds
...@@ -288,22 +288,26 @@ fill_oom_values(void) ...@@ -288,22 +288,26 @@ fill_oom_values(void)
sentry = metrics_store_add(the_store, rentry->type, rentry->name, sentry = metrics_store_add(the_store, rentry->type, rentry->name,
rentry->help); rentry->help);
metrics_store_entry_add_label(sentry, "subsys=cell"); metrics_store_entry_add_label(sentry,
metrics_format_label("subsys", "cell"));
metrics_store_entry_update(sentry, oom_stats_n_bytes_removed_cell); metrics_store_entry_update(sentry, oom_stats_n_bytes_removed_cell);
sentry = metrics_store_add(the_store, rentry->type, rentry->name, sentry = metrics_store_add(the_store, rentry->type, rentry->name,
rentry->help); rentry->help);
metrics_store_entry_add_label(sentry, "subsys=dns"); metrics_store_entry_add_label(sentry,
metrics_format_label("subsys", "dns"));
metrics_store_entry_update(sentry, oom_stats_n_bytes_removed_dns); metrics_store_entry_update(sentry, oom_stats_n_bytes_removed_dns);
sentry = metrics_store_add(the_store, rentry->type, rentry->name, sentry = metrics_store_add(the_store, rentry->type, rentry->name,
rentry->help); rentry->help);
metrics_store_entry_add_label(sentry, "subsys=geoip"); metrics_store_entry_add_label(sentry,
metrics_format_label("subsys", "geoip"));
metrics_store_entry_update(sentry, oom_stats_n_bytes_removed_geoip); metrics_store_entry_update(sentry, oom_stats_n_bytes_removed_geoip);
sentry = metrics_store_add(the_store, rentry->type, rentry->name, sentry = metrics_store_add(the_store, rentry->type, rentry->name,
rentry->help); rentry->help);
metrics_store_entry_add_label(sentry, "subsys=hsdir"); metrics_store_entry_add_label(sentry,
metrics_format_label("subsys", "hsdir"));
metrics_store_entry_update(sentry, oom_stats_n_bytes_removed_hsdir); metrics_store_entry_update(sentry, oom_stats_n_bytes_removed_hsdir);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment