fix: make grafana prometheus datasource resilient with nodeport fallback
Some checks failed
Deploy Cluster / Terraform (push) Successful in 45s
Deploy Grafana Content / Grafana Content (push) Successful in 1m46s
Deploy Cluster / Ansible (push) Has been cancelled

This commit is contained in:
2026-03-04 19:22:31 +00:00
parent 9ff9d1e633
commit eb1ad0bea7
4 changed files with 98 additions and 6 deletions

View File

@@ -9,15 +9,10 @@ data:
datasources.yaml: |
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://kube-prometheus-stack-prometheus.{{ observability_namespace }}.svc.cluster.local:9090
isDefault: true
{% if loki_enabled %}
- name: Loki
type: loki
access: proxy
url: http://loki.{{ observability_namespace }}.svc.cluster.local:3100
url: "{{ grafana_loki_url }}"
isDefault: false
{% endif %}