We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc3ee0c commit 07bd24cCopy full SHA for 07bd24c
k8s/magiclove/grafana/grafana_dashboard_list.cue
@@ -3,6 +3,7 @@ package grafana
3
import (
4
"crypto/sha256"
5
"encoding/hex"
6
+ "list"
7
8
grafanav1beta1 "github.com/grafana/grafana-operator/v5/api/v1beta1"
9
)
@@ -100,10 +101,10 @@ let dashboards = {
100
101
}
102
instanceSelector: matchLabels: "app.kubernetes.io/name": #Name
103
folder: folderName
- datasources: [if folder == "EMQX MQTT" {
104
- inputName: "prometheus"
105
- datasourceName: "default"
106
- }, if "\(dashboardRef)" == "17446" {
+
+ let datasourceDashboards = [1860, 17446]
107
+ datasources: [if list.Contains(datasourceDashboards, dashboardRef) {
108
inputName: "DS_PROMETHEUS"
109
datasourceName: "default"
110
}]
0 commit comments