You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Metrics: rule checks log under random container names #8365
Install an application that ships its own alert rules for the Metrics module, or change its rules, so Metrics checks them. For example, publish a rule in module/<module_id>/metrics_alert_rules and emit the metrics-alert-rules-changed event.
Look at the system log of the node that runs Metrics, e.g. journalctl --since -1h _UID=$(id -u metrics1).
Expected behavior
Log lines written while Metrics checks the alert rules carry a fixed log name (syslog identifier), like the other Metrics services, e.g. prometheus.
Actual behavior
Every rule check runs promtool in a new, unnamed container. Podman gives each one a random name, and that name becomes the log name of its output. In one hour, a node with a single application rule set logged under more than 20 different random names:
The Loki log server indexes log names, so the number of indexed values grows with every rule check and never stops. The lines are also hard to find, because they do not carry the Metrics name.
Activity