From 390ed6b094eb7b51891c9ae2bb46cfd5090607a5 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Thu, 12 Oct 2023 11:24:27 +0200 Subject: [PATCH] added podman logs scrape job --- containers/files/promtail.conf.jinja | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/containers/files/promtail.conf.jinja b/containers/files/promtail.conf.jinja index 874be59..94693b5 100644 --- a/containers/files/promtail.conf.jinja +++ b/containers/files/promtail.conf.jinja @@ -26,4 +26,10 @@ scrape_configs: target_label: syslog_identifier - source_labels: ["__journal_container_name"] target_label: container_name - + - job_name: podman_logs + pipeline_stages: + - cri: {} + static_configs: + - labels: + job: podman_logs + __path__: /var/log/podman/*.log