diff --git a/main.go b/main.go index 650f956..1f39b36 100644 --- a/main.go +++ b/main.go @@ -69,7 +69,7 @@ func main() { ) client, err := api.NewClient(api.Config{ - Address: "https://prometheus-api.junv.me", + Address: getEnvWithDefault("PROMETHEUS_URL", "http://prometheus-kube-prometheus-prometheus.default.svc.cluster.local:9090"), }) if err != nil { sentry.CaptureException(err) diff --git a/manifest-template.yaml b/manifest-template.yaml index 9f69c2e..cf88b46 100644 --- a/manifest-template.yaml +++ b/manifest-template.yaml @@ -44,6 +44,8 @@ spec: fieldPath: metadata.labels['tags.datadoghq.com/version'] - name: DB_HOST value: new-postgres-postgresql.db.svc.cluster.local + - name: PROMETHEUS_URL + value: http://prometheus-kube-prometheus-prometheus.default.svc.cluster.local:9090 - name: DB_NAME value: badges - name: DB_USERNAME