Browse Source

Merge pull request #8232 from ewolinetz/fluentd_prom_annotation

Annotating fluentd pods for promethrus scraping
OpenShift Merge Robot 7 years ago
parent
commit
77fc22136c

+ 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: