-
Notifications
You must be signed in to change notification settings - Fork 98
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
Using Kubernetes labels/annotation as Prometheus alert labels and annotations is limiting #1002
Comments
We could easily fix that by adding an option for adding extra labels/annotations in the Alerting spec |
Oh, that's an interesting point with the URLs. I haven't run into this myself yet. The original reasoning for having them as CRD labels is to make filtering via |
I usually search for SLOs using ArgoCD UI or Pyrra UI. I haven't used kubectl in a while, honestly 😬. If people rely on that feature, I guess they could keep their labels there, but I understand the duplicated effort to keep labels in sync in two different places. I can totally understand that I don't represent all users! Do you see other people requesting the original use case? |
In our case, we use annotations for runbooks and dashboard links, they are also propagated when prefixed with |
The strategy of using kubernetes labels and annotations, prefixed with
pyrra.dev/
, as a strategy to generate Prometheus Alert labels and annotations works great for most cases! However, Kubernetes labels and annotations need to pass through different regular expressions than Prometheus requires, limiting the possible label values that one could use.One common case is passing URLs, e.g. Runbook URL and Dashboard URL, as alert labels, but Kubernetes rejects such cases, another example is the 63 characters limitation:
The text was updated successfully, but these errors were encountered: