如何导入Istio的Grafana仪表板?

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

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:

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

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:

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

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

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:

确定