mirror of
https://github.com/lukaszraczylo/kubemirror.git
synced 2026-07-07 02:35:29 +00:00
fix(monitoring): match real controller label values in dashboards and alerts
kubemirror overrides controller names to <Kind>.<version>.<group> (e.g. Secret.v1.), but the dashboards, alerts, and recording rules filtered controller=~"secret|configmap" (the controller-runtime default name), so every panel and alert matched nothing. Switch all selectors to Secret.*|ConfigMap.* and document the naming convention.
This commit is contained in:
@@ -159,9 +159,14 @@ histogram_quantile(0.99,
|
||||
)
|
||||
|
||||
# Current workqueue depth
|
||||
workqueue_depth{name=~"secret|configmap"}
|
||||
workqueue_depth{name=~"Secret.*|ConfigMap.*"}
|
||||
```
|
||||
|
||||
> **Controller label values:** kubemirror names each controller `<Kind>.<version>.<group>`
|
||||
> (e.g. `Secret.v1.`, `ConfigMap.v1.`) plus a `-mirror` variant for orphan
|
||||
> detection, so PromQL filters use prefixes like `controller=~"Secret.*"` rather
|
||||
> than `controller="secret"`. Adjust the kind for other mirrored resource types.
|
||||
|
||||
### Using kubectl
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user