Uh oh!
There was an error while loading. Please reload this page.
fix: adding missing tags for non k8s events - #3256
Conversation
There was a problem hiding this comment.
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
actiontag with an"UNKNOWN"value for non-ResourceEventevents. - Adds a namespace value for non-
ResourceEventevents (currently hardcoded as"NO_NAMESPACE").
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| for (String expected : expectedSubstrings) { | ||
| log.info("Checking if result: {} contains expected: {}", result, expected); | ||
| assertThat(result).contains(expected); |
There was a problem hiding this comment.
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).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Attila Mészáros a_meszaros@apple.com