diff --git a/templates/promtail.yml.j2 b/templates/promtail.yml.j2 index 16d8ebb..30c4240 100644 --- a/templates/promtail.yml.j2 +++ b/templates/promtail.yml.j2 @@ -28,6 +28,11 @@ scrape_configs: relabel_configs: - source_labels: ['__journal__systemd_unit'] target_label: 'unit' + - source_labels: ['__journal_priority_keyword'] + target_label: 'level' + pipeline_stages: + - structured_metadata: + level: - job_name: nginx static_configs: - targets: