From 3cbc97d7825b4a9e1d36a29d99a0d9df102e08ba Mon Sep 17 00:00:00 2001 From: Stavros Foteinopoulos <stafot@gmail.com> Date: Fri, 19 Jun 2020 15:07:53 +0300 Subject: [PATCH] Update prometheus-adapter endpoint --- .../prometheus-adapter/prometheus-adapter.libsonnet | 2 +- jsonnetfile.lock.json | 2 +- manifests/prometheus-adapter-deployment.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet b/jsonnet/kube-prometheus/prometheus-adapter/prometheus-adapter.libsonnet index 3ca13cf3..61375eb2 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 4eb52890..c210c494 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 12745f7d..a0b401a3 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 -- GitLab