Skip to content

Commit

Permalink
fix(falco_metrics): remove falco_ prefix for version
Browse files Browse the repository at this point in the history
The textual content was fixed but not the metrics name.

Co-authored-by: Melissa Kilby <[email protected]>
Signed-off-by: Samuel Gaist <[email protected]>
  • Loading branch information
sgaist and incertum authored Apr 29, 2024
1 parent 815af40 commit 77a6a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/falco/falco_metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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}});

Expand Down

0 comments on commit 77a6a71

Please sign in to comment.