Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup(metrics): improve prometheus and plugin metrics info #1328

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

incertum
Copy link
Contributor

@incertum incertum commented Jun 1, 2024

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind user-interface

/kind content

/kind event

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area blog

/area documentation

/area community

What this PR does / why we need it:

Improve prometheus and plugin metrics info, see falcosecurity/falco#3229

@sgaist would you mind helping with the review? Thank you!

@sboschman are these updates ok? Do you have additional input?

CC @Issif

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
@poiana poiana added size/L and removed size/S labels Jun 1, 2024
@sboschman
Copy link

I guess the added plugin section at least tempers expectations for now. Not sure if I understand the design behind it and how it is supposed to look in the future. Will add a comment to #3194 for clarity.

@poiana
Copy link

poiana commented Jun 3, 2024

@sgaist: changing LGTM is restricted to collaborators

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Comment on lines 1265 to 1272
- When running Falco with a plugin only on Linux (without using the syscalls event source), it currently doesn't work well due to some issues in Falco's capture initialization phase. We are working on resolving remaining issues by Falco 0.39.0 (see this [issue](https://github.com/falcosecurity/falco/issues/3194#issuecomment-2111009270)). Therefore, the following fields are not available when running Falco with a plugin only on Linux:
- `falcosecurity_falco_kernel_release_info`
- `falcosecurity_evt_hostname_info`
- `falcosecurity_falco_start_timestamp_nanoseconds`
- `falcosecurity_falco_host_boot_timestamp_nanoseconds`
- `falcosecurity_falco_host_num_cpus_total`
- `falcosecurity_falco_duration_seconds_total`
- `falcosecurity_falco_cpu_usage_ratio` (broken given we don't initialize some of the above info)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The explanation is interesting but for now I would simply indicate that, as of 0.38.0, it is not possible to run plugins without syscalls and use Prometheus metrics. You can link the issue if people need more details.

Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
Copy link
Contributor

@LucaGuerra LucaGuerra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for documenting this 🙏

@poiana
Copy link

poiana commented Jun 4, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: incertum, LucaGuerra, sgaist

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana
Copy link

poiana commented Jun 4, 2024

LGTM label has been added.

Git tree hash: 7b77c8d9d3d80d525d54af64ddace00f2c3d143d

@poiana poiana added the approved label Jun 4, 2024
@poiana poiana merged commit a8243b7 into falcosecurity:master Jun 4, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants