Browse Source

Merge pull request #9616 from jcantrill/1616278

Fix default logging namespace for prometheus
OpenShift Merge Robot 6 years ago
parent
commit
724c85dcfe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roles/openshift_prometheus/templates/prometheus.yml.j2

+ 2 - 2
roles/openshift_prometheus/templates/prometheus.yml.j2

@@ -146,7 +146,7 @@ scrape_configs:
     # drop logging components managed by other scrape targets
     - source_labels: [__meta_kubernetes_namespace]
       action: drop
-      regex: '{{ openshift_logging_namespace | default('logging') }}'
+      regex: '{{ openshift_logging_namespace | default('openshift-logging') }}'
     # drop infrastructure components managed by other scrape targets
     - source_labels: [__meta_kubernetes_service_name]
       action: drop
@@ -199,7 +199,7 @@ scrape_configs:
   - role: endpoints
     namespaces:
       names:
-      - '{{ openshift_logging_namespace | default('logging') }}'
+      - '{{ openshift_logging_namespace | default('openshift-logging') }}'
 
   relabel_configs:
     # drop infrastructure components managed by other scrape targets