英文:
How import grafana dashboard for Istio?
问题
I use grafana helm chart and configmap for importing dashboards, but when I try to load the official Istio dashboard, I get:
logger=provisioning.dashboard type=file name=sidecarProvider t=2023-04-13T12:28:39.524808833Z level=error msg="failed to load dashboard from " file=/tmp/dashboards/Istio/istio-performance-dashboard.json error="Dashboard title cannot be empty"
How can I fix it? I can fix the title
field and save the work version in the Helm chart, but it's bad because I'll need to change the original dashboards every time.
英文:
I use grafana helm chart and configmap for importing dashboards, but when I try to load the official Istio dashboard, I get:
logger=provisioning.dashboard type=file name=sidecarProvider t=2023-04-13T12:28:39.524808833Z level=error msg="failed to load dashboard from " file=/tmp/dashboards/Istio/istio-performance-dashboard.json error="Dashboard title cannot be empty"
How can I fix it? I can fix the title
field and save the work version in the Helm chart, but it's bad because I'll need to change the original dashboards every time.
答案1
得分: 2
I see you are trying to import Istio Performance Dashboard
using the grafana helm chart (as you mentioned), which would be this.
As an alternative to importing a dashboard(s) in grafana via the json file & configmap, you could also import the dashboard using the dashboard id from grafana.com
. The configuration needs to go into the values.yaml when using that helm chart.
Specifically here to enable/configure dashboardProviders and here to provision the dashboard using dashboard id from the grafana website.
In your case, the values should look like this:
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: 'default'
type: file
disableDeletion: true
editable: true
options:
path: /var/lib/grafana/dashboards/standard
dashboards:
default:
Istio Perf:
gnetId: 11829
revision: 162
datasource: yourdatasource
Shows up in grafana:
No metrics of course as I don't have a data source.
Hope it helps.
英文:
I see you are trying to import Istio Performance Dashboard
using the grafana helm chart (as you mentioned), which would be this
As an alternative to importing a dashboard(s) in grafana via the json file & configmap, you could also import the dashboard using the dashboard id from grafana.com
. The configuration needs to go into the values.yaml when using that helm chart.
Specifically here to enable/configure dashboardProviders and here to provision the dashboard using dashboard id from the grafana website.
In your case, the values should look like this:
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: 'default'
type: file
disableDeletion: true
editable: true
options:
path: /var/lib/grafana/dashboards/standard
dashboards:
default:
Istio Perf:
gnetId: 11829
revision: 162
datasource: yourdatasource
Shows up in grafana:
No metrics ofcourse as I don't have a data source.
Hope it helps.
答案2
得分: 0
我使用来自GitHub的仪表板。例如:链接由于某种原因,GitHub本身有一个具有正确title
字段的仪表板,这解决了空字段的问题。
英文:
In summary I use dashboard from github:
apiVersion: v1
kind: ConfigMap
metadata:
name: istio-extension-dashboard
labels:
grafana_dashboard: "true"
annotations:
grafana_dashboard_folder: Istio
data:
istio-extension-dashboard.json.url: "https://raw.githubusercontent.com/istio/istio/master/manifests/addons/dashboards/istio-extension-dashboard.json"
for example: link
for some reason there is a dashboard on the githab itself with the correct title
field - this solved the problem with the empty field
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论