如何导入Istio的Grafana仪表板?

huangapple go评论164阅读模式
英文:

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:

  1. 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:

  1. 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:

  1. dashboardProviders:
  2. dashboardproviders.yaml:
  3. apiVersion: 1
  4. providers:
  5. - name: 'default'
  6. orgId: 1
  7. folder: 'default'
  8. type: file
  9. disableDeletion: true
  10. editable: true
  11. options:
  12. path: /var/lib/grafana/dashboards/standard
  13. dashboards:
  14. default:
  15. Istio Perf:
  16. gnetId: 11829
  17. revision: 162
  18. datasource: yourdatasource

Shows up in grafana:

如何导入Istio的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:

  1. dashboardProviders:
  2. dashboardproviders.yaml:
  3. apiVersion: 1
  4. providers:
  5. - name: 'default'
  6. orgId: 1
  7. folder: 'default'
  8. type: file
  9. disableDeletion: true
  10. editable: true
  11. options:
  12. path: /var/lib/grafana/dashboards/standard
  13. dashboards:
  14. default:
  15. Istio Perf:
  16. gnetId: 11829
  17. revision: 162
  18. datasource: yourdatasource

Shows up in grafana:

如何导入Istio的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:

  1. apiVersion: v1
  2. kind: ConfigMap
  3. metadata:
  4. name: istio-extension-dashboard
  5. labels:
  6. grafana_dashboard: "true"
  7. annotations:
  8. grafana_dashboard_folder: Istio
  9. data:
  10. 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

huangapple
  • 本文由 发表于 2023年4月13日 20:43:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76005582.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定