├── APCUPS.png ├── ICMP.png ├── Ping.png ├── SNMP.png ├── OpenWRT-Wifi.jpeg ├── README.md ├── ICMP.json ├── OpenWRT-Wifi.json ├── Ping.json ├── APCUPS.json └── SNMP.json /APCUPS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markuslindenberg/dashboards/HEAD/APCUPS.png -------------------------------------------------------------------------------- /ICMP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markuslindenberg/dashboards/HEAD/ICMP.png -------------------------------------------------------------------------------- /Ping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markuslindenberg/dashboards/HEAD/Ping.png -------------------------------------------------------------------------------- /SNMP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markuslindenberg/dashboards/HEAD/SNMP.png -------------------------------------------------------------------------------- /OpenWRT-Wifi.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/markuslindenberg/dashboards/HEAD/OpenWRT-Wifi.jpeg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Grafana Dashboards 2 | 3 | Grafana dashboards I created. 4 | 5 | ## SNMP 6 | 7 | Interface status and traffic graphs for [Prometheus SNMP Exporter](https://github.com/prometheus/snmp_exporter). 8 | 9 | ![SNMP dashboard screenshot](SNMP.png) 10 | 11 | ## ICMP 12 | 13 | Blackbox ICMP check dashboard using [Prometheus Blackbox Exporter](https://github.com/prometheus/blackbox_exporter). 14 | 15 | ![ICMP dashboard screenshot](ICMP.png) 16 | 17 | ## Ping 18 | 19 | Dashboard for [ping exporter](https://github.com/czerwonk/ping_exporter). 20 | 21 | ![Ping dashboard screenshot](Ping.png) 22 | 23 | ## APC UPS 24 | 25 | Status dashboard for APC UPS using [Prometheus SNMP Exporter](https://github.com/prometheus/snmp_exporter). 26 | 27 | ![APC UPS dashboard screenshot](APCUPS.png) 28 | 29 | ## OpenWRT Wifi 30 | 31 | Status dashboard for OpenWRT using the OpenWRT included exporter: 32 | 33 | ``` 34 | opkg update && opkg install prometheus-node-exporter-lua prometheus-node-exporter-lua-wifi prometheus-node-exporter-lua-wifi_stations 35 | ``` 36 | 37 | ![OpenWRT Wifi dashboard screenshot](OpenWRT-Wifi.jpeg) 38 | 39 | -------------------------------------------------------------------------------- /ICMP.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar Gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "grafana", 21 | "id": "grafana", 22 | "name": "Grafana", 23 | "version": "6.2.0" 24 | }, 25 | { 26 | "type": "panel", 27 | "id": "graph", 28 | "name": "Graph", 29 | "version": "" 30 | }, 31 | { 32 | "type": "datasource", 33 | "id": "prometheus", 34 | "name": "Prometheus", 35 | "version": "1.0.0" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "table", 40 | "name": "Table", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "type": "dashboard" 54 | } 55 | ] 56 | }, 57 | "editable": true, 58 | "gnetId": null, 59 | "graphTooltip": 1, 60 | "id": null, 61 | "iteration": 1558863925707, 62 | "links": [], 63 | "panels": [ 64 | { 65 | "datasource": "${DS_PROMETHEUS}", 66 | "gridPos": { 67 | "h": 14, 68 | "w": 16, 69 | "x": 0, 70 | "y": 0 71 | }, 72 | "id": 2, 73 | "links": [], 74 | "options": { 75 | "displayMode": "gradient", 76 | "fieldOptions": { 77 | "calcs": [ 78 | "last" 79 | ], 80 | "defaults": { 81 | "max": 40, 82 | "min": 0, 83 | "title": "", 84 | "unit": "ms" 85 | }, 86 | "mappings": [], 87 | "override": {}, 88 | "thresholds": [ 89 | { 90 | "color": "green", 91 | "index": 0, 92 | "value": null 93 | }, 94 | { 95 | "color": "#EAB839", 96 | "index": 1, 97 | "value": 15 98 | }, 99 | { 100 | "color": "red", 101 | "index": 2, 102 | "value": 30 103 | } 104 | ], 105 | "values": false 106 | }, 107 | "orientation": "horizontal" 108 | }, 109 | "repeat": null, 110 | "targets": [ 111 | { 112 | "expr": "1000*probe_icmp_duration_seconds{job=~\"$job\",instance=~\"$instance\",phase=\"rtt\"}", 113 | "format": "time_series", 114 | "instant": true, 115 | "intervalFactor": 1, 116 | "legendFormat": "{{instance}}", 117 | "metric": "probe_", 118 | "refId": "A", 119 | "step": 2 120 | } 121 | ], 122 | "timeFrom": null, 123 | "timeShift": null, 124 | "title": "Current RTT", 125 | "type": "bargauge" 126 | }, 127 | { 128 | "columns": [], 129 | "datasource": "${DS_PROMETHEUS}", 130 | "fontSize": "100%", 131 | "gridPos": { 132 | "h": 21, 133 | "w": 8, 134 | "x": 16, 135 | "y": 0 136 | }, 137 | "id": 1, 138 | "links": [], 139 | "options": {}, 140 | "pageSize": null, 141 | "scroll": true, 142 | "showHeader": true, 143 | "sort": { 144 | "col": 1, 145 | "desc": false 146 | }, 147 | "styles": [ 148 | { 149 | "alias": "Time", 150 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 151 | "pattern": "Time", 152 | "type": "hidden" 153 | }, 154 | { 155 | "alias": "Host", 156 | "colorMode": null, 157 | "colors": [ 158 | "rgba(245, 54, 54, 0.9)", 159 | "rgba(237, 129, 40, 0.89)", 160 | "rgba(50, 172, 45, 0.97)" 161 | ], 162 | "decimals": 2, 163 | "pattern": "instance", 164 | "thresholds": [], 165 | "type": "string", 166 | "unit": "short" 167 | }, 168 | { 169 | "alias": "Success", 170 | "colorMode": "value", 171 | "colors": [ 172 | "rgba(245, 54, 54, 0.9)", 173 | "rgba(237, 129, 40, 0.89)", 174 | "rgba(50, 172, 45, 0.97)" 175 | ], 176 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 177 | "decimals": 2, 178 | "mappingType": 1, 179 | "pattern": "Value #A", 180 | "thresholds": [ 181 | "1", 182 | "1" 183 | ], 184 | "type": "string", 185 | "unit": "short", 186 | "valueMaps": [ 187 | { 188 | "text": "yes", 189 | "value": "1" 190 | }, 191 | { 192 | "text": "no", 193 | "value": "0" 194 | } 195 | ] 196 | }, 197 | { 198 | "alias": "Protocol", 199 | "colorMode": "value", 200 | "colors": [ 201 | "rgba(245, 54, 54, 0.9)", 202 | "rgba(237, 129, 40, 0.89)", 203 | "rgba(50, 172, 45, 0.97)" 204 | ], 205 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 206 | "decimals": 2, 207 | "mappingType": 1, 208 | "pattern": "Value #B", 209 | "thresholds": [ 210 | "4", 211 | "6" 212 | ], 213 | "type": "string", 214 | "unit": "short", 215 | "valueMaps": [ 216 | { 217 | "text": "IPv4", 218 | "value": "4" 219 | }, 220 | { 221 | "text": "IPv6", 222 | "value": "6" 223 | } 224 | ] 225 | } 226 | ], 227 | "targets": [ 228 | { 229 | "expr": "sum(probe_success{job=~\"$job\",instance=~\"$instance\"}) by (instance)", 230 | "format": "table", 231 | "instant": true, 232 | "intervalFactor": 1, 233 | "legendFormat": "", 234 | "refId": "A", 235 | "step": 2 236 | }, 237 | { 238 | "expr": "sum(probe_ip_protocol{job=~\"$job\",instance=~\"$instance\"}) by (instance)", 239 | "format": "table", 240 | "instant": true, 241 | "intervalFactor": 1, 242 | "refId": "B" 243 | } 244 | ], 245 | "timeFrom": null, 246 | "timeShift": null, 247 | "title": "ICMP Probe Success", 248 | "transform": "table", 249 | "type": "table" 250 | }, 251 | { 252 | "aliasColors": {}, 253 | "bars": false, 254 | "dashLength": 10, 255 | "dashes": false, 256 | "datasource": "${DS_PROMETHEUS}", 257 | "fill": 0, 258 | "gridPos": { 259 | "h": 7, 260 | "w": 16, 261 | "x": 0, 262 | "y": 14 263 | }, 264 | "id": 3, 265 | "legend": { 266 | "alignAsTable": true, 267 | "avg": false, 268 | "current": false, 269 | "hideEmpty": true, 270 | "hideZero": true, 271 | "max": false, 272 | "min": false, 273 | "rightSide": true, 274 | "show": true, 275 | "total": false, 276 | "values": false 277 | }, 278 | "lines": true, 279 | "linewidth": 2, 280 | "links": [], 281 | "nullPointMode": "null", 282 | "options": {}, 283 | "percentage": false, 284 | "pointradius": 2, 285 | "points": false, 286 | "renderer": "flot", 287 | "seriesOverrides": [], 288 | "spaceLength": 10, 289 | "stack": false, 290 | "steppedLine": false, 291 | "targets": [ 292 | { 293 | "expr": "1000*probe_icmp_duration_seconds{job=~\"$job\",instance=~\"$instance\",phase=\"rtt\"}", 294 | "format": "time_series", 295 | "instant": false, 296 | "intervalFactor": 1, 297 | "legendFormat": "{{instance}}", 298 | "metric": "probe_", 299 | "refId": "A", 300 | "step": 2 301 | } 302 | ], 303 | "thresholds": [], 304 | "timeFrom": null, 305 | "timeRegions": [], 306 | "timeShift": null, 307 | "title": "RTT", 308 | "tooltip": { 309 | "shared": true, 310 | "sort": 2, 311 | "value_type": "individual" 312 | }, 313 | "type": "graph", 314 | "xaxis": { 315 | "buckets": null, 316 | "mode": "time", 317 | "name": null, 318 | "show": true, 319 | "values": [] 320 | }, 321 | "yaxes": [ 322 | { 323 | "format": "ms", 324 | "label": null, 325 | "logBase": 1, 326 | "max": null, 327 | "min": null, 328 | "show": true 329 | }, 330 | { 331 | "format": "short", 332 | "label": null, 333 | "logBase": 1, 334 | "max": null, 335 | "min": null, 336 | "show": true 337 | } 338 | ], 339 | "yaxis": { 340 | "align": false, 341 | "alignLevel": null 342 | } 343 | } 344 | ], 345 | "refresh": "10s", 346 | "schemaVersion": 18, 347 | "style": "dark", 348 | "tags": [], 349 | "templating": { 350 | "list": [ 351 | { 352 | "allFormat": "glob", 353 | "allValue": "", 354 | "current": {}, 355 | "datasource": "${DS_PROMETHEUS}", 356 | "definition": "label_values(probe_icmp_duration_seconds,job)", 357 | "hide": 0, 358 | "includeAll": true, 359 | "label": "Job", 360 | "multi": true, 361 | "multiFormat": "glob", 362 | "name": "job", 363 | "options": [], 364 | "query": "label_values(probe_icmp_duration_seconds,job)", 365 | "refresh": 2, 366 | "regex": "", 367 | "skipUrlSync": false, 368 | "sort": 1, 369 | "tagValuesQuery": "", 370 | "tags": [], 371 | "tagsQuery": "", 372 | "type": "query", 373 | "useTags": false 374 | }, 375 | { 376 | "allFormat": "glob", 377 | "allValue": "", 378 | "current": {}, 379 | "datasource": "${DS_PROMETHEUS}", 380 | "definition": "label_values(probe_success{job=~\"$job\"},instance)", 381 | "hide": 0, 382 | "includeAll": true, 383 | "label": "Instance", 384 | "multi": true, 385 | "multiFormat": "glob", 386 | "name": "instance", 387 | "options": [], 388 | "query": "label_values(probe_success{job=~\"$job\"},instance)", 389 | "refresh": 2, 390 | "regex": "", 391 | "skipUrlSync": false, 392 | "sort": 1, 393 | "tagValuesQuery": "", 394 | "tags": [], 395 | "tagsQuery": "", 396 | "type": "query", 397 | "useTags": false 398 | } 399 | ] 400 | }, 401 | "time": { 402 | "from": "now-15m", 403 | "to": "now" 404 | }, 405 | "timepicker": { 406 | "now": true, 407 | "refresh_intervals": [ 408 | "5s", 409 | "10s", 410 | "30s", 411 | "1m", 412 | "5m", 413 | "15m", 414 | "30m", 415 | "1h", 416 | "2h", 417 | "1d" 418 | ], 419 | "time_options": [ 420 | "5m", 421 | "15m", 422 | "1h", 423 | "6h", 424 | "12h", 425 | "24h", 426 | "2d", 427 | "7d", 428 | "30d" 429 | ] 430 | }, 431 | "timezone": "browser", 432 | "title": "ICMP", 433 | "uid": "000000016", 434 | "version": 30 435 | } -------------------------------------------------------------------------------- /OpenWRT-Wifi.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__requires": [ 13 | { 14 | "type": "grafana", 15 | "id": "grafana", 16 | "name": "Grafana", 17 | "version": "6.3.5" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "graph", 22 | "name": "Graph", 23 | "version": "" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | } 31 | ], 32 | "annotations": { 33 | "list": [ 34 | { 35 | "builtIn": 1, 36 | "datasource": "-- Grafana --", 37 | "enable": true, 38 | "hide": true, 39 | "iconColor": "rgba(0, 211, 255, 1)", 40 | "name": "Annotations & Alerts", 41 | "type": "dashboard" 42 | } 43 | ] 44 | }, 45 | "editable": true, 46 | "gnetId": null, 47 | "graphTooltip": 1, 48 | "id": null, 49 | "links": [], 50 | "panels": [ 51 | { 52 | "aliasColors": {}, 53 | "bars": false, 54 | "dashLength": 10, 55 | "dashes": false, 56 | "fill": 0, 57 | "fillGradient": 0, 58 | "gridPos": { 59 | "h": 9, 60 | "w": 12, 61 | "x": 0, 62 | "y": 0 63 | }, 64 | "id": 6, 65 | "legend": { 66 | "alignAsTable": true, 67 | "avg": true, 68 | "current": true, 69 | "hideEmpty": true, 70 | "hideZero": true, 71 | "max": true, 72 | "min": false, 73 | "rightSide": false, 74 | "show": true, 75 | "total": false, 76 | "values": true 77 | }, 78 | "lines": true, 79 | "linewidth": 1, 80 | "links": [], 81 | "nullPointMode": "null", 82 | "options": { 83 | "dataLinks": [] 84 | }, 85 | "percentage": false, 86 | "pointradius": 5, 87 | "points": false, 88 | "renderer": "flot", 89 | "seriesOverrides": [], 90 | "spaceLength": 10, 91 | "stack": false, 92 | "steppedLine": false, 93 | "targets": [ 94 | { 95 | "expr": "wifi_network_bitrate", 96 | "format": "time_series", 97 | "intervalFactor": 1, 98 | "legendFormat": "{{device}}/{{ifname}} {{frequency}}GHz CH{{channel}} SSID {{ssid}}", 99 | "refId": "A" 100 | } 101 | ], 102 | "thresholds": [], 103 | "timeFrom": null, 104 | "timeRegions": [], 105 | "timeShift": null, 106 | "title": "Wifi Network Bitrate", 107 | "tooltip": { 108 | "shared": true, 109 | "sort": 2, 110 | "value_type": "individual" 111 | }, 112 | "type": "graph", 113 | "xaxis": { 114 | "buckets": null, 115 | "mode": "time", 116 | "name": null, 117 | "show": true, 118 | "values": [] 119 | }, 120 | "yaxes": [ 121 | { 122 | "format": "Kbits", 123 | "label": null, 124 | "logBase": 1, 125 | "max": null, 126 | "min": null, 127 | "show": true 128 | }, 129 | { 130 | "format": "short", 131 | "label": null, 132 | "logBase": 1, 133 | "max": null, 134 | "min": null, 135 | "show": true 136 | } 137 | ], 138 | "yaxis": { 139 | "align": false, 140 | "alignLevel": null 141 | } 142 | }, 143 | { 144 | "aliasColors": {}, 145 | "bars": false, 146 | "dashLength": 10, 147 | "dashes": false, 148 | "datasource": "${DS_PROMETHEUS}", 149 | "fill": 0, 150 | "fillGradient": 0, 151 | "gridPos": { 152 | "h": 9, 153 | "w": 12, 154 | "x": 12, 155 | "y": 0 156 | }, 157 | "id": 2, 158 | "legend": { 159 | "alignAsTable": true, 160 | "avg": false, 161 | "current": true, 162 | "hideEmpty": true, 163 | "hideZero": true, 164 | "max": false, 165 | "min": false, 166 | "rightSide": true, 167 | "show": false, 168 | "total": false, 169 | "values": true 170 | }, 171 | "lines": true, 172 | "linewidth": 1, 173 | "links": [], 174 | "nullPointMode": "null", 175 | "options": { 176 | "dataLinks": [] 177 | }, 178 | "percentage": false, 179 | "pointradius": 5, 180 | "points": false, 181 | "renderer": "flot", 182 | "seriesOverrides": [], 183 | "spaceLength": 10, 184 | "stack": false, 185 | "steppedLine": false, 186 | "targets": [ 187 | { 188 | "expr": "max(wifi_station_signal) by (ifname,name)", 189 | "format": "time_series", 190 | "intervalFactor": 1, 191 | "legendFormat": "{{ifname}}: {{name}}", 192 | "refId": "A" 193 | } 194 | ], 195 | "thresholds": [], 196 | "timeFrom": null, 197 | "timeRegions": [], 198 | "timeShift": null, 199 | "title": "Wifi Station Signal Strength", 200 | "tooltip": { 201 | "shared": true, 202 | "sort": 2, 203 | "value_type": "individual" 204 | }, 205 | "type": "graph", 206 | "xaxis": { 207 | "buckets": null, 208 | "mode": "time", 209 | "name": null, 210 | "show": true, 211 | "values": [] 212 | }, 213 | "yaxes": [ 214 | { 215 | "format": "dBm", 216 | "label": null, 217 | "logBase": 1, 218 | "max": null, 219 | "min": null, 220 | "show": true 221 | }, 222 | { 223 | "format": "short", 224 | "label": null, 225 | "logBase": 1, 226 | "max": null, 227 | "min": null, 228 | "show": true 229 | } 230 | ], 231 | "yaxis": { 232 | "align": false, 233 | "alignLevel": null 234 | } 235 | }, 236 | { 237 | "aliasColors": {}, 238 | "bars": false, 239 | "dashLength": 10, 240 | "dashes": false, 241 | "fill": 0, 242 | "fillGradient": 0, 243 | "gridPos": { 244 | "h": 9, 245 | "w": 12, 246 | "x": 0, 247 | "y": 9 248 | }, 249 | "id": 8, 250 | "legend": { 251 | "alignAsTable": true, 252 | "avg": true, 253 | "current": true, 254 | "hideEmpty": true, 255 | "hideZero": true, 256 | "max": false, 257 | "min": false, 258 | "show": true, 259 | "total": false, 260 | "values": true 261 | }, 262 | "lines": true, 263 | "linewidth": 1, 264 | "links": [], 265 | "nullPointMode": "null", 266 | "options": { 267 | "dataLinks": [] 268 | }, 269 | "percentage": false, 270 | "pointradius": 5, 271 | "points": false, 272 | "renderer": "flot", 273 | "seriesOverrides": [], 274 | "spaceLength": 10, 275 | "stack": false, 276 | "steppedLine": false, 277 | "targets": [ 278 | { 279 | "expr": "wifi_network_signal", 280 | "format": "time_series", 281 | "intervalFactor": 1, 282 | "legendFormat": "{{device}}/{{ifname}} {{frequency}}GHz CH{{channel}} SSID {{ssid}}", 283 | "refId": "A" 284 | } 285 | ], 286 | "thresholds": [], 287 | "timeFrom": null, 288 | "timeRegions": [], 289 | "timeShift": null, 290 | "title": "Wifi Network Signal", 291 | "tooltip": { 292 | "shared": true, 293 | "sort": 2, 294 | "value_type": "individual" 295 | }, 296 | "type": "graph", 297 | "xaxis": { 298 | "buckets": null, 299 | "mode": "time", 300 | "name": null, 301 | "show": true, 302 | "values": [] 303 | }, 304 | "yaxes": [ 305 | { 306 | "format": "dBm", 307 | "label": null, 308 | "logBase": 1, 309 | "max": null, 310 | "min": null, 311 | "show": true 312 | }, 313 | { 314 | "format": "short", 315 | "label": null, 316 | "logBase": 1, 317 | "max": null, 318 | "min": null, 319 | "show": true 320 | } 321 | ], 322 | "yaxis": { 323 | "align": false, 324 | "alignLevel": null 325 | } 326 | }, 327 | { 328 | "aliasColors": {}, 329 | "bars": false, 330 | "dashLength": 10, 331 | "dashes": false, 332 | "fill": 1, 333 | "fillGradient": 0, 334 | "gridPos": { 335 | "h": 9, 336 | "w": 12, 337 | "x": 12, 338 | "y": 9 339 | }, 340 | "id": 4, 341 | "legend": { 342 | "alignAsTable": true, 343 | "avg": true, 344 | "current": true, 345 | "hideEmpty": true, 346 | "hideZero": true, 347 | "max": true, 348 | "min": false, 349 | "rightSide": true, 350 | "show": false, 351 | "total": false, 352 | "values": true 353 | }, 354 | "lines": true, 355 | "linewidth": 1, 356 | "links": [], 357 | "nullPointMode": "null", 358 | "options": { 359 | "dataLinks": [] 360 | }, 361 | "percentage": false, 362 | "pointradius": 5, 363 | "points": false, 364 | "renderer": "flot", 365 | "seriesOverrides": [ 366 | { 367 | "alias": "/^in/", 368 | "transform": "negative-Y" 369 | } 370 | ], 371 | "spaceLength": 10, 372 | "stack": false, 373 | "steppedLine": false, 374 | "targets": [ 375 | { 376 | "expr": "sum(irate(wifi_station_tx_packets[5m])) by (name)", 377 | "format": "time_series", 378 | "intervalFactor": 1, 379 | "legendFormat": "out {{name}}", 380 | "refId": "A" 381 | }, 382 | { 383 | "expr": "sum(irate(wifi_station_rx_packets[5m])) by (name)", 384 | "format": "time_series", 385 | "intervalFactor": 1, 386 | "legendFormat": "in {{name}}", 387 | "refId": "B" 388 | } 389 | ], 390 | "thresholds": [], 391 | "timeFrom": null, 392 | "timeRegions": [], 393 | "timeShift": null, 394 | "title": "Wifi Station Packets", 395 | "tooltip": { 396 | "shared": true, 397 | "sort": 2, 398 | "value_type": "individual" 399 | }, 400 | "type": "graph", 401 | "xaxis": { 402 | "buckets": null, 403 | "mode": "time", 404 | "name": null, 405 | "show": true, 406 | "values": [] 407 | }, 408 | "yaxes": [ 409 | { 410 | "format": "pps", 411 | "label": "rx (-) / tx (+)", 412 | "logBase": 1, 413 | "max": null, 414 | "min": null, 415 | "show": true 416 | }, 417 | { 418 | "format": "short", 419 | "label": null, 420 | "logBase": 1, 421 | "max": null, 422 | "min": null, 423 | "show": true 424 | } 425 | ], 426 | "yaxis": { 427 | "align": false, 428 | "alignLevel": null 429 | } 430 | }, 431 | { 432 | "aliasColors": {}, 433 | "bars": false, 434 | "dashLength": 10, 435 | "dashes": false, 436 | "fill": 0, 437 | "fillGradient": 0, 438 | "gridPos": { 439 | "h": 9, 440 | "w": 12, 441 | "x": 0, 442 | "y": 18 443 | }, 444 | "id": 10, 445 | "legend": { 446 | "alignAsTable": true, 447 | "avg": false, 448 | "current": true, 449 | "max": false, 450 | "min": false, 451 | "show": true, 452 | "total": false, 453 | "values": true 454 | }, 455 | "lines": true, 456 | "linewidth": 1, 457 | "links": [], 458 | "nullPointMode": "null", 459 | "options": { 460 | "dataLinks": [] 461 | }, 462 | "percentage": false, 463 | "pointradius": 5, 464 | "points": false, 465 | "renderer": "flot", 466 | "seriesOverrides": [], 467 | "spaceLength": 10, 468 | "stack": false, 469 | "steppedLine": false, 470 | "targets": [ 471 | { 472 | "expr": "wifi_network_quality", 473 | "format": "time_series", 474 | "intervalFactor": 1, 475 | "legendFormat": "{{device}}/{{ifname}} {{frequency}}GHz CH{{channel}} SSID {{ssid}}", 476 | "refId": "A" 477 | } 478 | ], 479 | "thresholds": [], 480 | "timeFrom": null, 481 | "timeRegions": [], 482 | "timeShift": null, 483 | "title": "Wifi Network Quality", 484 | "tooltip": { 485 | "shared": true, 486 | "sort": 2, 487 | "value_type": "individual" 488 | }, 489 | "type": "graph", 490 | "xaxis": { 491 | "buckets": null, 492 | "mode": "time", 493 | "name": null, 494 | "show": true, 495 | "values": [] 496 | }, 497 | "yaxes": [ 498 | { 499 | "format": "percent", 500 | "label": null, 501 | "logBase": 1, 502 | "max": "100", 503 | "min": "0", 504 | "show": true 505 | }, 506 | { 507 | "format": "short", 508 | "label": null, 509 | "logBase": 1, 510 | "max": null, 511 | "min": null, 512 | "show": true 513 | } 514 | ], 515 | "yaxis": { 516 | "align": false, 517 | "alignLevel": null 518 | } 519 | } 520 | ], 521 | "schemaVersion": 19, 522 | "style": "dark", 523 | "tags": [], 524 | "templating": { 525 | "list": [] 526 | }, 527 | "time": { 528 | "from": "now-6h", 529 | "to": "now" 530 | }, 531 | "timepicker": { 532 | "refresh_intervals": [ 533 | "5s", 534 | "10s", 535 | "30s", 536 | "1m", 537 | "5m", 538 | "15m", 539 | "30m", 540 | "1h", 541 | "2h", 542 | "1d" 543 | ], 544 | "time_options": [ 545 | "5m", 546 | "15m", 547 | "1h", 548 | "6h", 549 | "12h", 550 | "24h", 551 | "2d", 552 | "7d", 553 | "30d" 554 | ] 555 | }, 556 | "timezone": "", 557 | "title": "OpenWrt Wifi", 558 | "uid": "n0VpdaSik", 559 | "version": 15 560 | } -------------------------------------------------------------------------------- /Ping.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__requires": [ 13 | { 14 | "type": "grafana", 15 | "id": "grafana", 16 | "name": "Grafana", 17 | "version": "6.2.0" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "graph", 22 | "name": "Graph", 23 | "version": "" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | }, 31 | { 32 | "type": "panel", 33 | "id": "table", 34 | "name": "Table", 35 | "version": "" 36 | } 37 | ], 38 | "annotations": { 39 | "list": [ 40 | { 41 | "builtIn": 1, 42 | "datasource": "-- Grafana --", 43 | "enable": true, 44 | "hide": true, 45 | "iconColor": "rgba(0, 211, 255, 1)", 46 | "name": "Annotations & Alerts", 47 | "type": "dashboard" 48 | } 49 | ] 50 | }, 51 | "editable": true, 52 | "gnetId": null, 53 | "graphTooltip": 1, 54 | "id": null, 55 | "iteration": 1558877302346, 56 | "links": [], 57 | "panels": [ 58 | { 59 | "columns": [], 60 | "datasource": "${DS_PROMETHEUS}", 61 | "fontSize": "100%", 62 | "gridPos": { 63 | "h": 9, 64 | "w": 24, 65 | "x": 0, 66 | "y": 0 67 | }, 68 | "id": 1, 69 | "links": [], 70 | "options": {}, 71 | "pageSize": null, 72 | "scroll": true, 73 | "showHeader": true, 74 | "sort": { 75 | "col": 2, 76 | "desc": false 77 | }, 78 | "styles": [ 79 | { 80 | "alias": "Time", 81 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 82 | "pattern": "Time", 83 | "type": "hidden" 84 | }, 85 | { 86 | "alias": "Host", 87 | "colorMode": null, 88 | "colors": [ 89 | "rgba(245, 54, 54, 0.9)", 90 | "rgba(237, 129, 40, 0.89)", 91 | "rgba(50, 172, 45, 0.97)" 92 | ], 93 | "decimals": 2, 94 | "pattern": "target", 95 | "thresholds": [], 96 | "type": "string", 97 | "unit": "short" 98 | }, 99 | { 100 | "alias": "Success", 101 | "colorMode": "value", 102 | "colors": [ 103 | "rgba(50, 172, 45, 0.97)", 104 | "rgba(237, 129, 40, 0.89)", 105 | "rgba(245, 54, 54, 0.9)" 106 | ], 107 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 108 | "decimals": 2, 109 | "mappingType": 2, 110 | "pattern": "Value #A", 111 | "rangeMaps": [ 112 | { 113 | "from": "1", 114 | "text": "no", 115 | "to": "2" 116 | }, 117 | { 118 | "from": "0", 119 | "text": "yes", 120 | "to": "1" 121 | } 122 | ], 123 | "thresholds": [ 124 | "0.1", 125 | "1" 126 | ], 127 | "type": "string", 128 | "unit": "short", 129 | "valueMaps": [ 130 | { 131 | "text": "no", 132 | "value": "1" 133 | }, 134 | { 135 | "text": "no", 136 | "value": "0" 137 | } 138 | ] 139 | }, 140 | { 141 | "alias": "IPv4", 142 | "colorMode": null, 143 | "colors": [ 144 | "rgba(245, 54, 54, 0.9)", 145 | "rgba(237, 129, 40, 0.89)", 146 | "rgba(50, 172, 45, 0.97)" 147 | ], 148 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 149 | "decimals": 2, 150 | "mappingType": 1, 151 | "pattern": "ipv4", 152 | "thresholds": [ 153 | "" 154 | ], 155 | "type": "string", 156 | "unit": "percentunit", 157 | "valueMaps": [] 158 | }, 159 | { 160 | "alias": "Loss IPv4", 161 | "colorMode": "value", 162 | "colors": [ 163 | "rgba(50, 172, 45, 0.97)", 164 | "rgba(237, 129, 40, 0.89)", 165 | "rgba(245, 54, 54, 0.9)" 166 | ], 167 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 168 | "decimals": 2, 169 | "mappingType": 1, 170 | "pattern": "Value #B", 171 | "thresholds": [ 172 | "0.1", 173 | "0.5" 174 | ], 175 | "type": "number", 176 | "unit": "percentunit" 177 | }, 178 | { 179 | "alias": "IPv6", 180 | "colorMode": null, 181 | "colors": [ 182 | "rgba(245, 54, 54, 0.9)", 183 | "rgba(237, 129, 40, 0.89)", 184 | "rgba(50, 172, 45, 0.97)" 185 | ], 186 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 187 | "decimals": 2, 188 | "mappingType": 1, 189 | "pattern": "ipv6", 190 | "thresholds": [], 191 | "type": "string", 192 | "unit": "short" 193 | }, 194 | { 195 | "alias": "Loss IPv6", 196 | "colorMode": "value", 197 | "colors": [ 198 | "rgba(50, 172, 45, 0.97)", 199 | "rgba(237, 129, 40, 0.89)", 200 | "rgba(245, 54, 54, 0.9)" 201 | ], 202 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 203 | "decimals": 2, 204 | "mappingType": 1, 205 | "pattern": "Value #C", 206 | "thresholds": [ 207 | "0.1", 208 | "0.5" 209 | ], 210 | "type": "number", 211 | "unit": "percentunit" 212 | }, 213 | { 214 | "alias": "Instance", 215 | "colorMode": null, 216 | "colors": [ 217 | "rgba(245, 54, 54, 0.9)", 218 | "rgba(237, 129, 40, 0.89)", 219 | "rgba(50, 172, 45, 0.97)" 220 | ], 221 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 222 | "decimals": 2, 223 | "mappingType": 1, 224 | "pattern": "instance", 225 | "thresholds": [], 226 | "type": "string", 227 | "unit": "short" 228 | } 229 | ], 230 | "targets": [ 231 | { 232 | "expr": "sum(ping_loss_percent{job=~\"$job\",instance=~\"$instance\",target=~\"$target\",ip_version=~\"$ip_version\"}) by (instance,target) / count(ping_loss_percent{job=~\"$job\",instance=~\"$instance\",target=~\"$target\",ip_version=~\"$ip_version\"}) by (instance,target)", 233 | "format": "table", 234 | "hide": false, 235 | "instant": true, 236 | "intervalFactor": 1, 237 | "legendFormat": "", 238 | "refId": "A", 239 | "step": 2 240 | }, 241 | { 242 | "expr": "sum(label_replace(ping_loss_percent{job=~\"$job\",instance=~\"$instance\",target=~\"$target\",ip_version=~\"$ip_version\",ip_version=\"4\"}, \"ipv4\", \"$1\", \"ip\", \"(.*)\")) by (instance,target,ipv4)", 243 | "format": "table", 244 | "hide": false, 245 | "instant": true, 246 | "intervalFactor": 1, 247 | "legendFormat": "", 248 | "refId": "B", 249 | "step": 2 250 | }, 251 | { 252 | "expr": "sum(label_replace(ping_loss_percent{job=~\"$job\",instance=~\"$instance\",target=~\"$target\",ip_version=~\"$ip_version\",ip_version=\"6\"}, \"ipv6\", \"$1\", \"ip\", \"(.*)\")) by (instance,target,ipv6)", 253 | "format": "table", 254 | "hide": false, 255 | "instant": true, 256 | "intervalFactor": 1, 257 | "legendFormat": "", 258 | "refId": "C", 259 | "step": 2 260 | } 261 | ], 262 | "timeFrom": null, 263 | "timeShift": null, 264 | "title": "Ping Success", 265 | "transform": "table", 266 | "type": "table" 267 | }, 268 | { 269 | "collapsed": false, 270 | "gridPos": { 271 | "h": 1, 272 | "w": 24, 273 | "x": 0, 274 | "y": 9 275 | }, 276 | "id": 23, 277 | "panels": [], 278 | "repeat": "instance", 279 | "title": "Instance $instance", 280 | "type": "row" 281 | }, 282 | { 283 | "aliasColors": {}, 284 | "bars": false, 285 | "dashLength": 10, 286 | "dashes": false, 287 | "datasource": "${DS_PROMETHEUS}", 288 | "fill": 0, 289 | "gridPos": { 290 | "h": 7, 291 | "w": 12, 292 | "x": 0, 293 | "y": 10 294 | }, 295 | "id": 3, 296 | "legend": { 297 | "alignAsTable": false, 298 | "avg": false, 299 | "current": true, 300 | "hideEmpty": true, 301 | "hideZero": false, 302 | "max": false, 303 | "min": false, 304 | "rightSide": false, 305 | "show": false, 306 | "total": false, 307 | "values": true 308 | }, 309 | "lines": true, 310 | "linewidth": 2, 311 | "links": [], 312 | "maxPerRow": 2, 313 | "nullPointMode": "null", 314 | "options": {}, 315 | "percentage": false, 316 | "pointradius": 2, 317 | "points": false, 318 | "renderer": "flot", 319 | "repeat": "target", 320 | "repeatDirection": "h", 321 | "seriesOverrides": [ 322 | { 323 | "alias": "IPv4 worst", 324 | "color": "#B877D9", 325 | "fillBelowTo": "IPv4 best", 326 | "lines": false 327 | }, 328 | { 329 | "alias": "IPv4 mean", 330 | "color": "#B877D9" 331 | }, 332 | { 333 | "alias": "IPv4 best", 334 | "color": "#B877D9", 335 | "lines": false 336 | }, 337 | { 338 | "alias": "IPv6 worst", 339 | "color": "#5794F2", 340 | "fillBelowTo": "IPv6 best", 341 | "lines": false 342 | }, 343 | { 344 | "alias": "IPv6 mean", 345 | "color": "#5794F2" 346 | }, 347 | { 348 | "alias": "IPv6 best", 349 | "color": "#5794F2", 350 | "lines": false 351 | }, 352 | { 353 | "alias": "IPv4 loss", 354 | "color": "#DEB6F2", 355 | "fill": 2, 356 | "linewidth": 0, 357 | "yaxis": 2 358 | }, 359 | { 360 | "alias": "IPv6 loss", 361 | "color": "#C0D8FF", 362 | "fill": 2, 363 | "linewidth": 0, 364 | "yaxis": 2 365 | } 366 | ], 367 | "spaceLength": 10, 368 | "stack": false, 369 | "steppedLine": false, 370 | "targets": [ 371 | { 372 | "expr": "avg(ping_rtt_best_ms{job=~\"$job\",instance=~\"$instance\",target=~\"$target\",ip_version=~\"$ip_version\"}) by (ip_version)", 373 | "format": "time_series", 374 | "instant": false, 375 | "intervalFactor": 1, 376 | "legendFormat": "IPv{{ip_version}} best", 377 | "metric": "probe_", 378 | "refId": "A", 379 | "step": 2 380 | }, 381 | { 382 | "expr": "avg(ping_rtt_mean_ms{job=~\"$job\",instance=~\"$instance\",target=~\"$target\",ip_version=~\"$ip_version\"}) by (ip_version)", 383 | "format": "time_series", 384 | "instant": false, 385 | "intervalFactor": 1, 386 | "legendFormat": "IPv{{ip_version}} mean", 387 | "metric": "probe_", 388 | "refId": "B", 389 | "step": 2 390 | }, 391 | { 392 | "expr": "avg(ping_rtt_worst_ms{job=~\"$job\",instance=~\"$instance\",target=~\"$target\",ip_version=~\"$ip_version\"}) by (ip_version)", 393 | "format": "time_series", 394 | "instant": false, 395 | "intervalFactor": 1, 396 | "legendFormat": "IPv{{ip_version}} worst", 397 | "metric": "probe_", 398 | "refId": "C", 399 | "step": 2 400 | }, 401 | { 402 | "expr": "avg(ping_loss_percent{job=~\"$job\",instance=~\"$instance\",target=~\"$target\",ip_version=~\"$ip_version\"}) by (ip_version)", 403 | "format": "time_series", 404 | "intervalFactor": 1, 405 | "legendFormat": "IPv{{ip_version}} loss", 406 | "refId": "D" 407 | } 408 | ], 409 | "thresholds": [], 410 | "timeFrom": null, 411 | "timeRegions": [], 412 | "timeShift": null, 413 | "title": "Target $target", 414 | "tooltip": { 415 | "shared": true, 416 | "sort": 2, 417 | "value_type": "individual" 418 | }, 419 | "type": "graph", 420 | "xaxis": { 421 | "buckets": null, 422 | "mode": "time", 423 | "name": null, 424 | "show": true, 425 | "values": [] 426 | }, 427 | "yaxes": [ 428 | { 429 | "format": "ms", 430 | "label": "RTT", 431 | "logBase": 1, 432 | "max": null, 433 | "min": "0", 434 | "show": true 435 | }, 436 | { 437 | "format": "percentunit", 438 | "label": "Loss", 439 | "logBase": 1, 440 | "max": "1", 441 | "min": "0", 442 | "show": true 443 | } 444 | ], 445 | "yaxis": { 446 | "align": false, 447 | "alignLevel": null 448 | } 449 | } 450 | ], 451 | "refresh": "10s", 452 | "schemaVersion": 18, 453 | "style": "dark", 454 | "tags": [], 455 | "templating": { 456 | "list": [ 457 | { 458 | "allFormat": "glob", 459 | "allValue": "", 460 | "current": {}, 461 | "datasource": "${DS_PROMETHEUS}", 462 | "definition": "label_values(ping_loss_percent,job)", 463 | "hide": 0, 464 | "includeAll": true, 465 | "label": "Job", 466 | "multi": true, 467 | "multiFormat": "glob", 468 | "name": "job", 469 | "options": [], 470 | "query": "label_values(ping_loss_percent,job)", 471 | "refresh": 2, 472 | "regex": "", 473 | "skipUrlSync": false, 474 | "sort": 1, 475 | "tagValuesQuery": "", 476 | "tags": [], 477 | "tagsQuery": "", 478 | "type": "query", 479 | "useTags": false 480 | }, 481 | { 482 | "allFormat": "glob", 483 | "allValue": "", 484 | "current": {}, 485 | "datasource": "${DS_PROMETHEUS}", 486 | "definition": "label_values(ping_loss_percent{job=~\"$job\"},instance)", 487 | "hide": 0, 488 | "includeAll": true, 489 | "label": "Instance", 490 | "multi": true, 491 | "multiFormat": "glob", 492 | "name": "instance", 493 | "options": [], 494 | "query": "label_values(ping_loss_percent{job=~\"$job\"},instance)", 495 | "refresh": 2, 496 | "regex": "", 497 | "skipUrlSync": false, 498 | "sort": 1, 499 | "tagValuesQuery": "", 500 | "tags": [], 501 | "tagsQuery": "", 502 | "type": "query", 503 | "useTags": false 504 | }, 505 | { 506 | "allFormat": "glob", 507 | "allValue": "", 508 | "current": {}, 509 | "datasource": "${DS_PROMETHEUS}", 510 | "definition": "label_values(ping_loss_percent{job=~\"$job\",instance=~\"$instance\"},target)", 511 | "hide": 0, 512 | "includeAll": true, 513 | "label": "Target", 514 | "multi": true, 515 | "multiFormat": "glob", 516 | "name": "target", 517 | "options": [], 518 | "query": "label_values(ping_loss_percent{job=~\"$job\",instance=~\"$instance\"},target)", 519 | "refresh": 2, 520 | "regex": "", 521 | "skipUrlSync": false, 522 | "sort": 1, 523 | "tagValuesQuery": "", 524 | "tags": [], 525 | "tagsQuery": "", 526 | "type": "query", 527 | "useTags": false 528 | }, 529 | { 530 | "allFormat": "glob", 531 | "allValue": "", 532 | "current": {}, 533 | "datasource": "${DS_PROMETHEUS}", 534 | "definition": "label_values(ping_loss_percent{job=~\"$job\",instance=~\"$instance\"},ip_version)", 535 | "hide": 0, 536 | "includeAll": true, 537 | "label": "IP Version", 538 | "multi": true, 539 | "multiFormat": "glob", 540 | "name": "ip_version", 541 | "options": [], 542 | "query": "label_values(ping_loss_percent{job=~\"$job\",instance=~\"$instance\"},ip_version)", 543 | "refresh": 2, 544 | "regex": "", 545 | "skipUrlSync": false, 546 | "sort": 1, 547 | "tagValuesQuery": "", 548 | "tags": [], 549 | "tagsQuery": "", 550 | "type": "query", 551 | "useTags": false 552 | } 553 | ] 554 | }, 555 | "time": { 556 | "from": "now-3h", 557 | "to": "now" 558 | }, 559 | "timepicker": { 560 | "now": true, 561 | "refresh_intervals": [ 562 | "5s", 563 | "10s", 564 | "30s", 565 | "1m", 566 | "5m", 567 | "15m", 568 | "30m", 569 | "1h", 570 | "2h", 571 | "1d" 572 | ], 573 | "time_options": [ 574 | "5m", 575 | "15m", 576 | "1h", 577 | "6h", 578 | "12h", 579 | "24h", 580 | "2d", 581 | "7d", 582 | "30d" 583 | ] 584 | }, 585 | "timezone": "browser", 586 | "title": "Ping", 587 | "uid": "pv02xrZWz", 588 | "version": 23 589 | } -------------------------------------------------------------------------------- /APCUPS.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__requires": [ 13 | { 14 | "type": "grafana", 15 | "id": "grafana", 16 | "name": "Grafana", 17 | "version": "6.2.0" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "graph", 22 | "name": "Graph", 23 | "version": "" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | }, 31 | { 32 | "type": "panel", 33 | "id": "singlestat", 34 | "name": "Singlestat", 35 | "version": "" 36 | } 37 | ], 38 | "annotations": { 39 | "list": [ 40 | { 41 | "builtIn": 1, 42 | "datasource": "-- Grafana --", 43 | "enable": true, 44 | "hide": true, 45 | "iconColor": "rgba(0, 211, 255, 1)", 46 | "name": "Annotations & Alerts", 47 | "type": "dashboard" 48 | } 49 | ] 50 | }, 51 | "editable": true, 52 | "gnetId": null, 53 | "graphTooltip": 0, 54 | "id": null, 55 | "iteration": 1558805051208, 56 | "links": [], 57 | "panels": [ 58 | { 59 | "cacheTimeout": null, 60 | "colorBackground": false, 61 | "colorValue": true, 62 | "colors": [ 63 | "rgba(50, 172, 45, 0.97)", 64 | "rgba(237, 129, 40, 0.89)", 65 | "rgba(245, 54, 54, 0.9)" 66 | ], 67 | "decimals": 1, 68 | "format": "percent", 69 | "gauge": { 70 | "maxValue": 100, 71 | "minValue": 0, 72 | "show": true, 73 | "thresholdLabels": false, 74 | "thresholdMarkers": true 75 | }, 76 | "gridPos": { 77 | "h": 7, 78 | "w": 4, 79 | "x": 0, 80 | "y": 0 81 | }, 82 | "id": 1, 83 | "interval": null, 84 | "links": [], 85 | "mappingType": 1, 86 | "mappingTypes": [ 87 | { 88 | "name": "value to text", 89 | "value": 1 90 | }, 91 | { 92 | "name": "range to text", 93 | "value": 2 94 | } 95 | ], 96 | "maxDataPoints": 100, 97 | "nullPointMode": "connected", 98 | "nullText": null, 99 | "options": {}, 100 | "postfix": "", 101 | "postfixFontSize": "50%", 102 | "prefix": "", 103 | "prefixFontSize": "50%", 104 | "rangeMaps": [ 105 | { 106 | "from": "null", 107 | "text": "N/A", 108 | "to": "null" 109 | } 110 | ], 111 | "sparkline": { 112 | "fillColor": "rgba(31, 118, 189, 0.18)", 113 | "full": false, 114 | "lineColor": "rgb(31, 120, 193)", 115 | "show": true 116 | }, 117 | "tableColumn": "", 118 | "targets": [ 119 | { 120 | "expr": "0.1*upsHighPrecOutputLoad{instance=\"$instance\"}", 121 | "format": "time_series", 122 | "intervalFactor": 2, 123 | "refId": "A", 124 | "step": 1800 125 | } 126 | ], 127 | "thresholds": "50,70", 128 | "title": "Output Load", 129 | "type": "singlestat", 130 | "valueFontSize": "70%", 131 | "valueMaps": [ 132 | { 133 | "op": "=", 134 | "text": "N/A", 135 | "value": "null" 136 | } 137 | ], 138 | "valueName": "current" 139 | }, 140 | { 141 | "cacheTimeout": null, 142 | "colorBackground": false, 143 | "colorValue": false, 144 | "colors": [ 145 | "rgba(245, 54, 54, 0.9)", 146 | "rgba(237, 129, 40, 0.89)", 147 | "rgba(50, 172, 45, 0.97)" 148 | ], 149 | "decimals": 2, 150 | "format": "voltamp", 151 | "gauge": { 152 | "maxValue": 100, 153 | "minValue": 0, 154 | "show": false, 155 | "thresholdLabels": false, 156 | "thresholdMarkers": true 157 | }, 158 | "gridPos": { 159 | "h": 7, 160 | "w": 4, 161 | "x": 4, 162 | "y": 0 163 | }, 164 | "id": 2, 165 | "interval": null, 166 | "links": [], 167 | "mappingType": 1, 168 | "mappingTypes": [ 169 | { 170 | "name": "value to text", 171 | "value": 1 172 | }, 173 | { 174 | "name": "range to text", 175 | "value": 2 176 | } 177 | ], 178 | "maxDataPoints": 100, 179 | "nullPointMode": "connected", 180 | "nullText": null, 181 | "options": {}, 182 | "postfix": "", 183 | "postfixFontSize": "50%", 184 | "prefix": "", 185 | "prefixFontSize": "50%", 186 | "rangeMaps": [ 187 | { 188 | "from": "null", 189 | "text": "N/A", 190 | "to": "null" 191 | } 192 | ], 193 | "sparkline": { 194 | "fillColor": "rgba(31, 118, 189, 0.18)", 195 | "full": false, 196 | "lineColor": "rgb(31, 120, 193)", 197 | "show": true 198 | }, 199 | "tableColumn": "", 200 | "targets": [ 201 | { 202 | "expr": "0.01*upsHighPrecOutputCurrent{instance=\"$instance\"}*upsHighPrecOutputVoltage{instance=\"$instance\"}", 203 | "format": "time_series", 204 | "intervalFactor": 2, 205 | "refId": "A", 206 | "step": 1800 207 | } 208 | ], 209 | "thresholds": "", 210 | "title": "Output Power", 211 | "type": "singlestat", 212 | "valueFontSize": "100%", 213 | "valueMaps": [ 214 | { 215 | "op": "=", 216 | "text": "N/A", 217 | "value": "null" 218 | } 219 | ], 220 | "valueName": "current" 221 | }, 222 | { 223 | "cacheTimeout": null, 224 | "colorBackground": false, 225 | "colorValue": true, 226 | "colors": [ 227 | "rgba(245, 54, 54, 0.9)", 228 | "rgba(237, 129, 40, 0.89)", 229 | "rgba(50, 172, 45, 0.97)" 230 | ], 231 | "decimals": 1, 232 | "format": "percent", 233 | "gauge": { 234 | "maxValue": 100, 235 | "minValue": 0, 236 | "show": true, 237 | "thresholdLabels": false, 238 | "thresholdMarkers": true 239 | }, 240 | "gridPos": { 241 | "h": 7, 242 | "w": 4, 243 | "x": 8, 244 | "y": 0 245 | }, 246 | "id": 11, 247 | "interval": null, 248 | "links": [], 249 | "mappingType": 1, 250 | "mappingTypes": [ 251 | { 252 | "name": "value to text", 253 | "value": 1 254 | }, 255 | { 256 | "name": "range to text", 257 | "value": 2 258 | } 259 | ], 260 | "maxDataPoints": 100, 261 | "nullPointMode": "connected", 262 | "nullText": null, 263 | "options": {}, 264 | "postfix": "", 265 | "postfixFontSize": "50%", 266 | "prefix": "", 267 | "prefixFontSize": "50%", 268 | "rangeMaps": [ 269 | { 270 | "from": "null", 271 | "text": "N/A", 272 | "to": "null" 273 | } 274 | ], 275 | "sparkline": { 276 | "fillColor": "rgba(31, 118, 189, 0.18)", 277 | "full": false, 278 | "lineColor": "rgb(31, 120, 193)", 279 | "show": true 280 | }, 281 | "tableColumn": "", 282 | "targets": [ 283 | { 284 | "expr": "0.1*upsHighPrecBatteryCapacity{instance=\"$instance\"}", 285 | "format": "time_series", 286 | "intervalFactor": 2, 287 | "refId": "A", 288 | "step": 1800 289 | } 290 | ], 291 | "thresholds": "30,50", 292 | "title": "Battery Capacity", 293 | "type": "singlestat", 294 | "valueFontSize": "70%", 295 | "valueMaps": [ 296 | { 297 | "op": "=", 298 | "text": "N/A", 299 | "value": "null" 300 | } 301 | ], 302 | "valueName": "current" 303 | }, 304 | { 305 | "cacheTimeout": null, 306 | "colorBackground": false, 307 | "colorValue": true, 308 | "colors": [ 309 | "rgba(245, 54, 54, 0.9)", 310 | "rgba(237, 129, 40, 0.89)", 311 | "rgba(50, 172, 45, 0.97)" 312 | ], 313 | "decimals": 1, 314 | "format": "m", 315 | "gauge": { 316 | "maxValue": 100, 317 | "minValue": 0, 318 | "show": false, 319 | "thresholdLabels": false, 320 | "thresholdMarkers": true 321 | }, 322 | "gridPos": { 323 | "h": 7, 324 | "w": 4, 325 | "x": 12, 326 | "y": 0 327 | }, 328 | "id": 3, 329 | "interval": null, 330 | "links": [], 331 | "mappingType": 1, 332 | "mappingTypes": [ 333 | { 334 | "name": "value to text", 335 | "value": 1 336 | }, 337 | { 338 | "name": "range to text", 339 | "value": 2 340 | } 341 | ], 342 | "maxDataPoints": 100, 343 | "nullPointMode": "connected", 344 | "nullText": null, 345 | "options": {}, 346 | "postfix": "", 347 | "postfixFontSize": "50%", 348 | "prefix": "", 349 | "prefixFontSize": "50%", 350 | "rangeMaps": [ 351 | { 352 | "from": "null", 353 | "text": "N/A", 354 | "to": "null" 355 | } 356 | ], 357 | "sparkline": { 358 | "fillColor": "rgba(31, 118, 189, 0.18)", 359 | "full": false, 360 | "lineColor": "rgb(31, 120, 193)", 361 | "show": true 362 | }, 363 | "tableColumn": "", 364 | "targets": [ 365 | { 366 | "expr": "upsAdvBatteryRunTimeRemaining{instance=\"$instance\"}/60/100", 367 | "format": "time_series", 368 | "intervalFactor": 2, 369 | "refId": "A", 370 | "step": 1800 371 | } 372 | ], 373 | "thresholds": "15,30", 374 | "title": "Run Time Remaining", 375 | "type": "singlestat", 376 | "valueFontSize": "80%", 377 | "valueMaps": [ 378 | { 379 | "op": "=", 380 | "text": "N/A", 381 | "value": "null" 382 | } 383 | ], 384 | "valueName": "current" 385 | }, 386 | { 387 | "cacheTimeout": null, 388 | "colorBackground": false, 389 | "colorValue": true, 390 | "colors": [ 391 | "rgba(50, 172, 45, 0.97)", 392 | "rgba(237, 129, 40, 0.89)", 393 | "rgba(245, 54, 54, 0.9)" 394 | ], 395 | "format": "m", 396 | "gauge": { 397 | "maxValue": 100, 398 | "minValue": 0, 399 | "show": false, 400 | "thresholdLabels": false, 401 | "thresholdMarkers": true 402 | }, 403 | "gridPos": { 404 | "h": 7, 405 | "w": 4, 406 | "x": 16, 407 | "y": 0 408 | }, 409 | "id": 4, 410 | "interval": null, 411 | "links": [], 412 | "mappingType": 1, 413 | "mappingTypes": [ 414 | { 415 | "name": "value to text", 416 | "value": 1 417 | }, 418 | { 419 | "name": "range to text", 420 | "value": 2 421 | } 422 | ], 423 | "maxDataPoints": 100, 424 | "nullPointMode": "connected", 425 | "nullText": null, 426 | "options": {}, 427 | "postfix": "", 428 | "postfixFontSize": "50%", 429 | "prefix": "", 430 | "prefixFontSize": "50%", 431 | "rangeMaps": [ 432 | { 433 | "from": "null", 434 | "text": "N/A", 435 | "to": "null" 436 | } 437 | ], 438 | "sparkline": { 439 | "fillColor": "rgba(31, 118, 189, 0.18)", 440 | "full": false, 441 | "lineColor": "rgb(31, 120, 193)", 442 | "show": false 443 | }, 444 | "tableColumn": "", 445 | "targets": [ 446 | { 447 | "expr": "upsBasicBatteryTimeOnBattery{instance=\"$instance\"}/60/100", 448 | "format": "time_series", 449 | "intervalFactor": 2, 450 | "refId": "A", 451 | "step": 1800 452 | } 453 | ], 454 | "thresholds": "0.5,0.5", 455 | "title": "Time on Battery", 456 | "type": "singlestat", 457 | "valueFontSize": "80%", 458 | "valueMaps": [ 459 | { 460 | "op": "=", 461 | "text": "N/A", 462 | "value": "null" 463 | } 464 | ], 465 | "valueName": "avg" 466 | }, 467 | { 468 | "cacheTimeout": null, 469 | "colorBackground": false, 470 | "colorValue": false, 471 | "colors": [ 472 | "rgba(245, 54, 54, 0.9)", 473 | "rgba(237, 129, 40, 0.89)", 474 | "rgba(50, 172, 45, 0.97)" 475 | ], 476 | "decimals": 1, 477 | "format": "celsius", 478 | "gauge": { 479 | "maxValue": 100, 480 | "minValue": 0, 481 | "show": false, 482 | "thresholdLabels": false, 483 | "thresholdMarkers": true 484 | }, 485 | "gridPos": { 486 | "h": 7, 487 | "w": 4, 488 | "x": 20, 489 | "y": 0 490 | }, 491 | "id": 12, 492 | "interval": null, 493 | "links": [], 494 | "mappingType": 1, 495 | "mappingTypes": [ 496 | { 497 | "name": "value to text", 498 | "value": 1 499 | }, 500 | { 501 | "name": "range to text", 502 | "value": 2 503 | } 504 | ], 505 | "maxDataPoints": 100, 506 | "nullPointMode": "connected", 507 | "nullText": null, 508 | "options": {}, 509 | "postfix": "", 510 | "postfixFontSize": "50%", 511 | "prefix": "", 512 | "prefixFontSize": "50%", 513 | "rangeMaps": [ 514 | { 515 | "from": "null", 516 | "text": "N/A", 517 | "to": "null" 518 | } 519 | ], 520 | "sparkline": { 521 | "fillColor": "rgba(31, 118, 189, 0.18)", 522 | "full": false, 523 | "lineColor": "rgb(31, 120, 193)", 524 | "show": true 525 | }, 526 | "tableColumn": "", 527 | "targets": [ 528 | { 529 | "expr": "0.1*upsHighPrecBatteryTemperature{instance=\"$instance\"}", 530 | "format": "time_series", 531 | "intervalFactor": 2, 532 | "refId": "A", 533 | "step": 1800 534 | } 535 | ], 536 | "thresholds": "", 537 | "title": "Battery Temperature", 538 | "type": "singlestat", 539 | "valueFontSize": "80%", 540 | "valueMaps": [ 541 | { 542 | "op": "=", 543 | "text": "N/A", 544 | "value": "null" 545 | } 546 | ], 547 | "valueName": "current" 548 | }, 549 | { 550 | "aliasColors": {}, 551 | "bars": false, 552 | "dashLength": 10, 553 | "dashes": false, 554 | "decimals": 1, 555 | "fill": 0, 556 | "gridPos": { 557 | "h": 7, 558 | "w": 12, 559 | "x": 0, 560 | "y": 7 561 | }, 562 | "id": 5, 563 | "legend": { 564 | "alignAsTable": false, 565 | "avg": false, 566 | "current": true, 567 | "max": true, 568 | "min": true, 569 | "rightSide": false, 570 | "show": true, 571 | "total": false, 572 | "values": true 573 | }, 574 | "lines": true, 575 | "linewidth": 1, 576 | "links": [], 577 | "nullPointMode": "null", 578 | "options": {}, 579 | "percentage": false, 580 | "pointradius": 5, 581 | "points": false, 582 | "renderer": "flot", 583 | "seriesOverrides": [], 584 | "spaceLength": 10, 585 | "stack": false, 586 | "steppedLine": false, 587 | "targets": [ 588 | { 589 | "expr": "0.1*upsHighPrecInputLineVoltage{instance=\"$instance\"}", 590 | "format": "time_series", 591 | "intervalFactor": 1, 592 | "legendFormat": "Line Input", 593 | "refId": "A", 594 | "step": 60 595 | }, 596 | { 597 | "expr": "0.1*upsHighPrecOutputVoltage{instance=\"$instance\"}", 598 | "format": "time_series", 599 | "intervalFactor": 1, 600 | "legendFormat": "Output", 601 | "refId": "B", 602 | "step": 60 603 | } 604 | ], 605 | "thresholds": [], 606 | "timeFrom": null, 607 | "timeRegions": [], 608 | "timeShift": null, 609 | "title": "Voltage", 610 | "tooltip": { 611 | "shared": true, 612 | "sort": 0, 613 | "value_type": "individual" 614 | }, 615 | "type": "graph", 616 | "xaxis": { 617 | "buckets": null, 618 | "mode": "time", 619 | "name": null, 620 | "show": true, 621 | "values": [] 622 | }, 623 | "yaxes": [ 624 | { 625 | "format": "volt", 626 | "label": null, 627 | "logBase": 1, 628 | "max": null, 629 | "min": null, 630 | "show": true 631 | }, 632 | { 633 | "format": "short", 634 | "label": null, 635 | "logBase": 1, 636 | "max": null, 637 | "min": null, 638 | "show": true 639 | } 640 | ], 641 | "yaxis": { 642 | "align": false, 643 | "alignLevel": null 644 | } 645 | }, 646 | { 647 | "aliasColors": {}, 648 | "bars": false, 649 | "dashLength": 10, 650 | "dashes": false, 651 | "decimals": 1, 652 | "fill": 0, 653 | "gridPos": { 654 | "h": 7, 655 | "w": 12, 656 | "x": 12, 657 | "y": 7 658 | }, 659 | "id": 6, 660 | "legend": { 661 | "alignAsTable": false, 662 | "avg": false, 663 | "current": true, 664 | "max": true, 665 | "min": true, 666 | "show": true, 667 | "total": false, 668 | "values": true 669 | }, 670 | "lines": true, 671 | "linewidth": 1, 672 | "links": [], 673 | "nullPointMode": "null", 674 | "options": {}, 675 | "percentage": false, 676 | "pointradius": 5, 677 | "points": false, 678 | "renderer": "flot", 679 | "seriesOverrides": [], 680 | "spaceLength": 10, 681 | "stack": false, 682 | "steppedLine": false, 683 | "targets": [ 684 | { 685 | "expr": "0.1*upsHighPrecInputFrequency{instance=\"$instance\"}", 686 | "format": "time_series", 687 | "intervalFactor": 1, 688 | "legendFormat": "Input", 689 | "refId": "A", 690 | "step": 60 691 | }, 692 | { 693 | "expr": "0.1*upsHighPrecOutputFrequency{instance=\"$instance\"}", 694 | "format": "time_series", 695 | "intervalFactor": 1, 696 | "legendFormat": "Output", 697 | "refId": "B", 698 | "step": 60 699 | } 700 | ], 701 | "thresholds": [], 702 | "timeFrom": null, 703 | "timeRegions": [], 704 | "timeShift": null, 705 | "title": "Frequency", 706 | "tooltip": { 707 | "shared": true, 708 | "sort": 0, 709 | "value_type": "individual" 710 | }, 711 | "type": "graph", 712 | "xaxis": { 713 | "buckets": null, 714 | "mode": "time", 715 | "name": null, 716 | "show": true, 717 | "values": [] 718 | }, 719 | "yaxes": [ 720 | { 721 | "format": "hertz", 722 | "label": null, 723 | "logBase": 1, 724 | "max": null, 725 | "min": null, 726 | "show": true 727 | }, 728 | { 729 | "format": "short", 730 | "label": null, 731 | "logBase": 1, 732 | "max": null, 733 | "min": null, 734 | "show": true 735 | } 736 | ], 737 | "yaxis": { 738 | "align": false, 739 | "alignLevel": null 740 | } 741 | }, 742 | { 743 | "aliasColors": {}, 744 | "bars": false, 745 | "dashLength": 10, 746 | "dashes": false, 747 | "decimals": 1, 748 | "fill": 1, 749 | "gridPos": { 750 | "h": 7, 751 | "w": 12, 752 | "x": 0, 753 | "y": 14 754 | }, 755 | "id": 7, 756 | "legend": { 757 | "avg": false, 758 | "current": false, 759 | "max": false, 760 | "min": false, 761 | "show": false, 762 | "total": false, 763 | "values": false 764 | }, 765 | "lines": true, 766 | "linewidth": 1, 767 | "links": [], 768 | "nullPointMode": "null", 769 | "options": {}, 770 | "percentage": false, 771 | "pointradius": 5, 772 | "points": false, 773 | "renderer": "flot", 774 | "seriesOverrides": [], 775 | "spaceLength": 10, 776 | "stack": false, 777 | "steppedLine": false, 778 | "targets": [ 779 | { 780 | "expr": "0.1*upsHighPrecOutputCurrent{instance=\"$instance\"}", 781 | "format": "time_series", 782 | "intervalFactor": 1, 783 | "legendFormat": "Current", 784 | "refId": "A", 785 | "step": 60 786 | } 787 | ], 788 | "thresholds": [], 789 | "timeFrom": null, 790 | "timeRegions": [], 791 | "timeShift": null, 792 | "title": "Output Current", 793 | "tooltip": { 794 | "shared": true, 795 | "sort": 0, 796 | "value_type": "individual" 797 | }, 798 | "type": "graph", 799 | "xaxis": { 800 | "buckets": null, 801 | "mode": "time", 802 | "name": null, 803 | "show": true, 804 | "values": [] 805 | }, 806 | "yaxes": [ 807 | { 808 | "format": "amp", 809 | "label": null, 810 | "logBase": 1, 811 | "max": null, 812 | "min": "0", 813 | "show": true 814 | }, 815 | { 816 | "format": "short", 817 | "label": null, 818 | "logBase": 1, 819 | "max": null, 820 | "min": null, 821 | "show": true 822 | } 823 | ], 824 | "yaxis": { 825 | "align": false, 826 | "alignLevel": null 827 | } 828 | }, 829 | { 830 | "aliasColors": {}, 831 | "bars": false, 832 | "dashLength": 10, 833 | "dashes": false, 834 | "decimals": 1, 835 | "fill": 0, 836 | "gridPos": { 837 | "h": 7, 838 | "w": 4, 839 | "x": 12, 840 | "y": 14 841 | }, 842 | "id": 10, 843 | "legend": { 844 | "avg": false, 845 | "current": false, 846 | "max": false, 847 | "min": false, 848 | "show": false, 849 | "total": false, 850 | "values": false 851 | }, 852 | "lines": true, 853 | "linewidth": 1, 854 | "links": [], 855 | "nullPointMode": "null", 856 | "options": {}, 857 | "percentage": false, 858 | "pointradius": 5, 859 | "points": false, 860 | "renderer": "flot", 861 | "seriesOverrides": [], 862 | "spaceLength": 10, 863 | "stack": false, 864 | "steppedLine": false, 865 | "targets": [ 866 | { 867 | "expr": "0.1*upsHighPrecBatteryActualVoltage{instance=\"$instance\"}", 868 | "format": "time_series", 869 | "intervalFactor": 1, 870 | "legendFormat": "Voltage", 871 | "refId": "A", 872 | "step": 300 873 | } 874 | ], 875 | "thresholds": [], 876 | "timeFrom": null, 877 | "timeRegions": [], 878 | "timeShift": null, 879 | "title": "Battery Voltage", 880 | "tooltip": { 881 | "shared": true, 882 | "sort": 0, 883 | "value_type": "individual" 884 | }, 885 | "type": "graph", 886 | "xaxis": { 887 | "buckets": null, 888 | "mode": "time", 889 | "name": null, 890 | "show": true, 891 | "values": [] 892 | }, 893 | "yaxes": [ 894 | { 895 | "format": "volt", 896 | "label": null, 897 | "logBase": 1, 898 | "max": null, 899 | "min": null, 900 | "show": true 901 | }, 902 | { 903 | "format": "short", 904 | "label": null, 905 | "logBase": 1, 906 | "max": null, 907 | "min": null, 908 | "show": true 909 | } 910 | ], 911 | "yaxis": { 912 | "align": false, 913 | "alignLevel": null 914 | } 915 | }, 916 | { 917 | "aliasColors": {}, 918 | "bars": false, 919 | "dashLength": 10, 920 | "dashes": false, 921 | "fill": 1, 922 | "gridPos": { 923 | "h": 7, 924 | "w": 4, 925 | "x": 16, 926 | "y": 14 927 | }, 928 | "id": 8, 929 | "legend": { 930 | "avg": false, 931 | "current": false, 932 | "max": false, 933 | "min": false, 934 | "show": false, 935 | "total": false, 936 | "values": false 937 | }, 938 | "lines": true, 939 | "linewidth": 1, 940 | "links": [], 941 | "nullPointMode": "null", 942 | "options": {}, 943 | "percentage": false, 944 | "pointradius": 5, 945 | "points": false, 946 | "renderer": "flot", 947 | "seriesOverrides": [], 948 | "spaceLength": 10, 949 | "stack": false, 950 | "steppedLine": false, 951 | "targets": [ 952 | { 953 | "expr": "upsAdvBatteryCurrent{instance=\"$instance\"}", 954 | "format": "time_series", 955 | "intervalFactor": 1, 956 | "legendFormat": "Current", 957 | "refId": "A", 958 | "step": 300 959 | } 960 | ], 961 | "thresholds": [], 962 | "timeFrom": null, 963 | "timeRegions": [], 964 | "timeShift": null, 965 | "title": "Battery Current", 966 | "tooltip": { 967 | "shared": true, 968 | "sort": 0, 969 | "value_type": "individual" 970 | }, 971 | "type": "graph", 972 | "xaxis": { 973 | "buckets": null, 974 | "mode": "time", 975 | "name": null, 976 | "show": true, 977 | "values": [] 978 | }, 979 | "yaxes": [ 980 | { 981 | "format": "amp", 982 | "label": null, 983 | "logBase": 1, 984 | "max": null, 985 | "min": "0", 986 | "show": true 987 | }, 988 | { 989 | "format": "short", 990 | "label": null, 991 | "logBase": 1, 992 | "max": null, 993 | "min": null, 994 | "show": true 995 | } 996 | ], 997 | "yaxis": { 998 | "align": false, 999 | "alignLevel": null 1000 | } 1001 | }, 1002 | { 1003 | "aliasColors": {}, 1004 | "bars": false, 1005 | "dashLength": 10, 1006 | "dashes": false, 1007 | "fill": 1, 1008 | "gridPos": { 1009 | "h": 7, 1010 | "w": 4, 1011 | "x": 20, 1012 | "y": 14 1013 | }, 1014 | "id": 9, 1015 | "legend": { 1016 | "avg": false, 1017 | "current": false, 1018 | "max": false, 1019 | "min": false, 1020 | "show": false, 1021 | "total": false, 1022 | "values": false 1023 | }, 1024 | "lines": true, 1025 | "linewidth": 1, 1026 | "links": [], 1027 | "nullPointMode": "null", 1028 | "options": {}, 1029 | "percentage": false, 1030 | "pointradius": 5, 1031 | "points": false, 1032 | "renderer": "flot", 1033 | "seriesOverrides": [], 1034 | "spaceLength": 10, 1035 | "stack": false, 1036 | "steppedLine": false, 1037 | "targets": [ 1038 | { 1039 | "expr": "upsAdvTotalDCCurrent{instance=\"$instance\"}", 1040 | "format": "time_series", 1041 | "intervalFactor": 1, 1042 | "legendFormat": "Current", 1043 | "refId": "A", 1044 | "step": 300 1045 | } 1046 | ], 1047 | "thresholds": [], 1048 | "timeFrom": null, 1049 | "timeRegions": [], 1050 | "timeShift": null, 1051 | "title": "Total DC Current", 1052 | "tooltip": { 1053 | "shared": true, 1054 | "sort": 0, 1055 | "value_type": "individual" 1056 | }, 1057 | "type": "graph", 1058 | "xaxis": { 1059 | "buckets": null, 1060 | "mode": "time", 1061 | "name": null, 1062 | "show": true, 1063 | "values": [] 1064 | }, 1065 | "yaxes": [ 1066 | { 1067 | "format": "amp", 1068 | "label": null, 1069 | "logBase": 1, 1070 | "max": null, 1071 | "min": "0", 1072 | "show": true 1073 | }, 1074 | { 1075 | "format": "short", 1076 | "label": null, 1077 | "logBase": 1, 1078 | "max": null, 1079 | "min": null, 1080 | "show": true 1081 | } 1082 | ], 1083 | "yaxis": { 1084 | "align": false, 1085 | "alignLevel": null 1086 | } 1087 | } 1088 | ], 1089 | "refresh": "30s", 1090 | "schemaVersion": 18, 1091 | "style": "dark", 1092 | "tags": [], 1093 | "templating": { 1094 | "list": [ 1095 | { 1096 | "allValue": null, 1097 | "current": {}, 1098 | "datasource": "${DS_PROMETHEUS}", 1099 | "definition": "label_values(upsCommStatus,instance)", 1100 | "hide": 0, 1101 | "includeAll": false, 1102 | "label": "Device", 1103 | "multi": false, 1104 | "name": "instance", 1105 | "options": [], 1106 | "query": "label_values(upsCommStatus,instance)", 1107 | "refresh": 2, 1108 | "regex": "", 1109 | "skipUrlSync": false, 1110 | "sort": 1, 1111 | "tagValuesQuery": "", 1112 | "tags": [], 1113 | "tagsQuery": "", 1114 | "type": "query", 1115 | "useTags": false 1116 | } 1117 | ] 1118 | }, 1119 | "time": { 1120 | "from": "now-24h", 1121 | "to": "now" 1122 | }, 1123 | "timepicker": { 1124 | "refresh_intervals": [ 1125 | "5s", 1126 | "10s", 1127 | "30s", 1128 | "1m", 1129 | "5m", 1130 | "15m", 1131 | "30m", 1132 | "1h", 1133 | "2h", 1134 | "1d" 1135 | ], 1136 | "time_options": [ 1137 | "5m", 1138 | "15m", 1139 | "1h", 1140 | "6h", 1141 | "12h", 1142 | "24h", 1143 | "2d", 1144 | "7d", 1145 | "30d" 1146 | ] 1147 | }, 1148 | "timezone": "", 1149 | "title": "APC UPS", 1150 | "uid": "000000012", 1151 | "version": 32 1152 | } -------------------------------------------------------------------------------- /SNMP.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__requires": [ 13 | { 14 | "type": "grafana", 15 | "id": "grafana", 16 | "name": "Grafana", 17 | "version": "6.2.0" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "graph", 22 | "name": "Graph", 23 | "version": "" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | }, 31 | { 32 | "type": "panel", 33 | "id": "singlestat", 34 | "name": "Singlestat", 35 | "version": "" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "table", 40 | "name": "Table", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "type": "dashboard" 54 | } 55 | ] 56 | }, 57 | "editable": true, 58 | "gnetId": null, 59 | "graphTooltip": 0, 60 | "id": null, 61 | "iteration": 1558810413899, 62 | "links": [], 63 | "panels": [ 64 | { 65 | "cacheTimeout": null, 66 | "colorBackground": false, 67 | "colorPrefix": false, 68 | "colorValue": true, 69 | "colors": [ 70 | "#d44a3a", 71 | "rgba(237, 129, 40, 0.89)", 72 | "#299c46" 73 | ], 74 | "decimals": null, 75 | "format": "dtdurationms", 76 | "gauge": { 77 | "maxValue": 100, 78 | "minValue": 0, 79 | "show": false, 80 | "thresholdLabels": false, 81 | "thresholdMarkers": true 82 | }, 83 | "gridPos": { 84 | "h": 1, 85 | "w": 7, 86 | "x": 0, 87 | "y": 0 88 | }, 89 | "id": 660, 90 | "interval": null, 91 | "links": [], 92 | "mappingType": 1, 93 | "mappingTypes": [ 94 | { 95 | "name": "value to text", 96 | "value": 1 97 | }, 98 | { 99 | "name": "range to text", 100 | "value": 2 101 | } 102 | ], 103 | "maxDataPoints": 100, 104 | "nullPointMode": "connected", 105 | "nullText": null, 106 | "options": {}, 107 | "postfix": "", 108 | "postfixFontSize": "50%", 109 | "prefix": "Uptime", 110 | "prefixFontSize": "50%", 111 | "rangeMaps": [ 112 | { 113 | "from": "null", 114 | "text": "N/A", 115 | "to": "null" 116 | } 117 | ], 118 | "sparkline": { 119 | "fillColor": "rgba(31, 118, 189, 0.18)", 120 | "full": false, 121 | "lineColor": "rgb(31, 120, 193)", 122 | "show": false 123 | }, 124 | "tableColumn": "__name__", 125 | "targets": [ 126 | { 127 | "expr": "sysUpTime{job=~\"$job\",instance=\"$instance\"}*10", 128 | "format": "time_series", 129 | "instant": true, 130 | "intervalFactor": 1, 131 | "refId": "A" 132 | } 133 | ], 134 | "thresholds": "0,0", 135 | "timeFrom": null, 136 | "timeShift": null, 137 | "title": "", 138 | "transparent": true, 139 | "type": "singlestat", 140 | "valueFontSize": "50%", 141 | "valueMaps": [ 142 | { 143 | "op": "=", 144 | "text": "down", 145 | "value": "null" 146 | } 147 | ], 148 | "valueName": "current" 149 | }, 150 | { 151 | "cacheTimeout": null, 152 | "colorBackground": false, 153 | "colorPrefix": false, 154 | "colorValue": false, 155 | "colors": [ 156 | "#d44a3a", 157 | "rgba(237, 129, 40, 0.89)", 158 | "#299c46" 159 | ], 160 | "format": "dateTimeAsIso", 161 | "gauge": { 162 | "maxValue": 100, 163 | "minValue": 0, 164 | "show": false, 165 | "thresholdLabels": false, 166 | "thresholdMarkers": true 167 | }, 168 | "gridPos": { 169 | "h": 1, 170 | "w": 7, 171 | "x": 7, 172 | "y": 0 173 | }, 174 | "id": 694, 175 | "interval": null, 176 | "links": [], 177 | "mappingType": 1, 178 | "mappingTypes": [ 179 | { 180 | "name": "value to text", 181 | "value": 1 182 | }, 183 | { 184 | "name": "range to text", 185 | "value": 2 186 | } 187 | ], 188 | "maxDataPoints": 100, 189 | "nullPointMode": "connected", 190 | "nullText": null, 191 | "options": {}, 192 | "postfix": "", 193 | "postfixFontSize": "50%", 194 | "prefix": "Boot Time", 195 | "prefixFontSize": "50%", 196 | "rangeMaps": [ 197 | { 198 | "from": "null", 199 | "text": "N/A", 200 | "to": "null" 201 | } 202 | ], 203 | "sparkline": { 204 | "fillColor": "rgba(31, 118, 189, 0.18)", 205 | "full": false, 206 | "lineColor": "rgb(31, 120, 193)", 207 | "show": false 208 | }, 209 | "tableColumn": "__name__", 210 | "targets": [ 211 | { 212 | "expr": "time()*1000 - sysUpTime{job=~\"$job\",instance=\"$instance\"}*10", 213 | "format": "time_series", 214 | "instant": true, 215 | "intervalFactor": 1, 216 | "refId": "A" 217 | } 218 | ], 219 | "thresholds": "0,0", 220 | "timeFrom": null, 221 | "timeShift": null, 222 | "title": "", 223 | "transparent": true, 224 | "type": "singlestat", 225 | "valueFontSize": "50%", 226 | "valueMaps": [ 227 | { 228 | "op": "=", 229 | "text": "down", 230 | "value": "null" 231 | } 232 | ], 233 | "valueName": "current" 234 | }, 235 | { 236 | "cacheTimeout": null, 237 | "colorBackground": false, 238 | "colorValue": false, 239 | "colors": [ 240 | "#299c46", 241 | "rgba(237, 129, 40, 0.89)", 242 | "#d44a3a" 243 | ], 244 | "decimals": 3, 245 | "format": "s", 246 | "gauge": { 247 | "maxValue": 100, 248 | "minValue": 0, 249 | "show": false, 250 | "thresholdLabels": false, 251 | "thresholdMarkers": true 252 | }, 253 | "gridPos": { 254 | "h": 1, 255 | "w": 5, 256 | "x": 14, 257 | "y": 0 258 | }, 259 | "id": 662, 260 | "interval": null, 261 | "links": [], 262 | "mappingType": 1, 263 | "mappingTypes": [ 264 | { 265 | "name": "value to text", 266 | "value": 1 267 | }, 268 | { 269 | "name": "range to text", 270 | "value": 2 271 | } 272 | ], 273 | "maxDataPoints": 100, 274 | "nullPointMode": "connected", 275 | "nullText": null, 276 | "options": {}, 277 | "postfix": "", 278 | "postfixFontSize": "50%", 279 | "prefix": "Walk Duration", 280 | "prefixFontSize": "50%", 281 | "rangeMaps": [ 282 | { 283 | "from": "null", 284 | "text": "N/A", 285 | "to": "null" 286 | } 287 | ], 288 | "sparkline": { 289 | "fillColor": "rgba(31, 118, 189, 0.18)", 290 | "full": false, 291 | "lineColor": "rgb(31, 120, 193)", 292 | "show": true 293 | }, 294 | "tableColumn": "", 295 | "targets": [ 296 | { 297 | "expr": "snmp_scrape_walk_duration_seconds{job=~\"$job\",instance=\"$instance\"}", 298 | "format": "time_series", 299 | "intervalFactor": 1, 300 | "refId": "A" 301 | } 302 | ], 303 | "thresholds": "", 304 | "timeFrom": null, 305 | "timeShift": null, 306 | "title": "", 307 | "transparent": true, 308 | "type": "singlestat", 309 | "valueFontSize": "50%", 310 | "valueMaps": [ 311 | { 312 | "op": "=", 313 | "text": "N/A", 314 | "value": "null" 315 | } 316 | ], 317 | "valueName": "current" 318 | }, 319 | { 320 | "cacheTimeout": null, 321 | "colorBackground": false, 322 | "colorValue": false, 323 | "colors": [ 324 | "#299c46", 325 | "rgba(237, 129, 40, 0.89)", 326 | "#d44a3a" 327 | ], 328 | "decimals": null, 329 | "format": "none", 330 | "gauge": { 331 | "maxValue": 100, 332 | "minValue": 0, 333 | "show": false, 334 | "thresholdLabels": false, 335 | "thresholdMarkers": true 336 | }, 337 | "gridPos": { 338 | "h": 1, 339 | "w": 5, 340 | "x": 19, 341 | "y": 0 342 | }, 343 | "id": 663, 344 | "interval": null, 345 | "links": [], 346 | "mappingType": 1, 347 | "mappingTypes": [ 348 | { 349 | "name": "value to text", 350 | "value": 1 351 | }, 352 | { 353 | "name": "range to text", 354 | "value": 2 355 | } 356 | ], 357 | "maxDataPoints": 100, 358 | "nullPointMode": "connected", 359 | "nullText": null, 360 | "options": {}, 361 | "postfix": " PDUs", 362 | "postfixFontSize": "50%", 363 | "prefix": "", 364 | "prefixFontSize": "50%", 365 | "rangeMaps": [ 366 | { 367 | "from": "null", 368 | "text": "N/A", 369 | "to": "null" 370 | } 371 | ], 372 | "sparkline": { 373 | "fillColor": "rgba(31, 118, 189, 0.18)", 374 | "full": false, 375 | "lineColor": "rgb(31, 120, 193)", 376 | "show": true 377 | }, 378 | "tableColumn": "", 379 | "targets": [ 380 | { 381 | "expr": "snmp_scrape_pdus_returned{job=~\"$job\",instance=\"$instance\"}", 382 | "format": "time_series", 383 | "instant": false, 384 | "intervalFactor": 1, 385 | "refId": "A" 386 | } 387 | ], 388 | "thresholds": "", 389 | "timeFrom": null, 390 | "timeShift": null, 391 | "title": "", 392 | "transparent": true, 393 | "type": "singlestat", 394 | "valueFontSize": "50%", 395 | "valueMaps": [ 396 | { 397 | "op": "=", 398 | "text": "N/A", 399 | "value": "null" 400 | } 401 | ], 402 | "valueName": "current" 403 | }, 404 | { 405 | "columns": [], 406 | "fontSize": "100%", 407 | "gridPos": { 408 | "h": 8, 409 | "w": 24, 410 | "x": 0, 411 | "y": 1 412 | }, 413 | "id": 656, 414 | "links": [], 415 | "options": {}, 416 | "pageSize": null, 417 | "scroll": true, 418 | "showHeader": true, 419 | "sort": { 420 | "col": 1, 421 | "desc": false 422 | }, 423 | "styles": [ 424 | { 425 | "alias": "", 426 | "colorMode": null, 427 | "colors": [ 428 | "rgba(245, 54, 54, 0.9)", 429 | "rgba(237, 129, 40, 0.89)", 430 | "rgba(50, 172, 45, 0.97)" 431 | ], 432 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 433 | "decimals": 2, 434 | "mappingType": 1, 435 | "pattern": "Time", 436 | "thresholds": [], 437 | "type": "hidden", 438 | "unit": "short" 439 | }, 440 | { 441 | "alias": "Last Status Change", 442 | "colorMode": null, 443 | "colors": [ 444 | "rgba(245, 54, 54, 0.9)", 445 | "rgba(237, 129, 40, 0.89)", 446 | "rgba(50, 172, 45, 0.97)" 447 | ], 448 | "dateFormat": "MMMM D, YYYY LT", 449 | "decimals": 2, 450 | "mappingType": 1, 451 | "pattern": "Value #A", 452 | "thresholds": [], 453 | "type": "date", 454 | "unit": "short" 455 | }, 456 | { 457 | "alias": "Admin Status", 458 | "colorMode": "value", 459 | "colors": [ 460 | "rgba(50, 172, 45, 0.97)", 461 | "rgba(237, 129, 40, 0.89)", 462 | "rgba(245, 54, 54, 0.9)" 463 | ], 464 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 465 | "decimals": 0, 466 | "mappingType": 1, 467 | "pattern": "Value #B", 468 | "thresholds": [ 469 | "2", 470 | "2" 471 | ], 472 | "type": "string", 473 | "unit": "none", 474 | "valueMaps": [ 475 | { 476 | "text": "enabled", 477 | "value": "1" 478 | }, 479 | { 480 | "text": "disabled", 481 | "value": "2" 482 | } 483 | ] 484 | }, 485 | { 486 | "alias": "Operational State", 487 | "colorMode": "value", 488 | "colors": [ 489 | "rgba(50, 172, 45, 0.97)", 490 | "rgba(237, 129, 40, 0.89)", 491 | "rgba(245, 54, 54, 0.9)" 492 | ], 493 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 494 | "decimals": 0, 495 | "mappingType": 1, 496 | "pattern": "Value #D", 497 | "thresholds": [ 498 | "2", 499 | "2" 500 | ], 501 | "type": "string", 502 | "unit": "none", 503 | "valueMaps": [ 504 | { 505 | "text": "up", 506 | "value": "1" 507 | }, 508 | { 509 | "text": "down", 510 | "value": "2" 511 | } 512 | ] 513 | }, 514 | { 515 | "alias": "Interface", 516 | "colorMode": null, 517 | "colors": [ 518 | "rgba(245, 54, 54, 0.9)", 519 | "rgba(237, 129, 40, 0.89)", 520 | "rgba(50, 172, 45, 0.97)" 521 | ], 522 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 523 | "decimals": 0, 524 | "mappingType": 1, 525 | "pattern": "ifIndex", 526 | "thresholds": [], 527 | "type": "number", 528 | "unit": "none" 529 | }, 530 | { 531 | "alias": "", 532 | "colorMode": null, 533 | "colors": [ 534 | "rgba(245, 54, 54, 0.9)", 535 | "rgba(237, 129, 40, 0.89)", 536 | "rgba(50, 172, 45, 0.97)" 537 | ], 538 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 539 | "decimals": 2, 540 | "mappingType": 1, 541 | "pattern": "Value #C", 542 | "thresholds": [], 543 | "type": "hidden", 544 | "unit": "short" 545 | }, 546 | { 547 | "alias": "MTU", 548 | "colorMode": null, 549 | "colors": [ 550 | "rgba(245, 54, 54, 0.9)", 551 | "rgba(237, 129, 40, 0.89)", 552 | "rgba(50, 172, 45, 0.97)" 553 | ], 554 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 555 | "decimals": 0, 556 | "mappingType": 1, 557 | "pattern": "Value #E", 558 | "thresholds": [], 559 | "type": "number", 560 | "unit": "none" 561 | }, 562 | { 563 | "alias": "Speed", 564 | "colorMode": null, 565 | "colors": [ 566 | "rgba(245, 54, 54, 0.9)", 567 | "rgba(237, 129, 40, 0.89)", 568 | "rgba(50, 172, 45, 0.97)" 569 | ], 570 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 571 | "decimals": 2, 572 | "mappingType": 1, 573 | "pattern": "Value #F", 574 | "thresholds": [], 575 | "type": "number", 576 | "unit": "bps" 577 | }, 578 | { 579 | "alias": "", 580 | "colorMode": null, 581 | "colors": [ 582 | "rgba(245, 54, 54, 0.9)", 583 | "rgba(237, 129, 40, 0.89)", 584 | "rgba(50, 172, 45, 0.97)" 585 | ], 586 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 587 | "decimals": 2, 588 | "mappingType": 1, 589 | "pattern": "Value #G", 590 | "thresholds": [], 591 | "type": "hidden", 592 | "unit": "short" 593 | }, 594 | { 595 | "alias": "Physical Address", 596 | "colorMode": null, 597 | "colors": [ 598 | "rgba(245, 54, 54, 0.9)", 599 | "rgba(237, 129, 40, 0.89)", 600 | "rgba(50, 172, 45, 0.97)" 601 | ], 602 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 603 | "decimals": 2, 604 | "mappingType": 1, 605 | "pattern": "ifPhysAddress", 606 | "thresholds": [], 607 | "type": "string", 608 | "unit": "short" 609 | }, 610 | { 611 | "alias": "Type", 612 | "colorMode": null, 613 | "colors": [ 614 | "rgba(245, 54, 54, 0.9)", 615 | "rgba(237, 129, 40, 0.89)", 616 | "rgba(50, 172, 45, 0.97)" 617 | ], 618 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 619 | "decimals": 2, 620 | "mappingType": 1, 621 | "pattern": "ifType", 622 | "thresholds": [], 623 | "type": "string", 624 | "unit": "short" 625 | }, 626 | { 627 | "alias": "", 628 | "colorMode": null, 629 | "colors": [ 630 | "rgba(245, 54, 54, 0.9)", 631 | "rgba(237, 129, 40, 0.89)", 632 | "rgba(50, 172, 45, 0.97)" 633 | ], 634 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 635 | "decimals": 2, 636 | "mappingType": 1, 637 | "pattern": "Value #H", 638 | "thresholds": [], 639 | "type": "hidden", 640 | "unit": "short" 641 | }, 642 | { 643 | "alias": "", 644 | "colorMode": null, 645 | "colors": [ 646 | "rgba(245, 54, 54, 0.9)", 647 | "rgba(237, 129, 40, 0.89)", 648 | "rgba(50, 172, 45, 0.97)" 649 | ], 650 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 651 | "decimals": 2, 652 | "mappingType": 1, 653 | "pattern": "Value #I", 654 | "thresholds": [], 655 | "type": "hidden", 656 | "unit": "short" 657 | }, 658 | { 659 | "alias": "Name", 660 | "colorMode": null, 661 | "colors": [ 662 | "rgba(245, 54, 54, 0.9)", 663 | "rgba(237, 129, 40, 0.89)", 664 | "rgba(50, 172, 45, 0.97)" 665 | ], 666 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 667 | "decimals": 2, 668 | "mappingType": 1, 669 | "pattern": "ifName", 670 | "thresholds": [], 671 | "type": "string", 672 | "unit": "short" 673 | }, 674 | { 675 | "alias": "Alias", 676 | "colorMode": null, 677 | "colors": [ 678 | "rgba(245, 54, 54, 0.9)", 679 | "rgba(237, 129, 40, 0.89)", 680 | "rgba(50, 172, 45, 0.97)" 681 | ], 682 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 683 | "decimals": 2, 684 | "mappingType": 1, 685 | "pattern": "ifAlias", 686 | "thresholds": [], 687 | "type": "string", 688 | "unit": "short" 689 | }, 690 | { 691 | "alias": "Description", 692 | "colorMode": null, 693 | "colors": [ 694 | "rgba(245, 54, 54, 0.9)", 695 | "rgba(237, 129, 40, 0.89)", 696 | "rgba(50, 172, 45, 0.97)" 697 | ], 698 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 699 | "decimals": 2, 700 | "mappingType": 1, 701 | "pattern": "ifDescr", 702 | "thresholds": [], 703 | "type": "string", 704 | "unit": "short" 705 | }, 706 | { 707 | "alias": "Sent", 708 | "colorMode": null, 709 | "colors": [ 710 | "rgba(245, 54, 54, 0.9)", 711 | "rgba(237, 129, 40, 0.89)", 712 | "rgba(50, 172, 45, 0.97)" 713 | ], 714 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 715 | "decimals": 2, 716 | "mappingType": 1, 717 | "pattern": "Value #J", 718 | "thresholds": [], 719 | "type": "number", 720 | "unit": "bytes" 721 | }, 722 | { 723 | "alias": "Received", 724 | "colorMode": null, 725 | "colors": [ 726 | "rgba(245, 54, 54, 0.9)", 727 | "rgba(237, 129, 40, 0.89)", 728 | "rgba(50, 172, 45, 0.97)" 729 | ], 730 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 731 | "decimals": 2, 732 | "mappingType": 1, 733 | "pattern": "Value #K", 734 | "thresholds": [], 735 | "type": "number", 736 | "unit": "bytes" 737 | }, 738 | { 739 | "alias": "", 740 | "colorMode": null, 741 | "colors": [ 742 | "rgba(245, 54, 54, 0.9)", 743 | "rgba(237, 129, 40, 0.89)", 744 | "rgba(50, 172, 45, 0.97)" 745 | ], 746 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 747 | "decimals": 2, 748 | "mappingType": 1, 749 | "pattern": "Value #L", 750 | "thresholds": [], 751 | "type": "hidden", 752 | "unit": "short" 753 | }, 754 | { 755 | "alias": "", 756 | "colorMode": null, 757 | "colors": [ 758 | "rgba(245, 54, 54, 0.9)", 759 | "rgba(237, 129, 40, 0.89)", 760 | "rgba(50, 172, 45, 0.97)" 761 | ], 762 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 763 | "decimals": 2, 764 | "mappingType": 1, 765 | "pattern": "Value #M", 766 | "thresholds": [], 767 | "type": "hidden", 768 | "unit": "short" 769 | } 770 | ], 771 | "targets": [ 772 | { 773 | "expr": "sum(ifIndex{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex)", 774 | "format": "table", 775 | "hide": false, 776 | "instant": true, 777 | "intervalFactor": 1, 778 | "refId": "M" 779 | }, 780 | { 781 | "expr": "sum(ifName{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex,ifName)", 782 | "format": "table", 783 | "hide": false, 784 | "instant": true, 785 | "intervalFactor": 1, 786 | "refId": "I" 787 | }, 788 | { 789 | "expr": "sum(ifDescr{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex,ifDescr)", 790 | "format": "table", 791 | "hide": false, 792 | "instant": true, 793 | "intervalFactor": 1, 794 | "refId": "H" 795 | }, 796 | { 797 | "expr": "sum(ifAlias{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex,ifAlias)", 798 | "format": "table", 799 | "hide": false, 800 | "instant": true, 801 | "intervalFactor": 1, 802 | "refId": "L" 803 | }, 804 | { 805 | "expr": "sum(ifType_info{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex,ifType)", 806 | "format": "table", 807 | "hide": false, 808 | "instant": true, 809 | "intervalFactor": 1, 810 | "refId": "G" 811 | }, 812 | { 813 | "expr": "sum(ifPhysAddress{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex,ifPhysAddress)", 814 | "format": "table", 815 | "hide": false, 816 | "instant": true, 817 | "intervalFactor": 1, 818 | "refId": "C" 819 | }, 820 | { 821 | "expr": "sum(ifMtu{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex)", 822 | "format": "table", 823 | "hide": false, 824 | "instant": true, 825 | "intervalFactor": 1, 826 | "refId": "E" 827 | }, 828 | { 829 | "expr": "sum(ifAdminStatus{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex)", 830 | "format": "table", 831 | "hide": false, 832 | "instant": true, 833 | "intervalFactor": 1, 834 | "refId": "B" 835 | }, 836 | { 837 | "expr": "sum(ifOperStatus{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex)", 838 | "format": "table", 839 | "hide": false, 840 | "instant": true, 841 | "intervalFactor": 1, 842 | "refId": "D" 843 | }, 844 | { 845 | "expr": "sum(ifSpeed{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}) by (ifIndex)", 846 | "format": "table", 847 | "hide": false, 848 | "instant": true, 849 | "intervalFactor": 1, 850 | "refId": "F" 851 | }, 852 | { 853 | "expr": "sum(time()*1000 + ifLastChange{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}*10 - on(job,instance) group_left sysUpTime{job=~\"$job\",instance=\"$instance\"}*10) by (ifIndex)", 854 | "format": "table", 855 | "hide": false, 856 | "instant": true, 857 | "intervalFactor": 1, 858 | "legendFormat": "", 859 | "refId": "A" 860 | }, 861 | { 862 | "expr": "sum(increase(ifInOctets{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[$__range])) by (ifIndex)", 863 | "format": "table", 864 | "hide": false, 865 | "instant": true, 866 | "intervalFactor": 1, 867 | "legendFormat": "", 868 | "refId": "K" 869 | }, 870 | { 871 | "expr": "sum(increase(ifOutOctets{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[$__range])) by (ifIndex)", 872 | "format": "table", 873 | "hide": false, 874 | "instant": true, 875 | "intervalFactor": 1, 876 | "legendFormat": "", 877 | "refId": "J" 878 | } 879 | ], 880 | "timeFrom": null, 881 | "timeShift": null, 882 | "title": "", 883 | "transform": "table", 884 | "transparent": true, 885 | "type": "table" 886 | }, 887 | { 888 | "collapsed": false, 889 | "gridPos": { 890 | "h": 1, 891 | "w": 24, 892 | "x": 0, 893 | "y": 9 894 | }, 895 | "id": 460, 896 | "panels": [], 897 | "repeat": "index", 898 | "title": "Interface $index", 899 | "type": "row" 900 | }, 901 | { 902 | "aliasColors": { 903 | "in": "blue" 904 | }, 905 | "bars": false, 906 | "dashLength": 10, 907 | "dashes": false, 908 | "datasource": "${DS_PROMETHEUS}", 909 | "fill": 1, 910 | "gridPos": { 911 | "h": 7, 912 | "w": 12, 913 | "x": 0, 914 | "y": 10 915 | }, 916 | "id": 533, 917 | "legend": { 918 | "alignAsTable": true, 919 | "avg": false, 920 | "current": true, 921 | "max": false, 922 | "min": false, 923 | "rightSide": true, 924 | "show": false, 925 | "total": false, 926 | "values": true 927 | }, 928 | "lines": true, 929 | "linewidth": 1, 930 | "links": [], 931 | "nullPointMode": "null", 932 | "options": {}, 933 | "percentage": false, 934 | "pointradius": 5, 935 | "points": false, 936 | "renderer": "flot", 937 | "seriesOverrides": [ 938 | { 939 | "alias": "in", 940 | "transform": "negative-Y" 941 | } 942 | ], 943 | "spaceLength": 10, 944 | "stack": false, 945 | "steppedLine": false, 946 | "targets": [ 947 | { 948 | "expr": "8*irate(ifOutOctets{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 949 | "format": "time_series", 950 | "interval": "", 951 | "intervalFactor": 1, 952 | "legendFormat": "out", 953 | "refId": "A", 954 | "step": 60 955 | }, 956 | { 957 | "expr": "8*irate(ifInOctets{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 958 | "format": "time_series", 959 | "hide": false, 960 | "interval": "", 961 | "intervalFactor": 1, 962 | "legendFormat": "in", 963 | "refId": "B", 964 | "step": 60 965 | } 966 | ], 967 | "thresholds": [], 968 | "timeFrom": null, 969 | "timeRegions": [], 970 | "timeShift": null, 971 | "title": "Traffic", 972 | "tooltip": { 973 | "shared": true, 974 | "sort": 0, 975 | "value_type": "individual" 976 | }, 977 | "type": "graph", 978 | "xaxis": { 979 | "buckets": null, 980 | "mode": "time", 981 | "name": null, 982 | "show": true, 983 | "values": [] 984 | }, 985 | "yaxes": [ 986 | { 987 | "format": "bps", 988 | "label": "in (-) / out (+)", 989 | "logBase": 1, 990 | "max": null, 991 | "min": null, 992 | "show": true 993 | }, 994 | { 995 | "format": "short", 996 | "label": null, 997 | "logBase": 1, 998 | "max": null, 999 | "min": null, 1000 | "show": true 1001 | } 1002 | ], 1003 | "yaxis": { 1004 | "align": false, 1005 | "alignLevel": null 1006 | } 1007 | }, 1008 | { 1009 | "aliasColors": { 1010 | "Broadcast in": "blue", 1011 | "Broadcast out": "blue", 1012 | "Discards in": "orange", 1013 | "Discards out": "orange", 1014 | "Errors in": "red", 1015 | "Errors out": "red", 1016 | "Multicast in": "purple", 1017 | "Multicast out": "purple", 1018 | "Unicast in": "green" 1019 | }, 1020 | "bars": false, 1021 | "dashLength": 10, 1022 | "dashes": false, 1023 | "datasource": "${DS_PROMETHEUS}", 1024 | "fill": 1, 1025 | "gridPos": { 1026 | "h": 7, 1027 | "w": 12, 1028 | "x": 12, 1029 | "y": 10 1030 | }, 1031 | "id": 249, 1032 | "legend": { 1033 | "alignAsTable": false, 1034 | "avg": false, 1035 | "current": false, 1036 | "max": false, 1037 | "min": false, 1038 | "rightSide": false, 1039 | "show": false, 1040 | "total": false, 1041 | "values": false 1042 | }, 1043 | "lines": true, 1044 | "linewidth": 1, 1045 | "links": [], 1046 | "nullPointMode": "null", 1047 | "options": {}, 1048 | "percentage": false, 1049 | "pointradius": 5, 1050 | "points": false, 1051 | "renderer": "flot", 1052 | "seriesOverrides": [ 1053 | { 1054 | "alias": "/.* in/", 1055 | "transform": "negative-Y" 1056 | } 1057 | ], 1058 | "spaceLength": 10, 1059 | "stack": false, 1060 | "steppedLine": false, 1061 | "targets": [ 1062 | { 1063 | "expr": "irate(ifOutUcastPkts{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1064 | "format": "time_series", 1065 | "intervalFactor": 1, 1066 | "legendFormat": "Unicast out", 1067 | "refId": "A", 1068 | "step": 60 1069 | }, 1070 | { 1071 | "expr": "irate(ifInUcastPkts{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1072 | "format": "time_series", 1073 | "intervalFactor": 1, 1074 | "legendFormat": "Unicast in", 1075 | "refId": "B", 1076 | "step": 60 1077 | }, 1078 | { 1079 | "expr": "irate(ifOutBroadcastPkts{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1080 | "format": "time_series", 1081 | "intervalFactor": 1, 1082 | "legendFormat": "Broadcast out", 1083 | "refId": "C", 1084 | "step": 120 1085 | }, 1086 | { 1087 | "expr": "irate(ifInBroadcastPkts{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1088 | "format": "time_series", 1089 | "intervalFactor": 1, 1090 | "legendFormat": "Broadcast in", 1091 | "refId": "D", 1092 | "step": 120 1093 | }, 1094 | { 1095 | "expr": "irate(ifOutMulticastPkts{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1096 | "format": "time_series", 1097 | "intervalFactor": 1, 1098 | "legendFormat": "Multicast out", 1099 | "refId": "E", 1100 | "step": 120 1101 | }, 1102 | { 1103 | "expr": "irate(ifInMulticastPkts{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1104 | "format": "time_series", 1105 | "intervalFactor": 1, 1106 | "legendFormat": "Multicast in", 1107 | "refId": "F", 1108 | "step": 120 1109 | }, 1110 | { 1111 | "expr": "irate(ifOutDiscards{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1112 | "format": "time_series", 1113 | "intervalFactor": 1, 1114 | "legendFormat": "Discards out", 1115 | "refId": "G", 1116 | "step": 120 1117 | }, 1118 | { 1119 | "expr": "irate(ifInDiscards{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1120 | "format": "time_series", 1121 | "intervalFactor": 1, 1122 | "legendFormat": "Discards in", 1123 | "refId": "H", 1124 | "step": 120 1125 | }, 1126 | { 1127 | "expr": "irate(ifOutErrors{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1128 | "format": "time_series", 1129 | "intervalFactor": 1, 1130 | "legendFormat": "Errors out", 1131 | "refId": "I", 1132 | "step": 120 1133 | }, 1134 | { 1135 | "expr": "irate(ifInErrors{job=~\"$job\",instance=\"$instance\",ifIndex=~\"$index\"}[5m])", 1136 | "format": "time_series", 1137 | "intervalFactor": 1, 1138 | "legendFormat": "Errors in", 1139 | "refId": "J", 1140 | "step": 120 1141 | } 1142 | ], 1143 | "thresholds": [ 1144 | { 1145 | "colorMode": "critical", 1146 | "fill": false, 1147 | "line": true, 1148 | "op": "gt", 1149 | "value": 0, 1150 | "yaxis": "left" 1151 | } 1152 | ], 1153 | "timeFrom": null, 1154 | "timeRegions": [], 1155 | "timeShift": null, 1156 | "title": "Packets", 1157 | "tooltip": { 1158 | "shared": true, 1159 | "sort": 0, 1160 | "value_type": "individual" 1161 | }, 1162 | "type": "graph", 1163 | "xaxis": { 1164 | "buckets": null, 1165 | "mode": "time", 1166 | "name": null, 1167 | "show": true, 1168 | "values": [] 1169 | }, 1170 | "yaxes": [ 1171 | { 1172 | "format": "pps", 1173 | "label": "in (-) / out (+)", 1174 | "logBase": 1, 1175 | "max": null, 1176 | "min": null, 1177 | "show": true 1178 | }, 1179 | { 1180 | "format": "short", 1181 | "label": null, 1182 | "logBase": 1, 1183 | "max": null, 1184 | "min": null, 1185 | "show": true 1186 | } 1187 | ], 1188 | "yaxis": { 1189 | "align": false, 1190 | "alignLevel": null 1191 | } 1192 | } 1193 | ], 1194 | "refresh": "30s", 1195 | "schemaVersion": 18, 1196 | "style": "dark", 1197 | "tags": [], 1198 | "templating": { 1199 | "list": [ 1200 | { 1201 | "allValue": null, 1202 | "current": {}, 1203 | "datasource": "${DS_PROMETHEUS}", 1204 | "definition": "label_values(sysUpTime, job)", 1205 | "hide": 0, 1206 | "includeAll": true, 1207 | "label": "Job", 1208 | "multi": true, 1209 | "name": "job", 1210 | "options": [], 1211 | "query": "label_values(sysUpTime, job)", 1212 | "refresh": 2, 1213 | "regex": "", 1214 | "skipUrlSync": false, 1215 | "sort": 1, 1216 | "tagValuesQuery": "", 1217 | "tags": [], 1218 | "tagsQuery": "", 1219 | "type": "query", 1220 | "useTags": false 1221 | }, 1222 | { 1223 | "allValue": null, 1224 | "current": {}, 1225 | "datasource": "${DS_PROMETHEUS}", 1226 | "definition": "label_values(sysUpTime{job=~\"$job\"}, instance)", 1227 | "hide": 0, 1228 | "includeAll": false, 1229 | "label": "Device", 1230 | "multi": false, 1231 | "name": "instance", 1232 | "options": [], 1233 | "query": "label_values(sysUpTime{job=~\"$job\"}, instance)", 1234 | "refresh": 2, 1235 | "regex": "", 1236 | "skipUrlSync": false, 1237 | "sort": 1, 1238 | "tagValuesQuery": "", 1239 | "tags": [], 1240 | "tagsQuery": "", 1241 | "type": "query", 1242 | "useTags": false 1243 | }, 1244 | { 1245 | "allValue": null, 1246 | "current": {}, 1247 | "datasource": "${DS_PROMETHEUS}", 1248 | "definition": "query_result(ifIndex{job=~\"$job\",instance=\"$instance\"})", 1249 | "hide": 0, 1250 | "includeAll": true, 1251 | "label": "Interface", 1252 | "multi": true, 1253 | "name": "index", 1254 | "options": [], 1255 | "query": "query_result(ifIndex{job=~\"$job\",instance=\"$instance\"})", 1256 | "refresh": 2, 1257 | "regex": "/.*} ([0-9]+) [0-9]+/", 1258 | "skipUrlSync": false, 1259 | "sort": 3, 1260 | "tagValuesQuery": "", 1261 | "tags": [], 1262 | "tagsQuery": "", 1263 | "type": "query", 1264 | "useTags": false 1265 | } 1266 | ] 1267 | }, 1268 | "time": { 1269 | "from": "now-24h", 1270 | "to": "now" 1271 | }, 1272 | "timepicker": { 1273 | "refresh_intervals": [ 1274 | "5s", 1275 | "10s", 1276 | "30s", 1277 | "1m", 1278 | "5m", 1279 | "15m", 1280 | "30m", 1281 | "1h", 1282 | "2h", 1283 | "1d" 1284 | ], 1285 | "time_options": [ 1286 | "5m", 1287 | "15m", 1288 | "1h", 1289 | "6h", 1290 | "12h", 1291 | "24h", 1292 | "2d", 1293 | "7d", 1294 | "30d" 1295 | ] 1296 | }, 1297 | "timezone": "", 1298 | "title": "SNMP", 1299 | "uid": "000000011", 1300 | "version": 11 1301 | } --------------------------------------------------------------------------------