Skip to content

fix: adding missing tags for non k8s events#3256

Merged
csviri merged 8 commits intooperator-framework:mainfrom
csviri:add-empty-action
Mar 27, 2026
Merged

fix: adding missing tags for non k8s events#3256
csviri merged 8 commits intooperator-framework:mainfrom
csviri:add-empty-action

Conversation

@csviri
Copy link
Copy Markdown
Collaborator

@csviri csviri commented Mar 26, 2026

Signed-off-by: Attila Mészáros a_meszaros@apple.com

csviri added 3 commits March 26, 2026 17:13
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri csviri force-pushed the add-empty-action branch from 247f318 to 39e58cc Compare March 26, 2026 16:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts MicrometerMetricsV2 event metrics so that non-Kubernetes (non-ResourceEvent) events emit a more consistent set of tags.

Changes:

  • Adds an action tag with an "UNKNOWN" value for non-ResourceEvent events.
  • Adds a namespace value for non-ResourceEvent events (currently hardcoded as "NO_NAMESPACE").

csviri added 2 commits March 27, 2026 09:16
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added 2 commits March 27, 2026 13:16
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

Comment on lines +260 to +262
for (String expected : expectedSubstrings) {
log.info("Checking if result: {} contains expected: {}", result, expected);
assertThat(result).contains(expected);
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

log.info("Checking if result: {} contains expected: {}", result, expected); logs the full Prometheus JSON response once per expected substring on every poll iteration. This can create extremely noisy logs and slow CI. Prefer logging only the query / expected substring (or log the full result once at debug level).

Copilot uses AI. Check for mistakes.
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
@csviri csviri merged commit c0eb78f into operator-framework:main Mar 27, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Micrometer metrics meter events_received_total is registered multiple times

4 participants