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

improve the name of the prometheus metrics #995

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

Issif
Copy link
Member

@Issif Issif commented Sep 12, 2024

What type of PR is this?

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

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

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

/area build

/area config

/area outputs

/area tests

What this PR does / why we need it:

With its recent releases, Falco comes now out of the box with prometheus metrics, all the metrics follow the convention falcosecurity_<project>_<metric>_<type>.

project represents the project, it can be falco, falcosidekick (goal of this PR), talon, ...

This PR introduces the prefix falcosecurity, add falcosidekick as project, and the type as total (all metrics are counters for now)

To be compliant with the labels used by falco and be compliant with the already existing rules from the falco-exporter, the label priority has been changed to priority_raw and priority now contains an int.

Warning

By changing the names, this PR introduces a breaking change. All dashboards or configured alerts will have to be updated, the Changelog and the blog post following the next release will explain that for the end users.

Which issue(s) this PR fixes:

#940

Fixes #

Special notes for your reviewer:

@poiana poiana requested review from fjogeleit and leogr September 12, 2024 13:35
@Issif Issif force-pushed the fix/prometheus-naming-convention branch from dcaa362 to 343cd04 Compare September 12, 2024 13:38
@poiana poiana added size/S and removed size/XS labels Sep 12, 2024
@Issif Issif changed the title improve the name of the prometheus metrics WIP: improve the name of the prometheus metrics Sep 17, 2024
…e and the naming convention chosen by Falco

Signed-off-by: Thomas Labarussias <[email protected]>
@Issif Issif force-pushed the fix/prometheus-naming-convention branch from 343cd04 to f2da4e3 Compare September 17, 2024 15:00
@Issif Issif changed the title WIP: improve the name of the prometheus metrics improve the name of the prometheus metrics Sep 17, 2024
@ekoops
Copy link
Contributor

ekoops commented Oct 9, 2024

Looks good to me!

@Issif Issif added this to the 2.30 milestone Oct 9, 2024
@Issif Issif added kind/feature New feature or request area/outputs labels Oct 9, 2024
@poiana poiana added the lgtm label Oct 9, 2024
@poiana
Copy link

poiana commented Oct 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Issif, leogr

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 Oct 9, 2024

LGTM label has been added.

Git tree hash: e9af7cb95e57bd13e59764209e646b2a410c3e39

@poiana poiana merged commit 31a8dca into master Oct 9, 2024
5 checks passed
@poiana poiana deleted the fix/prometheus-naming-convention branch October 9, 2024 08:59
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.

4 participants