Closed leogr closed 1 month ago
I vote for the removing the metric with the json, it breaks prometheus scraping
@incertum FYI
falcosecurity_falco_sha256_config_files_info : file ext is missing in file_name, it should be added
Weird, the code is correct: https://github.com/falcosecurity/falco/blob/master/userspace/falco/falco_metrics.cpp#L111
EDIT: oh you are talking about the extension, sorry! Then, it seems like it was desired, since we are using .stem()
method (https://en.cppreference.com/w/cpp/filesystem/path/stem)
For tags, i assume you are talking about rule tags; if yes, then the change needs to be done here: https://github.com/falcosecurity/falco/blob/master/userspace/falco/falco_metrics.cpp#L237
Re host_ifinfo, the change is to be done here: https://github.com/falcosecurity/falco/blob/master/userspace/falco/falco_metrics.cpp#L146 Since host ifinfo were added recently: https://github.com/falcosecurity/falco/pull/3253, i wouldn't remove them unless @incertum is ok with that.
Weird, the code is correct: https://github.com/falcosecurity/falco/blob/master/userspace/falco/falco_metrics.cpp#L111 EDIT: oh you are talking about the extension, sorry! Then, it seems like it was desired, since we are using
.stem()
method (https://en.cppreference.com/w/cpp/filesystem/path/stem)
I'm wondering why it should be considered:thinking: I can't find a compelling reason, but I may be missing the point.
Regarding falcosecurity_falco_host_ifinfo_json_info
, the interfaces/addresses number could be high in some environment: if we split them in some meaningful way, the number of dimensions can become high. Moreover, the interfaces/addresses list could be highly mutable, but at the moment, the backing list is not refreshed after its initialization (there is a method sinsp::refresh_ifaddr_list()
but it doesn't seem to be called anywhere). Given these two points, maybe it is better to remove it.
Regarding
falcosecurity_falco_host_ifinfo_json_info
, the interfaces/addresses number could be high in some environment: if we split them in some meaningful way, the number of dimensions can become high. Moreover, the interfaces/addresses list could be highly mutable, but at the moment, the backing list is not refreshed after its initialization (there is a methodsinsp::refresh_ifaddr_list()
but it doesn't seem to be called anywhere). Given these two points, maybe it is better to remove it.
I agree with removing it for now and target this for 0.40
Describe the bug
falcosecurity_falco_sha256_config_files_info
: file ext is missing infile_name
, it should be addedfalcosecurity_falco_host_ifinfo_json_info
: encoding a json should be against the best practices; possibile solutions: break down this metric into individual labels or remove it if not necessarytags
label contains multiple values, we may split them liketag_t1059="true", tag_container="true", tag_maturity_stable="true", tag_mitre_execution="true", tag_shell="true"
How to reproduce it
I used https://download.falco.org/packages/bin-dev/x86_64/falco-0.39.0-rc2-x86_64.tar.gz and run:
Expected behaviour
Metrics align to best practices
Environment
Additional context
Tentatively for /milestone 0.39.0
cc @falcosecurity/falco-maintainers @alacuku @Issif