Commit 180bffc7 authored by Patrik Paľovčík's avatar Patrik Paľovčík
Browse files

Small changes

parent 70bde260
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -9,5 +9,5 @@ providers:
    updateIntervalSeconds: 10
    updateIntervalSeconds: 10
    allowUiUpdates: true
    allowUiUpdates: true
    options:
    options:
      path: /etc/grafana/provisioning/dashboards
      path: /etc/grafana/dashboards
      foldersFromFilesStructure: true
      foldersFromFilesStructure: true
 No newline at end of file
+82 −16
Original line number Original line Diff line number Diff line
{
{
  "id": null,
  "apiVersion": 1,
  "uid": "example-dashboard",
  "providers": [
  "title": "Example Dashboard",
    {
      "name": "Prometheus dashboard",
      "orgId": 1,
      "folder": "PA165",
      "type": "file",
      "disableDeletion": true,
      "updateIntervalSeconds": 10,
      "allowUiUpdates": true,
      "options": {
        "path": "/etc/grafana/dashboards",
        "foldersFromFilesStructure": true
      }
    }
  ],
  "dashboards": [
    {
      "title": "Your Dashboard Title",
      "services": {
        "filter": {
          "list": [],
          "time": {
            "from": "now-15m",
            "to": "now"
          }
        }
      },
      "rows": [
        {
          "title": "Your Row Title",
          "height": "300px",
          "editable": true,
          "collapse": false,
          "collapsable": true,
          "panels": [
          "panels": [
            {
            {
      "title": "Panel 1",
              "title": "Your Panel Title",
              "span": 6,
              "type": "graph",
              "type": "graph",
              "datasource": "Prometheus",
              "targets": [
              "targets": [
                {
                {
          "expr": "up"
                  "expr": "Your_Prometheus_Query_Here",
                  "legendFormat": "{{metric}}",
                  "refId": "A"
                }
                }
      ]
              ],
              "lines": true,
              "fill": 1,
              "linewidth": 1,
              "points": false,
              "pointradius": 2,
              "bars": false,
              "stack": false,
              "nullPointMode": "null",
              "steppedLine": false,
              "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
              },
              },
              "xaxis": {
                "show": true
              },
              "yaxes": [
                {
                {
      "title": "Panel 2",
                  "format": "short",
      "type": "graph",
                  "label": null,
      "targets": [
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                },
                {
                {
          "expr": "node_cpu_seconds_total{mode='idle'}"
                  "format": "short",
                  "label": null,
                  "logBase": 1,
                  "max": null,
                  "min": null,
                  "show": true
                }
              ]
            }
          ]
        }
        }
      ]
      ]
    }
    }