Преглед на файлове

Merge pull request #8232 from ewolinetz/fluentd_prom_annotation

Annotating fluentd pods for promethrus scraping
OpenShift Merge Robot преди 7 години
родител
ревизия
77fc22136c
променени са 2 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 4 0
      roles/openshift_logging_fluentd/templates/2.x/fluentd.j2
  2. 4 0
      roles/openshift_logging_fluentd/templates/5.x/fluentd.j2

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