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
2 people authored and poiana committed May 3, 2024
1 parent 66d1970 commit cbfe77d
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 cbfe77d

Please sign in to comment.