diff --git a/stable/kommander/Chart.yaml b/stable/kommander/Chart.yaml index f5e76eea8..0a7fe438f 100644 --- a/stable/kommander/Chart.yaml +++ b/stable/kommander/Chart.yaml @@ -7,4 +7,4 @@ maintainers: - name: alejandroEsc - name: jimmidyson name: kommander -version: 0.4.15 +version: 0.4.16 diff --git a/stable/kommander/templates/grafana/dashboards/k8s-resources-clusters.yaml b/stable/kommander/templates/grafana/dashboards/k8s-resources-clusters.yaml index 933564265..bb75e6776 100644 --- a/stable/kommander/templates/grafana/dashboards/k8s-resources-clusters.yaml +++ b/stable/kommander/templates/grafana/dashboards/k8s-resources-clusters.yaml @@ -11,16 +11,7 @@ metadata: data: k8s-resources-clusters-dashboard.json: |- { - "__inputs": [ - { - "name": "DS_KOMMANDERPROMETHEUS", - "label": "KommanderPrometheus", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], + "__inputs": [], "__requires": [ { "type": "grafana", @@ -70,12 +61,12 @@ data: "gnetId": null, "graphTooltip": 0, "id": null, - "iteration": 1582226941429, + "iteration": 1582323837127, "links": [], "panels": [ { "cacheTimeout": null, - "datasource": "${DS_KOMMANDERPROMETHEUS}", + "datasource": "$datasource", "gridPos": { "h": 6, "w": 24, @@ -124,7 +115,7 @@ data: "pluginVersion": "6.6.0", "targets": [ { - "expr": "count(thanos_store_nodes_grpc_connections)", + "expr": "count(prometheus_build_info)", "refId": "A" } ], @@ -2677,8 +2668,8 @@ data: ] }, "timezone": "", - "title": "Kubernetes / Compute Resources / Clusters", - "uid": "efa86fd1d0c121a26444b636a3f509a8", + "title": "Kubernetes / Compute Resources / Cluster [Global]", + "uid": "f0U1EswWk", "version": 1 } {{- end }} diff --git a/stable/kommander/templates/grafana/hooks-home-dashboard.yaml b/stable/kommander/templates/grafana/hooks-home-dashboard.yaml index a54a3b067..22d624b1a 100644 --- a/stable/kommander/templates/grafana/hooks-home-dashboard.yaml +++ b/stable/kommander/templates/grafana/hooks-home-dashboard.yaml @@ -83,7 +83,7 @@ data: set -o errexit set -o pipefail CURL="curl --verbose --fail --max-time 30 --retry 20 --retry-connrefused" - DASHBOARD_ID=$($CURL -H "X-Forwarded-User: $X_FORWARDED_USER" {{ .Values.grafana.hooks.serviceURL }}/api/dashboards/uid/{{ .Values.grafana.hooks.homeDashboardUID }} | jq '.dashboard.id') + DASHBOARD_ID=$($CURL -H "X-Forwarded-User: $X_FORWARDED_USER" {{ .Values.grafana.hooks.serviceURL }}/api/search/?query={{ .Values.grafana.hooks.dashboardName | urlquery }} | jq '.[0].id') echo "setting home dashboard to ID" $DASHBOARD_ID $CURL -X PUT -H "Content-Type: application/json" -H "X-Forwarded-User: $X_FORWARDED_USER" -d '{"homeDashboardId":'"$DASHBOARD_ID"'}' {{ .Values.grafana.hooks.serviceURL }}/api/org/preferences --- diff --git a/stable/kommander/values.yaml b/stable/kommander/values.yaml index 4a06d87b7..96a7fa743 100644 --- a/stable/kommander/values.yaml +++ b/stable/kommander/values.yaml @@ -34,8 +34,7 @@ grafana: image: dwdraju/alpine-curl-jq secretKeyRef: ops-portal-username serviceURL: http://kommander-kubeaddons-grafana.kommander - # This is the UID of the "Kubernetes / Compute Resources / Clusters" summary dashboard - homeDashboardUID: efa86fd1d0c121a26444b636a3f509a8 + dashboardName: "Kubernetes / Compute Resources / Cluster [Global]" kommanderServiceAccount: kommander-kubeaddons ## Do not deploy default dashboards.