diff --git a/userspace/falco/falco_metrics.cpp b/userspace/falco/falco_metrics.cpp index 8a242814e4a..cc63375c0b4 100644 --- a/userspace/falco/falco_metrics.cpp +++ b/userspace/falco/falco_metrics.cpp @@ -93,7 +93,7 @@ std::string falco_metrics::to_text(const falco::app::state& state) { fs::path fs_path = item.first; std::string metric_name_file_sha256 = fs_path.filename().stem(); - metric_name_file_sha256 = "falco.sha256_rule_file." + falco::utils::sanitize_metric_name(metric_name_file_sha256); + metric_name_file_sha256 = "falco.sha256_rules_file." + falco::utils::sanitize_metric_name(metric_name_file_sha256); prometheus_text += prometheus_metrics_converter.convert_metric_to_text_prometheus(metric_name_file_sha256, "falcosecurity", "falco", {{metric_name_file_sha256, item.second}}); } diff --git a/userspace/falco/stats_writer.cpp b/userspace/falco/stats_writer.cpp index bd843f1d585..454d5326231 100644 --- a/userspace/falco/stats_writer.cpp +++ b/userspace/falco/stats_writer.cpp @@ -340,7 +340,7 @@ void stats_writer::collector::get_metrics_output_fields_wrapper( { fs::path fs_path = item.first; std::string metric_name_file_sha256 = fs_path.filename().stem(); - metric_name_file_sha256 = "falco.sha256_rule_file." + falco::utils::sanitize_metric_name(metric_name_file_sha256); + metric_name_file_sha256 = "falco.sha256_rules_file." + falco::utils::sanitize_metric_name(metric_name_file_sha256); output_fields[metric_name_file_sha256] = item.second; }