Skip to content

Commit

Permalink
change prometheus url
Browse files Browse the repository at this point in the history
  • Loading branch information
nima-rx committed Dec 10, 2022
1 parent 4c83ba2 commit 4527cf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
configMapKeyRef:
name: grafana-complementary-config
key: grafana-url
- name: PROMETHEUS_URL
valueFrom:
configMapKeyRef:
name: grafana-complementary-config
key: prometheus-url
imagePullPolicy: Always
name: manager
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion controllers/namespace/namespace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
const (
baseNs = "snappcloud-monitoring"
baseSa = "monitoring-datasource"
prometheusURL = "https://thanos-querier-custom.openshift-monitoring.svc.cluster.local:9092"
nsMonitoringLabel = "monitoring.snappcloud.io/grafana-datasource"
teamLabel = "snappcloud.io/team"
)
Expand All @@ -47,6 +46,7 @@ const (
var grafanaPassword = os.Getenv("GRAFANA_PASSWORD")
var grafanaUsername = os.Getenv("GRAFANA_USERNAME")
var grafanaURL = os.Getenv("GRAFANA_URL")
var prometheusURL = os.Getenv("PROMETHEUS_URL")

// NamespaceReconciler reconciles a Namespace object
type NamespaceReconciler struct {
Expand Down

0 comments on commit 4527cf0

Please sign in to comment.