Skip to content
Snippets Groups Projects
Commit d42b99ea authored by Florian Sesser's avatar Florian Sesser
Browse files

Add comment about journal internal labels

parent deb812ab
Branches
No related tags found
2 merge requests!264merge develop into production,!251Loki/Promtail: Towards centralized logging
...@@ -39,6 +39,10 @@ in { ...@@ -39,6 +39,10 @@ in {
host = hostName; host = hostName;
}; };
}; };
# The journal has many internal labels, that by default will
# be dropped because of their "__" prefix. To keep them, rename them.
# https://grafana.com/docs/loki/latest/clients/promtail/scraping/#journal-scraping-linux-only
# https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
relabel_configs = [{ relabel_configs = [{
source_labels = [ "__journal__systemd_unit" ]; source_labels = [ "__journal__systemd_unit" ];
target_label = "unit"; target_label = "unit";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment