{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "datasource", "uid": "grafana" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "Monitor your fortigate instances with grafana and prometheus via SNMP.\n\n\nTested with fortigate 1000D but should work well with other models.", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 13, "links": [], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 32, "panels": [], "title": "Nettverk Status", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "green", "mode": "shades" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "s" }, "overrides": [] }, "gridPos": { "h": 7, "w": 5, "x": 0, "y": 1 }, "id": 46, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "sysUpTime{instance=\"10.10.10.1\", job=\"snmp\"} / 100\t", "format": "time_series", "intervalFactor": 1, "range": true, "refId": "A" } ], "title": "System Uptime", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "green", "mode": "fixed" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 50 }, { "color": "#d44a3a", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 7, "w": 4, "x": 5, "y": 1 }, "id": 5, "maxDataPoints": 100, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "fgSysMemUsage{instance=\"10.10.10.1\"}", "format": "time_series", "intervalFactor": 1, "range": true, "refId": "A" } ], "title": "Memory Usage", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "fieldConfig": { "defaults": { "color": { "fixedColor": "green", "mode": "fixed" }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 50 }, { "color": "#d44a3a", "value": 80 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 7, "w": 5, "x": 9, "y": 1 }, "id": 4, "maxDataPoints": 100, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "horizontal", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "fgSysCpuUsage{instance=\"10.10.10.1\"}\r\n", "format": "time_series", "intervalFactor": 1, "range": true, "refId": "A" } ], "title": "CPU Usage", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "fieldConfig": { "defaults": { "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 52428800 }, { "color": "#d44a3a", "value": 83886080 } ] }, "unit": "Mbits" }, "overrides": [] }, "gridPos": { "h": 7, "w": 5, "x": 14, "y": 1 }, "id": 38, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "irate(ifHCInOctets{instance=\"10.10.10.1\", job=\"snmp\", ifName=\"x1\"}[1m]) * 8 / 1000000\r\n\r\n", "format": "time_series", "intervalFactor": 1, "range": true, "refId": "A" } ], "title": "Bandwidth Inbound", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "fieldConfig": { "defaults": { "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 52428800 }, { "color": "#d44a3a", "value": 83886080 } ] }, "unit": "Mbits" }, "overrides": [] }, "gridPos": { "h": 7, "w": 5, "x": 19, "y": 1 }, "id": 39, "maxDataPoints": 100, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "horizontal", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": false, "textMode": "auto", "wideLayout": true }, "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "irate(ifHCOutOctets{instance=\"10.10.10.1\", job=\"snmp\", ifName=\"x1\"}[1m]) * 8 / 1000000\r\n", "format": "time_series", "intervalFactor": 1, "range": true, "refId": "A" } ], "title": "Bandwidth Outbound", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": true, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 53, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "smooth", "lineStyle": { "fill": "solid" }, "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "fieldMinMax": false, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] } }, "overrides": [ { "matcher": { "id": "byName", "options": "{__name__=\"fgSysSesCount\", instance=\"10.10.10.1\", job=\"snmp\"}" }, "properties": [ { "id": "displayName", "value": "Active Sessions" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "id": 47, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "fgSysSesCount{instance=\"10.10.10.1\"}", "instant": false, "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "Sessions", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 100, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [ { "options": { "match": "null", "result": { "text": "N/A" } }, "type": "special" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "#299c46", "value": null }, { "color": "rgba(237, 129, 40, 0.89)", "value": 52428800 }, { "color": "#d44a3a", "value": 83886080 } ] }, "unit": "Mbits" }, "overrides": [ { "matcher": { "id": "byFrameRefID", "options": "A" }, "properties": [ { "id": "displayName", "value": "NTE WAN IN" } ] }, { "matcher": { "id": "byFrameRefID", "options": "B" }, "properties": [ { "id": "displayName", "value": "NTE WAN OUT" } ] } ] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "id": 48, "maxDataPoints": 100, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "irate(ifHCInOctets{instance=\"10.10.10.1\", job=\"snmp\", ifName=\"x1\"}[1m]) * 8 / 1000000\r\n\r\n\r\n", "format": "time_series", "intervalFactor": 1, "legendFormat": "{{Incoming}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "irate(ifHCOutOctets{instance=\"10.10.10.1\", job=\"snmp\", ifName=\"x1\"}[1m]) * 8 / 1000000\r\n\r\n\r\n", "hide": false, "instant": false, "legendFormat": "__auto", "range": true, "refId": "B" } ], "title": "Bandwidth Graph", "type": "timeseries" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 16 }, "id": 53, "panels": [], "title": "Jotunheimen Wifi", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 68, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "Mbits" }, "overrides": [ { "matcher": { "id": "byName", "options": "{ifIndex=\"20\", ifName=\"JotunWiFI\", instance=\"10.10.10.1\", job=\"snmp\"}" }, "properties": [ { "id": "displayName", "value": "JotunWifi" } ] } ] }, "gridPos": { "h": 9, "w": 8, "x": 0, "y": 17 }, "id": 51, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "pluginVersion": "11.4.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "ee67qa14gehhca" }, "editorMode": "code", "expr": "irate(ifHCInOctets{instance=\"10.10.10.1\", job=\"snmp\", ifName=\"JotunWiFI\"}[1m]) * 8 / 1000000\r\n\r\n", "instant": false, "legendFormat": "__auto", "range": true, "refId": "A" } ], "title": "Wifi Bandwidth", "type": "timeseries" }, { "fieldConfig": { "defaults": {}, "overrides": [] }, "gridPos": { "h": 3, "w": 16, "x": 8, "y": 17 }, "id": 54, "options": { "code": { "language": "plaintext", "showLineNumbers": false, "showMiniMap": false }, "content": "