From b2eea14fee5762e80480dfcb52e64a6fb880a1d8 Mon Sep 17 00:00:00 2001 From: lvjiawei Date: Tue, 14 Jan 2020 16:47:23 +0800 Subject: [PATCH] Update prometheus config Update prometheus scrape config. The container port name is outdated. --- .../metrics/prometheus/100-prometheus-scrape-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/monitoring/metrics/prometheus/100-prometheus-scrape-config.yaml b/config/monitoring/metrics/prometheus/100-prometheus-scrape-config.yaml index 3b6a1da39563..47ba3067cdf4 100644 --- a/config/monitoring/metrics/prometheus/100-prometheus-scrape-config.yaml +++ b/config/monitoring/metrics/prometheus/100-prometheus-scrape-config.yaml @@ -109,7 +109,7 @@ data: # Scrape only the the targets matching the following metadata - source_labels: [__meta_kubernetes_pod_label_serving_knative_dev_revision, __meta_kubernetes_pod_container_port_name] action: keep - regex: .+;user-metrics + regex: .+;http-usermetric # Rename metadata labels to be reader friendly - source_labels: [__meta_kubernetes_namespace] target_label: namespace