mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-03 22:03:12 +00:00
- Update paths and orchestration for deployers (compose/k8s/local/docker) - Consolidate scripts helpers and refresh book/README docs
34 lines
966 B
YAML
34 lines
966 B
YAML
{{- if .Values.grafana.enabled }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "nomos-runner.fullname" . }}-grafana-config
|
|
data:
|
|
datasources.yaml: |
|
|
apiVersion: 1
|
|
datasources:
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
isDefault: true
|
|
uid: PBFA97CFB590B2093
|
|
orgId: 1
|
|
url: {{ if .Values.prometheus.enabled }}http://prometheus:9090{{ else }}{{ required "prometheus.externalUrl must be set when prometheus.enabled=false" .Values.prometheus.externalUrl }}{{ end }}
|
|
editable: true
|
|
dashboards.yaml: |
|
|
apiVersion: 1
|
|
providers:
|
|
- name: 'default'
|
|
orgId: 1
|
|
folder: 'Nomos'
|
|
type: file
|
|
disableDeletion: false
|
|
editable: true
|
|
options:
|
|
path: /var/lib/grafana/dashboards
|
|
{{ range $path, $_ := .Files.Glob "grafana/dashboards/*.json" }}
|
|
{{ base $path }}: |
|
|
{{ $.Files.Get $path | indent 4 }}
|
|
{{ end }}
|
|
{{- end }}
|