mirror of
https://github.com/wahyd4/badger.git
synced 2026-08-09 05:15:58 +10:00
use internal url for prometheus server
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user