-
Notifications
You must be signed in to change notification settings - Fork 320
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
Allow rule labels with slash #180
Comments
You've got the wrong repo, you're looking for the Prometheus Operator. |
Operator does not validate rules itself. So I get this error when rule is added prometheus config and probably bparsed by this package here. I understand that prometheus is not part of kubernetes but still, |
The characters allowed in labelnames will not change from a Prometheus standpoint. This does sound like an Operator issue. |
Sorry, I did not provide more details. I was meant rules labels like here:
Currently, we have to switch |
Dot isn't allowed either, it's on you to keep within the permitted label
names.
…On Thu 21 Mar 2019, 17:00 Artem Iarmoliuk, ***@***.***> wrote:
Sorry, I did not provide more details. I was meant rules labels like here:
- name: somename
rules:
- alert: "AnalyticsCsgoStats5xxErrors"
annotations:
description: "Increased 5xx error rate on {{ $labels.namespace }}/{{ $labels.service }}"
expr: increase(analytics_csgo_stats_http_responses_total{code=~"5.*"}[1m]) > 0
for: "5m"
labels:
severity: "warning"
app.kubernetes.io/name: app-name
Currently, we have to switch app.kubernetes.io/name to app because / is
not allowed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#180 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGyTdqyxyLDbCneB-zegUnd8ZQLFDxgjks5vY7qjgaJpZM4cBm1Q>
.
|
Ok, I understand that it's not possible to change this. Thanks. |
Improve handling of canceled calls in logging, metrics and tracing.
any update ? we have label naming conventions for k8s, and we wanna use same for prom rule labels |
Spec for PrometheusRule notes that labels may match selectors of replication controllers and services. According to this labels like
app.kubernetes.io/name
are recommended for kubernetes. But apparantly/
is not allowed here and I get errors like this:The text was updated successfully, but these errors were encountered: