diff --git a/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet b/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet index 3ca13cf3af5c7fed1b7c826630eb9fe4284e3b3a..61375eb2ef4c5b6c0b50599a33b516a72f3f6cd2 100644 --- a/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet +++ b/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet @@ -15,7 +15,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; prometheusAdapter+:: { name: 'prometheus-adapter', labels: { name: $._config.prometheusAdapter.name }, - prometheusURL: 'http://prometheus-' + $._config.prometheus.name + '.' + $._config.namespace + '.svc:9090/', + prometheusURL: 'http://prometheus-' + $._config.prometheus.name + '.' + $._config.namespace + '.svc.cluster.local:9090/', config: { resourceRules: { cpu: { diff --git a/jsonnetfile.lock.json b/jsonnetfile.lock.json index 4eb52890ff9438203938520c8a4e4d03dbfcc375..c210c4948aeb757719cbdd26eedede8f4e95573d 100644 --- a/jsonnetfile.lock.json +++ b/jsonnetfile.lock.json @@ -119,7 +119,7 @@ "subdir": "documentation/prometheus-mixin" } }, - "version": "8d3c2f6829d73be15a6684f9324917e72fbf1a31", + "version": "74207c04655e1fd93eea0e9a5d2f31b1cbc4d3d0", "sum": "lEzhZ8gllSfAO4kmXeTwl4W0anapIeFd5GCaCNuDe18=", "name": "prometheus" }, diff --git a/manifests/prometheus-adapter-deployment.yaml b/manifests/prometheus-adapter-deployment.yaml index 12745f7dfcb7d6f8a15f52cf5247e6b36182aff6..a0b401a379377420cefc0a369634fe9979716cb3 100644 --- a/manifests/prometheus-adapter-deployment.yaml +++ b/manifests/prometheus-adapter-deployment.yaml @@ -23,7 +23,7 @@ spec: - --config=/etc/adapter/config.yaml - --logtostderr=true - --metrics-relist-interval=1m - - --prometheus-url=http://prometheus-k8s.monitoring.svc:9090/ + - --prometheus-url=http://prometheus-k8s.monitoring.svc.cluster.local:9090/ - --secure-port=6443 image: quay.io/coreos/k8s-prometheus-adapter-amd64:v0.7.0 name: prometheus-adapter