From 38391fcdf7423fe8b621f9326ecb2fdec723d01f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= <valtri@civ.zcu.cz> Date: Wed, 4 Sep 2024 21:04:18 +0000 Subject: [PATCH] Scrape fluent-bit metrics by Prometheus --- common/playbooks/templates/fluent-bit.yaml.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/playbooks/templates/fluent-bit.yaml.j2 b/common/playbooks/templates/fluent-bit.yaml.j2 index e16921d..5c89537 100644 --- a/common/playbooks/templates/fluent-bit.yaml.j2 +++ b/common/playbooks/templates/fluent-bit.yaml.j2 @@ -105,6 +105,12 @@ extraVolumeMounts: mountPath: "/secrets" {% endif %} +service: + annotations: + prometheus.io/path: "/api/v1/metrics/prometheus" + prometheus.io/port: "2020" + prometheus.io/scrape: "true" + # daemonset runnable on control plane nodes tolerations: - key: node-role.kubernetes.io/control-plane -- GitLab