use internal url for prometheus server

This commit is contained in:
2022-04-03 20:06:34 +10:00
parent 948abd6f6d
commit 5ad98945ec
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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)
+2
View File
@@ -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