Browse Source

Annotating fluentd pods for promethrus scraping

Eric Wolinetz 7 years ago
parent
commit
c9e7b568fe

+ 4 - 0
roles/openshift_logging_fluentd/templates/2.x/fluentd.j2

@@ -6,6 +6,10 @@ metadata:
     provider: openshift
     component: "{{ daemonset_component }}"
     logging-infra: "{{ daemonset_component }}"
+  annotations:
+    prometheus.io/scrape: "true"
+    prometheus.io/port: "24231"
+    prometheus.io/scheme: "http"
 spec:
   selector:
     matchLabels:

+ 4 - 0
roles/openshift_logging_fluentd/templates/5.x/fluentd.j2

@@ -6,6 +6,10 @@ metadata:
     provider: openshift
     component: "{{ daemonset_component }}"
     logging-infra: "{{ daemonset_component }}"
+  annotations:
+    prometheus.io/scrape: "true"
+    prometheus.io/port: "24231"
+    prometheus.io/scheme: "http"
 spec:
   selector:
     matchLabels: