Currently canary is hardcoded with the labels stdout - see: https://github.com/grafana/loki/issues/1435
When just relying on systemd/journal for publishing the messages from canary+promtail to loki, the field would not be correctly set, or unexpected entries would appear in the log file
Description
the systemd unit was configured to redirect canary stdout to a log file to be parsed by promtail
a service discovery file will be written to promtails file_sd directory so promtail discovers the canary log file
logrotate was added to prevent the size of the canary log growing out of hand
Motivation
Currently canary is hardcoded with the labels
stdout
- see: https://github.com/grafana/loki/issues/1435 When just relying on systemd/journal for publishing the messages from canary+promtail to loki, the field would not be correctly set, or unexpected entries would appear in the log fileDescription
file_sd
directory so promtail discovers the canary log file