diff --git a/jsonnet/kube-prometheus/addons/pyrra.libsonnet b/jsonnet/kube-prometheus/addons/pyrra.libsonnet index 894141a8e6c692e27976869a38d92d76f572ae87..668ea94625836fff663970d5750b80d12be912d7 100644 --- a/jsonnet/kube-prometheus/addons/pyrra.libsonnet +++ b/jsonnet/kube-prometheus/addons/pyrra.libsonnet @@ -73,7 +73,7 @@ args: [ 'api', '--api-url=http://%s.%s.svc.cluster.local:9444' % [pyrra.kubernetesService.metadata.name, pyrra.kubernetesService.metadata.namespace], - '--prometheus-url=http://prometheus-k8s.monitoring.svc.cluster.local:9090', + '--prometheus-url=http://prometheus-k8s.%s.svc.cluster.local:9090' % pyrra._config.namespace, ], // resources: pyrra._config.resources, ports: [{ containerPort: pyrra._config.port }],