{{- $Values := (.helm).Values | default .Values }} {{- $clusterLabel := ($Values.global).clusterLabel | default "cluster" }} {{- $multicluster := ((($Values.grafana).sidecar).dashboards).multicluster | default false }} {{- $defaultDatasource := "prometheus" -}} {{- range (((($Values.grafana).sidecar).datasources).victoriametrics | default list) }} {{- if and .isDefault .type }}{{ $defaultDatasource = .type }}{{- end }} {{- end }} annotations: list: - builtIn: 1 datasource: type: datasource uid: grafana enable: true hide: true iconColor: rgba(0, 211, 255, 1) name: Annotations & Alerts target: limit: 100 matchAny: false tags: [] type: dashboard type: dashboard - datasource: type: prometheus uid: $ds enable: false expr: sum(ALERTS{job=~"$job", instance=~"$instance", alertgroup="vmsingle",alertstate="firing",show_at="dashboard"}) by(alertname) hide: false iconColor: red name: alerts titleFormat: '{{`{{`}}alertname{{`}}`}}' - datasource: type: prometheus uid: $ds enable: true expr: sum(vm_app_version{job=~"$job", instance=~"$instance"}) by(version) unless (sum(vm_app_version{job=~"$job", instance=~"$instance"} offset $__interval) by(version)) hide: true iconColor: dark-blue name: version textFormat: '{{`{{`}}version{{`}}`}}' titleFormat: Version change condition: {{ ($Values.vmsingle).enabled }} description: Overview for single-node VictoriaMetrics v1.117.0 or higher editable: false fiscalYearStartMonth: 0 graphTooltip: 1 id: 1 links: - icon: doc tags: [] targetBlank: true title: Single server Wiki type: link url: https://docs.victoriametrics.com/ - icon: external link tags: [] targetBlank: true title: Found a bug? type: link url: https://github.com/VictoriaMetrics/VictoriaMetrics/issues - icon: external link tags: [] targetBlank: true title: New releases tooltip: '' type: link url: https://github.com/VictoriaMetrics/VictoriaMetrics/releases panels: - collapsed: false gridPos: h: 1 w: 24 x: 0 'y': 0 id: 6 panels: [] title: Stats type: row - description: '' fieldConfig: defaults: {} overrides: [] gridPos: h: 2 w: 4 x: 0 'y': 1 id: 85 options: code: language: plaintext showLineNumbers: false showMiniMap: false content: '