-
Notifications
You must be signed in to change notification settings - Fork 2
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
cos-tool fails to validate tempo rules #13
Comments
Related a few charms (tempo, traefik) all of which have built-in loki rules, and only traefik's rules reached grafana agent's relation data. bundle: kubernetes
applications:
ga:
charm: grafana-agent-k8s
channel: edge
scale: 1
tempo:
charm: tempo-k8s
channel: edge
scale: 1
trfk:
charm: traefik-k8s
channel: edge
series: focal
scale: 1
relations:
- - tempo:logging
- ga:logging-provider
- - trfk:logging
- ga:logging-provider ga/0:
workload-version: 0.35.2
opened-ports: []
charm: ch:amd64/jammy/grafana-agent-k8s-60
leader: true
life: alive
relation-info:
- relation-id: 20
endpoint: logging-consumer
related-endpoint: logging
application-data:
promtail_binary_zip_url: '{"amd64": {"filename": "promtail-static-amd64", "zipsha":
"543e333b0184e14015a42c3c9e9e66d2464aaa66eca48b29e185a6a18f67ab6d", "binsha":
"17e2e271e65f793a9fbe81eab887b941e9d680abe82d5a0602888c50f5e0cac9", "url":
"https://github.com/canonical/loki-k8s-operator/releases/download/promtail-v2.5.0/promtail-static-amd64.gz"}}'
related-units:
loki/0:
in-scope: true
data:
egress-subnets: 10.152.183.32/32
endpoint: '{"url": "http://loki-0.loki-endpoints.welcome-k8s.svc.cluster.local:3100/loki/api/v1/push"}'
ingress-address: 10.152.183.32
private-address: 10.152.183.32
public_address: loki-0.loki-endpoints.welcome-k8s.svc.cluster.local
- relation-id: 19
endpoint: logging-provider
related-endpoint: logging
application-data:
alert_rules: '{}'
metadata: '{"model": "welcome-k8s", "model_uuid": "bf35e241-d1b5-4613-810a-759a7065d3ca",
"application": "tempo", "unit": "tempo/0", "charm_name": "tempo-k8s"}'
related-units:
tempo/0:
in-scope: true
data:
egress-subnets: 10.152.183.141/32
ingress-address: 10.152.183.141
private-address: 10.152.183.141
- relation-id: 24
endpoint: logging-provider
related-endpoint: logging
application-data:
alert_rules: '{"groups": [{"name": "welcome-k8s_bf35e241_trfk_error_level_logs_found_alerts",
"rules": [{"alert": "ErrorLevelLogsFound", "annotations": {"summary": "error
level logs found."}, "expr": "rate({job=~\".+\"} |= \"level=error\"[1m]) >
0", "for": "1m", "labels": {"juju_application": "trfk", "juju_charm": "traefik-k8s",
"juju_model": "welcome-k8s", "juju_model_uuid": "bf35e241-d1b5-4613-810a-759a7065d3ca",
"severity": "critical"}}]}]}'
metadata: '{"model": "welcome-k8s", "model_uuid": "bf35e241-d1b5-4613-810a-759a7065d3ca",
"application": "trfk", "unit": "trfk/0", "charm_name": "traefik-k8s"}'
related-units:
trfk/0:
in-scope: true
data:
egress-subnets: 10.43.8.188/32
ingress-address: 10.43.8.188
private-address: 10.43.8.188 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In canonical/tempo-k8s-operator#11 we introduced loki alert rules for tempo taken from https://github.com/grafana/tempo/tree/main/operations/tempo-mixin-compiled but cos-tool fails to validate them:
The text was updated successfully, but these errors were encountered: