From 77a6a7104e42863f279607c42cf025f0530536fc Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Mon, 29 Apr 2024 09:44:19 +0200 Subject: [PATCH] fix(falco_metrics): remove falco_ prefix for version The textual content was fixed but not the metrics name. Co-authored-by: Melissa Kilby Signed-off-by: Samuel Gaist --- userspace/falco/falco_metrics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/falco/falco_metrics.cpp b/userspace/falco/falco_metrics.cpp index af59efac779..03202719f58 100644 --- a/userspace/falco/falco_metrics.cpp +++ b/userspace/falco/falco_metrics.cpp @@ -78,7 +78,7 @@ std::string falco_metrics::to_text(const falco::app::state& state) libs::metrics::libs_metrics_collector libs_metrics_collector(inspector, 0); - prometheus_text += prometheus_metrics_converter.convert_metric_to_text_prometheus("falco_version", "falcosecurity", "falco", {{"version", FALCO_VERSION}}); + prometheus_text += prometheus_metrics_converter.convert_metric_to_text_prometheus("version", "falcosecurity", "falco", {{"version", FALCO_VERSION}}); prometheus_text += prometheus_metrics_converter.convert_metric_to_text_prometheus("kernel_release", "falcosecurity", "falco", {{"kernel_release", agent_info->uname_r}}); prometheus_text += prometheus_metrics_converter.convert_metric_to_text_prometheus("hostname", "falcosecurity", "evt", {{"hostname", machine_info->hostname}});