Skip to content

Simple Grafana dashboard

Back

This example show how to add Grafana dashboard for show collected metrics.

Dashboard

spec:
  name: simple-dashboard.json
  json: >
    {
      "id": null,
      "title": "Simple Dashboard",
      ...
      <dashboard content in json format>
      ...
    }

It means that in grafana will import dashboard with name Simple Dashboard.

Files

How to apply example

Kubernetes:

kubectl apply -f dashboard.yaml

OpenShift:

oc apply -f dashboard.yaml