Skip to content

Commit d1bcab5

Browse files
committed
addons/pyrra: Fix prometheus namespace connection
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
1 parent 90042f1 commit d1bcab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonnet/kube-prometheus/addons/pyrra.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
args: [
7474
'api',
7575
'--api-url=http://%s.%s.svc.cluster.local:9444' % [pyrra.kubernetesService.metadata.name, pyrra.kubernetesService.metadata.namespace],
76-
'--prometheus-url=http://prometheus-k8s.monitoring.svc.cluster.local:9090',
76+
'--prometheus-url=http://prometheus-k8s.%s.svc.cluster.local:9090' % pyrra._config.namespace,
7777
],
7878
// resources: pyrra._config.resources,
7979
ports: [{ containerPort: pyrra._config.port }],

0 commit comments

Comments
 (0)