Skip to content
Snippets Groups Projects
nren-dashboard.json.j2 1.56 KiB
{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": false,
  "gnetId": null,
  "graphTooltip": 0,
  "schemaVersion": 27,
  "style": "dark",
  {% if not tags %}
  "tags": ["{{ tag }}"],
  {% else %}
  "tags": [
    {% for tag in tags %}
      "{{ tag }}"{{ "," if not loop.last }}
    {% endfor %}
  ],
  {% endif %}
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-24h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "{{ nren_name }}",
  "version": 1,
  "links": [],
  "panels": [
    {
      "datasource": null,
      "gridPos": {
        "h": 2,
        "w": 15,
        "x": 4,
        "y": 0
      },
      "id": 1,
      "options": {
        "content": "<div style=\"display: flex; justify-content: center; align-items: center; height: 100%;\"><span>INFO: The average values displayed are only mean values for timescales of 2 days or less</span></div>",
        "mode": "html"
      },
      "title": "",
      "type": "text"
    },
    {% for panel in aggregate_panels %}
        {{ panel }},
    {% endfor %}
    {% for group in dropdown_groups %}
      {{ group.dropdown }}
      {% if group.panels|length > 0 %}
        ,
      {% endif %}
      {% for panel in group.panels %}
        {{ panel }}{{ "," if not loop.last }}
      {% endfor %}
      {{ "," if not loop.last }}
    {% endfor %}
  ]
}