Skip to content

Commit e9bb955

Browse files
pilhuhnrshriram
authored andcommitted
Exclude Prometheus traffic in rule so that Kiali does not show it. (istio#12251)
1 parent e7f2a6a commit e9bb955

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/kubernetes/helm/istio/charts/mixer/templates/config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ metadata:
847847
heritage: {{ .Release.Service }}
848848
release: {{ .Release.Name }}
849849
spec:
850-
match: (context.protocol == "http" || context.protocol == "grpc") && (match((request.useragent | "-"), "kube-probe*") == false)
850+
match: (context.protocol == "http" || context.protocol == "grpc") && (match((request.useragent | "-"), "kube-probe*") == false) && (match((request.useragent | "-"), "Prometheus*") == false)
851851
actions:
852852
- handler: prometheus
853853
instances:

mixer/testdata/config/prometheus.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ metadata:
206206
name: promhttp
207207
namespace: istio-system
208208
spec:
209-
match: (context.protocol == "http" || context.protocol == "grpc") && (match((request.useragent | "-"), "kube-probe*") == false)
209+
match: (context.protocol == "http" || context.protocol == "grpc") && (match((request.useragent | "-"), "kube-probe*") == false) && (match((request.useragent | "-"), "Prometheus*") == false)
210210
actions:
211211
- handler: prometheus
212212
instances:

0 commit comments

Comments
 (0)