Skip to content

ROX-32449: mention include and exclude filters (custom Prometheus metrics)#104926

Merged
kcarmichael08 merged 1 commit intoopenshift:rhacs-docs-mainfrom
parametalol:michael/ROX-32449-include-and-exclude-filters
Feb 2, 2026
Merged

ROX-32449: mention include and exclude filters (custom Prometheus metrics)#104926
kcarmichael08 merged 1 commit intoopenshift:rhacs-docs-mainfrom
parametalol:michael/ROX-32449-include-and-exclude-filters

Conversation

@parametalol
Copy link
Copy Markdown

@parametalol parametalol commented Jan 19, 2026

Version(s):

Issue:

ROX-32449

Link to docs preview:

QE review:

  • QE has approved this change.

Additional information:

This is an update after backend the filter feature improvement: the single "only matching" filter property (not released) is replaced with include and exclude filters to allow users to express pass ("only matching") and block filters ("everything except").

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 19, 2026
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Jan 19, 2026

@parametalol: This pull request references ROX-32449 which is a valid jira issue.

Details

In response to this:

Version(s):

Issue:

ROX-32449

Link to docs preview:

QE review:

  • QE has approved this change.

Additional information:

This is an update after backend the filter feature improvement: the single "only matching" filter property (not released) is replaced with include and exclude filters to allow users to express pass ("only matching") and block filters ("everything except").

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 openshift-eng/jira-lifecycle-plugin repository.

1 similar comment
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Jan 19, 2026

@parametalol: This pull request references ROX-32449 which is a valid jira issue.

Details

In response to this:

Version(s):

Issue:

ROX-32449

Link to docs preview:

QE review:

  • QE has approved this change.

Additional information:

This is an update after backend the filter feature improvement: the single "only matching" filter property (not released) is replaced with include and exclude filters to allow users to express pass ("only matching") and block filters ("everything except").

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 19, 2026
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Jan 19, 2026

Hi @parametalol. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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-sigs/prow repository.

@kcarmichael08
Copy link
Copy Markdown
Contributor

/ok-to-test

@openshift-ci openshift-ci Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jan 19, 2026
@kcarmichael08 kcarmichael08 added RHACS Label for RHACS related PRs that go in the rhacs-docs branch rhacs-docs-4.10 labels Jan 19, 2026
Copy link
Copy Markdown
Contributor

@kcarmichael08 kcarmichael08 left a comment

Choose a reason for hiding this comment

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

one suggestion; otherwise, lgtm!

Comment thread modules/custom-metric-categories.adoc Outdated
@kcarmichael08 kcarmichael08 added the peer-review-done Signifies that the peer review team has reviewed this PR label Jan 19, 2026
@ocpdocs-previewbot
Copy link
Copy Markdown

ocpdocs-previewbot commented Jan 19, 2026

🤖 Mon Feb 02 09:17:52 - Prow CI generated the docs preview:

https://104926--ocpdocs-pr.netlify.app/openshift-acs/latest/configuration/monitor-acs.html

Each category is configured with a data gathering period and a list of metrics. A metric is associated with a set of labels and their filters. The label filters are regular expressions, applied to the values before aggregation. You can use them to reduce the `/metrics` output to only relevant records. For example, you can use the filter expression `ACTIVE` for label "State" of a policy violation metric to aggregate only active policy violation alerts.
Each category is configured with a data gathering period and a list of metrics. A metric is associated with a set of labels and their include and exclude filters. The label filters are regular expressions, applied to the values before aggregation.

You can use the filters to reduce the /metrics output to relevant records. Use include filters to count only values that match and exclude filters to ignore values that do not match. For example, include filter `ACTIVE` for label "State" to aggregate only active policy violation alerts, or exclude filter `false` for label "IsPlatformWorkload" to exclude platform workload vulnerabilities.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If we are going to keep the / with metrics (I am not sure why it is there) then I think it should be set off with backticks. Otherwise, no formatting and just use "metrics" if we are just talking about normal metrics output. Does that make sense? I want to avoid our publishing system possible interpreting the / as something other than text.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The /metrics spelling suggests the URL path of the metrics service. Full URL would read like https://central-api-endpoint/metrics.
See, for another example, modules/vulnerability-management-export-workloads.adoc:

The export uses the /v1/export/vuln-mgmt/workloads streaming API.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Otherwise I like the paragraph split.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK, let's be consistent with how we are already doing it and leave it, then. :)

@kcarmichael08
Copy link
Copy Markdown
Contributor

If you squash commits to one, I can merge.

@parametalol parametalol force-pushed the michael/ROX-32449-include-and-exclude-filters branch from 3a35348 to dfe6258 Compare February 2, 2026 09:12
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Feb 2, 2026

@parametalol: all tests passed!

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

@kcarmichael08 kcarmichael08 merged commit 248259d into openshift:rhacs-docs-main Feb 2, 2026
2 checks passed
@kcarmichael08
Copy link
Copy Markdown
Contributor

/cherrypick rhacs-docs-4.10

@openshift-cherrypick-robot
Copy link
Copy Markdown

@kcarmichael08: new pull request created: #105816

Details

In response to this:

/cherrypick rhacs-docs-4.10

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. peer-review-done Signifies that the peer review team has reviewed this PR RHACS Label for RHACS related PRs that go in the rhacs-docs branch rhacs-docs-4.10 size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants