Files
securityonion/salt/grafana/dashboards/common_template.json.jinja
2021-07-27 10:23:35 -04:00

63 lines
1.3 KiB
Django/Jinja

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "{{TITLE}}",
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": {{ ID }},
"iteration": 1625757047565,
"links": [],
"panels": [
{% for panel in PANELS -%}
{%- import_json "grafana/panels/" ~ panel ~ ".json.jinja" as panel %}
{{ panel | json }} {% if not loop.last %},{% endif %}
{% endfor -%}
],
"refresh": "5m",
"schemaVersion": 27,
"style": "dark",
"tags": [],
"templating": {
"list": [
{% for template in TEMPLATES.keys() -%}
{%- import_json "grafana/templates/" ~ template ~ ".json" as template %}
{{ template | json }} {% if not loop.last %},{% endif %}
{% endfor -%}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "browser",
"title": "{{ TITLE }}",
{% if TITLE | lower == 'security onion grid overview' %}
"uid": "so_overview",
{% endif %}
"version": 1
}