Skip to content

fix(userspace/falco): only enable prometheus metrics once all inspectors have been opened #3588

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

Merged
merged 2 commits into from
May 30, 2025

Conversation

FedeDP
Copy link
Contributor

@FedeDP FedeDP commented May 30, 2025

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area engine

What this PR does / why we need it:

There is a certain slice of team where prometheus metrics are exposed but the inspectors for all the enabled sources are not opened yet.
In this scenario, if eg: grafana scrapes our metrics, it would trigger a Falco crash because metrics need the inspectors to be fully inited and opened.

Which issue(s) this PR fixes:

Fixes #3571

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

fix(userspace/falco): only enable prometheus metrics once all inspectors have been opened

…ors have been opened.

Signed-off-by: Federico Di Pierro <[email protected]>
@FedeDP
Copy link
Contributor Author

FedeDP commented May 30, 2025

/milestone 0.42.0

@poiana poiana added this to the 0.42.0 milestone May 30, 2025
@poiana poiana added the size/S label May 30, 2025
@FedeDP FedeDP force-pushed the fix/only_enable_prometheus_after_inspectors_opened branch from 37180b4 to a68b5bc Compare May 30, 2025 10:31
Copy link
Contributor

@incertum incertum left a comment

Choose a reason for hiding this comment

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

/approve

@github-project-automation github-project-automation bot moved this from Todo to In progress in Falco Roadmap May 30, 2025
@poiana
Copy link
Contributor

poiana commented May 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, incertum

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 poiana merged commit 2346a39 into master May 30, 2025
32 checks passed
@poiana poiana deleted the fix/only_enable_prometheus_after_inspectors_opened branch May 30, 2025 17:05
@github-project-automation github-project-automation bot moved this from In progress to Done in Falco Roadmap May 30, 2025
@FedeDP
Copy link
Contributor Author

FedeDP commented Jun 3, 2025

/milestone 0.41.1

@poiana poiana modified the milestones: 0.42.0, 0.41.1 Jun 3, 2025
@FedeDP FedeDP mentioned this pull request Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Falco v0.40.0 crashing with segfault sometimes
4 participants