draupnir4all_status.json (12754B)
1 { 2 "__inputs": [ 3 { 4 "name": "DS_LOKI", 5 "label": "Loki", 6 "description": "", 7 "type": "datasource", 8 "pluginId": "loki", 9 "pluginName": "Loki" 10 } 11 ], 12 "__elements": {}, 13 "__requires": [ 14 { 15 "type": "grafana", 16 "id": "grafana", 17 "name": "Grafana", 18 "version": "10.4.0" 19 }, 20 { 21 "type": "panel", 22 "id": "logs", 23 "name": "Logs", 24 "version": "" 25 }, 26 { 27 "type": "datasource", 28 "id": "loki", 29 "name": "Loki", 30 "version": "1.0.0" 31 }, 32 { 33 "type": "panel", 34 "id": "stat", 35 "name": "Stat", 36 "version": "" 37 } 38 ], 39 "annotations": { 40 "list": [ 41 { 42 "builtIn": 1, 43 "datasource": { 44 "type": "grafana", 45 "uid": "-- Grafana --" 46 }, 47 "enable": true, 48 "hide": true, 49 "iconColor": "rgba(0, 211, 255, 1)", 50 "name": "Annotations & Alerts", 51 "type": "dashboard" 52 } 53 ] 54 }, 55 "editable": true, 56 "fiscalYearStartMonth": 0, 57 "graphTooltip": 0, 58 "id": null, 59 "links": [], 60 "panels": [ 61 { 62 "collapsed": false, 63 "gridPos": { 64 "h": 1, 65 "w": 24, 66 "x": 0, 67 "y": 0 68 }, 69 "id": 3, 70 "panels": [], 71 "title": "Status Overview", 72 "type": "row" 73 }, 74 { 75 "datasource": { 76 "type": "loki", 77 "uid": "${DS_LOKI}" 78 }, 79 "description": "Green means everything is as expected", 80 "fieldConfig": { 81 "defaults": { 82 "color": { 83 "mode": "thresholds" 84 }, 85 "mappings": [], 86 "thresholds": { 87 "mode": "absolute", 88 "steps": [ 89 { 90 "color": "green", 91 "value": null 92 }, 93 { 94 "color": "red", 95 "value": 1 96 } 97 ] 98 } 99 }, 100 "overrides": [ 101 { 102 "matcher": { 103 "id": "byName", 104 "options": "Value #Failed" 105 }, 106 "properties": [ 107 { 108 "id": "displayName", 109 "value": "Failed" 110 } 111 ] 112 }, 113 { 114 "matcher": { 115 "id": "byName", 116 "options": "Value #BackOff" 117 }, 118 "properties": [ 119 { 120 "id": "displayName", 121 "value": "BackOff" 122 } 123 ] 124 } 125 ] 126 }, 127 "gridPos": { 128 "h": 7, 129 "w": 12, 130 "x": 0, 131 "y": 1 132 }, 133 "id": 1, 134 "options": { 135 "colorMode": "background_solid", 136 "graphMode": "none", 137 "justifyMode": "auto", 138 "orientation": "auto", 139 "reduceOptions": { 140 "calcs": [ 141 "max" 142 ], 143 "fields": "", 144 "values": false 145 }, 146 "showPercentChange": false, 147 "textMode": "name", 148 "wideLayout": true 149 }, 150 "pluginVersion": "10.4.0", 151 "targets": [ 152 { 153 "datasource": { 154 "type": "loki", 155 "uid": "${DS_LOKI}" 156 }, 157 "editorMode": "builder", 158 "expr": "max(count_over_time({app=\"kube-event-exporter\"} | json | namespace = `matrix` | reason = `Failed` | name =~ `.*draupnir-synapse.*` [5m]))", 159 "intervalMs": 1000, 160 "legendFormat": "Failed", 161 "maxDataPoints": 43200, 162 "queryType": "instant", 163 "refId": "Failed" 164 }, 165 { 166 "datasource": { 167 "type": "loki", 168 "uid": "${DS_LOKI}" 169 }, 170 "editorMode": "builder", 171 "expr": "count_over_time({app=\"kube-event-exporter\"} | json | namespace = `matrix` | reason = `BackOff` | name =~ `.*draupnir-synapse.*` [5m])", 172 "hide": false, 173 "intervalMs": 1000, 174 "legendFormat": "BackOff", 175 "maxDataPoints": 43200, 176 "queryType": "instant", 177 "refId": "BackOff" 178 } 179 ], 180 "title": "Draupnir Synapse Status", 181 "type": "stat" 182 }, 183 { 184 "datasource": { 185 "type": "loki", 186 "uid": "${DS_LOKI}" 187 }, 188 "description": "Green means everything is as expected", 189 "fieldConfig": { 190 "defaults": { 191 "color": { 192 "mode": "thresholds" 193 }, 194 "mappings": [], 195 "thresholds": { 196 "mode": "absolute", 197 "steps": [ 198 { 199 "color": "green", 200 "value": null 201 }, 202 { 203 "color": "red", 204 "value": 1 205 } 206 ] 207 } 208 }, 209 "overrides": [ 210 { 211 "matcher": { 212 "id": "byName", 213 "options": "Value #Failed" 214 }, 215 "properties": [ 216 { 217 "id": "displayName", 218 "value": "Failed" 219 } 220 ] 221 }, 222 { 223 "matcher": { 224 "id": "byName", 225 "options": "Value #BackOff" 226 }, 227 "properties": [ 228 { 229 "id": "displayName", 230 "value": "BackOff" 231 } 232 ] 233 } 234 ] 235 }, 236 "gridPos": { 237 "h": 7, 238 "w": 12, 239 "x": 12, 240 "y": 1 241 }, 242 "id": 2, 243 "options": { 244 "colorMode": "background_solid", 245 "graphMode": "none", 246 "justifyMode": "auto", 247 "orientation": "auto", 248 "reduceOptions": { 249 "calcs": [ 250 "max" 251 ], 252 "fields": "", 253 "values": false 254 }, 255 "showPercentChange": false, 256 "textMode": "name", 257 "wideLayout": true 258 }, 259 "pluginVersion": "10.4.0", 260 "targets": [ 261 { 262 "datasource": { 263 "type": "loki", 264 "uid": "${DS_LOKI}" 265 }, 266 "editorMode": "builder", 267 "expr": "max(count_over_time({app=\"kube-event-exporter\"} | json | namespace = `matrix` | reason = `Failed` | name =~ `.*draupnir4all.*` [5m]))", 268 "intervalMs": 1000, 269 "legendFormat": "Failed", 270 "maxDataPoints": 43200, 271 "queryType": "instant", 272 "refId": "Failed" 273 }, 274 { 275 "datasource": { 276 "type": "loki", 277 "uid": "${DS_LOKI}" 278 }, 279 "editorMode": "builder", 280 "expr": "count_over_time({app=\"kube-event-exporter\"} | json | namespace = `matrix` | reason = `BackOff` | name =~ `.*draupnir4all.*` [5m])", 281 "hide": false, 282 "intervalMs": 1000, 283 "legendFormat": "BackOff", 284 "maxDataPoints": 43200, 285 "queryType": "instant", 286 "refId": "BackOff" 287 } 288 ], 289 "title": "Draupnir4All Status", 290 "type": "stat" 291 }, 292 { 293 "collapsed": false, 294 "gridPos": { 295 "h": 1, 296 "w": 24, 297 "x": 0, 298 "y": 8 299 }, 300 "id": 4, 301 "panels": [], 302 "title": "Logs", 303 "type": "row" 304 }, 305 { 306 "datasource": { 307 "type": "loki", 308 "uid": "${DS_LOKI}" 309 }, 310 "gridPos": { 311 "h": 8, 312 "w": 24, 313 "x": 0, 314 "y": 9 315 }, 316 "id": 5, 317 "options": { 318 "dedupStrategy": "exact", 319 "enableLogDetails": true, 320 "prettifyLogMessage": true, 321 "showCommonLabels": false, 322 "showLabels": false, 323 "showTime": true, 324 "sortOrder": "Descending", 325 "wrapLogMessage": false 326 }, 327 "targets": [ 328 { 329 "datasource": { 330 "type": "loki", 331 "uid": "${DS_LOKI}" 332 }, 333 "editorMode": "builder", 334 "expr": "{app=\"kube-event-exporter\"} | json | namespace = `matrix` | name =~ `.*draupnir-synapse.*`", 335 "queryType": "range", 336 "refId": "A" 337 } 338 ], 339 "title": "Draupnir4All Synapse Events", 340 "type": "logs" 341 }, 342 { 343 "datasource": { 344 "type": "loki", 345 "uid": "${DS_LOKI}" 346 }, 347 "gridPos": { 348 "h": 8, 349 "w": 24, 350 "x": 0, 351 "y": 17 352 }, 353 "id": 6, 354 "options": { 355 "dedupStrategy": "exact", 356 "enableLogDetails": true, 357 "prettifyLogMessage": true, 358 "showCommonLabels": false, 359 "showLabels": false, 360 "showTime": true, 361 "sortOrder": "Descending", 362 "wrapLogMessage": false 363 }, 364 "targets": [ 365 { 366 "datasource": { 367 "type": "loki", 368 "uid": "${DS_LOKI}" 369 }, 370 "editorMode": "builder", 371 "expr": "{app=\"kube-event-exporter\"} | json | namespace = `matrix` | name =~ `.*draupnir4all.*`", 372 "queryType": "range", 373 "refId": "A" 374 } 375 ], 376 "title": "Draupnir4All Events", 377 "type": "logs" 378 } 379 ], 380 "refresh": "10s", 381 "schemaVersion": 39, 382 "tags": [], 383 "templating": { 384 "list": [] 385 }, 386 "time": { 387 "from": "now-1h", 388 "to": "now" 389 }, 390 "timepicker": { 391 "refresh_intervals": [ 392 "5s", 393 "10s", 394 "30s", 395 "1m", 396 "5m", 397 "15m", 398 "30m", 399 "1h", 400 "2h", 401 "1d" 402 ] 403 }, 404 "timezone": "browser", 405 "title": "Draupnir4All Status and logs", 406 "uid": "bdz3qba37rwg0e", 407 "version": 4, 408 "weekStart": "" 409 }