Daniele Moro | f6dfb90 | 2020-01-15 15:00:36 -0800 | [diff] [blame^] | 1 | { |
| 2 | "annotations": { |
| 3 | "list": [ |
| 4 | { |
| 5 | "$$hashKey": "object:467", |
| 6 | "builtIn": 1, |
| 7 | "datasource": "-- Grafana --", |
| 8 | "enable": true, |
| 9 | "hide": true, |
| 10 | "iconColor": "rgba(0, 211, 255, 1)", |
| 11 | "name": "Annotations & Alerts", |
| 12 | "type": "dashboard" |
| 13 | } |
| 14 | ] |
| 15 | }, |
| 16 | "editable": true, |
| 17 | "gnetId": null, |
| 18 | "graphTooltip": 0, |
| 19 | "id": 4, |
| 20 | "iteration": 1570580684209, |
| 21 | "links": [], |
| 22 | "panels": [ |
| 23 | { |
| 24 | "collapsed": false, |
| 25 | "gridPos": { |
| 26 | "h": 1, |
| 27 | "w": 24, |
| 28 | "x": 0, |
| 29 | "y": 0 |
| 30 | }, |
| 31 | "id": 15, |
| 32 | "panels": [], |
| 33 | "repeat": "onuSerial", |
| 34 | "title": "ONU: $onuSerial", |
| 35 | "type": "row" |
| 36 | }, |
| 37 | { |
| 38 | "cacheTimeout": null, |
| 39 | "colorBackground": false, |
| 40 | "colorValue": true, |
| 41 | "colors": [ |
| 42 | "#b7dbab", |
| 43 | "#629e51", |
| 44 | "#d44a3a" |
| 45 | ], |
| 46 | "datasource": "Prometheus", |
| 47 | "format": "decmbytes", |
| 48 | "gauge": { |
| 49 | "maxValue": 100, |
| 50 | "minValue": 0, |
| 51 | "show": false, |
| 52 | "thresholdLabels": false, |
| 53 | "thresholdMarkers": true |
| 54 | }, |
| 55 | "gridPos": { |
| 56 | "h": 5, |
| 57 | "w": 4, |
| 58 | "x": 0, |
| 59 | "y": 1 |
| 60 | }, |
| 61 | "id": 33, |
| 62 | "interval": null, |
| 63 | "links": [], |
| 64 | "mappingType": 1, |
| 65 | "mappingTypes": [ |
| 66 | { |
| 67 | "name": "value to text", |
| 68 | "value": 1 |
| 69 | }, |
| 70 | { |
| 71 | "name": "range to text", |
| 72 | "value": 2 |
| 73 | } |
| 74 | ], |
| 75 | "maxDataPoints": 100, |
| 76 | "nullPointMode": "connected", |
| 77 | "nullText": null, |
| 78 | "postfix": "", |
| 79 | "postfixFontSize": "50%", |
| 80 | "prefix": "", |
| 81 | "prefixFontSize": "100%", |
| 82 | "rangeMaps": [ |
| 83 | { |
| 84 | "from": "null", |
| 85 | "text": "N/A", |
| 86 | "to": "null" |
| 87 | } |
| 88 | ], |
| 89 | "sparkline": { |
| 90 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 91 | "full": false, |
| 92 | "lineColor": "rgb(31, 120, 193)", |
| 93 | "show": false |
| 94 | }, |
| 95 | "tableColumn": "", |
| 96 | "targets": [ |
| 97 | { |
| 98 | "expr": "sum(delta(onosBngDownTxBytes{onu_serial=\"$onuSerial\"}[24h])) / 1024 / 1024", |
| 99 | "format": "time_series", |
| 100 | "hide": false, |
| 101 | "intervalFactor": 1, |
| 102 | "legendFormat": "Downloaded", |
| 103 | "refId": "A" |
| 104 | }, |
| 105 | { |
| 106 | "expr": "", |
| 107 | "format": "time_series", |
| 108 | "intervalFactor": 1, |
| 109 | "refId": "B" |
| 110 | } |
| 111 | ], |
| 112 | "thresholds": "0", |
| 113 | "title": "Total Download (24h)", |
| 114 | "type": "singlestat", |
| 115 | "valueFontSize": "100%", |
| 116 | "valueMaps": [ |
| 117 | { |
| 118 | "op": "=", |
| 119 | "text": "N/A", |
| 120 | "value": "null" |
| 121 | } |
| 122 | ], |
| 123 | "valueName": "current" |
| 124 | }, |
| 125 | { |
| 126 | "aliasColors": { |
| 127 | "Download": "#629e51", |
| 128 | "Upload": "#bf1b00" |
| 129 | }, |
| 130 | "bars": false, |
| 131 | "dashLength": 10, |
| 132 | "dashes": false, |
| 133 | "datasource": "Prometheus", |
| 134 | "fill": 2, |
| 135 | "gridPos": { |
| 136 | "h": 10, |
| 137 | "w": 20, |
| 138 | "x": 4, |
| 139 | "y": 1 |
| 140 | }, |
| 141 | "hideTimeOverride": false, |
| 142 | "id": 26, |
| 143 | "legend": { |
| 144 | "alignAsTable": true, |
| 145 | "avg": false, |
| 146 | "current": false, |
| 147 | "max": false, |
| 148 | "min": false, |
| 149 | "rightSide": false, |
| 150 | "show": true, |
| 151 | "total": false, |
| 152 | "values": false |
| 153 | }, |
| 154 | "lines": true, |
| 155 | "linewidth": 3, |
| 156 | "links": [], |
| 157 | "nullPointMode": "null", |
| 158 | "percentage": false, |
| 159 | "pointradius": 5, |
| 160 | "points": false, |
| 161 | "renderer": "flot", |
| 162 | "seriesOverrides": [], |
| 163 | "spaceLength": 10, |
| 164 | "stack": false, |
| 165 | "steppedLine": false, |
| 166 | "targets": [ |
| 167 | { |
| 168 | "expr": "sum(delta(onosBngDownTxBytes{onu_serial=\"$onuSerial\"}[$TimeDeltaS])) * 8 / 1024 / 1024 / $TimeDelta", |
| 169 | "format": "time_series", |
| 170 | "hide": false, |
| 171 | "instant": false, |
| 172 | "interval": "1s", |
| 173 | "intervalFactor": 1, |
| 174 | "legendFormat": "Download", |
| 175 | "refId": "A" |
| 176 | }, |
| 177 | { |
| 178 | "expr": "sum(delta(onosBngUpTxBytes{onu_serial=\"$onuSerial\"}[$TimeDeltaS])) * 8 / 1024 / 1024 / $TimeDelta", |
| 179 | "format": "time_series", |
| 180 | "instant": false, |
| 181 | "interval": "1s", |
| 182 | "intervalFactor": 1, |
| 183 | "legendFormat": "Upload", |
| 184 | "refId": "B" |
| 185 | } |
| 186 | ], |
| 187 | "thresholds": [], |
| 188 | "timeFrom": null, |
| 189 | "timeShift": null, |
| 190 | "title": "User Plane (Mbit/s)", |
| 191 | "tooltip": { |
| 192 | "shared": true, |
| 193 | "sort": 0, |
| 194 | "value_type": "individual" |
| 195 | }, |
| 196 | "transparent": false, |
| 197 | "type": "graph", |
| 198 | "xaxis": { |
| 199 | "buckets": null, |
| 200 | "mode": "time", |
| 201 | "name": null, |
| 202 | "show": true, |
| 203 | "values": [] |
| 204 | }, |
| 205 | "yaxes": [ |
| 206 | { |
| 207 | "format": "Mbits", |
| 208 | "label": null, |
| 209 | "logBase": 1, |
| 210 | "max": null, |
| 211 | "min": "0", |
| 212 | "show": true |
| 213 | }, |
| 214 | { |
| 215 | "format": "short", |
| 216 | "label": null, |
| 217 | "logBase": 1, |
| 218 | "max": null, |
| 219 | "min": null, |
| 220 | "show": false |
| 221 | } |
| 222 | ], |
| 223 | "yaxis": { |
| 224 | "align": false, |
| 225 | "alignLevel": null |
| 226 | } |
| 227 | }, |
| 228 | { |
| 229 | "cacheTimeout": null, |
| 230 | "colorBackground": false, |
| 231 | "colorValue": true, |
| 232 | "colors": [ |
| 233 | "#299c46", |
| 234 | "#bf1b00", |
| 235 | "#d44a3a" |
| 236 | ], |
| 237 | "datasource": null, |
| 238 | "format": "decmbytes", |
| 239 | "gauge": { |
| 240 | "maxValue": 100, |
| 241 | "minValue": 0, |
| 242 | "show": false, |
| 243 | "thresholdLabels": false, |
| 244 | "thresholdMarkers": true |
| 245 | }, |
| 246 | "gridPos": { |
| 247 | "h": 5, |
| 248 | "w": 4, |
| 249 | "x": 0, |
| 250 | "y": 6 |
| 251 | }, |
| 252 | "id": 41, |
| 253 | "interval": null, |
| 254 | "links": [], |
| 255 | "mappingType": 1, |
| 256 | "mappingTypes": [ |
| 257 | { |
| 258 | "name": "value to text", |
| 259 | "value": 1 |
| 260 | }, |
| 261 | { |
| 262 | "name": "range to text", |
| 263 | "value": 2 |
| 264 | } |
| 265 | ], |
| 266 | "maxDataPoints": 100, |
| 267 | "nullPointMode": "connected", |
| 268 | "nullText": null, |
| 269 | "postfix": "", |
| 270 | "postfixFontSize": "50%", |
| 271 | "prefix": "", |
| 272 | "prefixFontSize": "50%", |
| 273 | "rangeMaps": [ |
| 274 | { |
| 275 | "from": "null", |
| 276 | "text": "N/A", |
| 277 | "to": "null" |
| 278 | } |
| 279 | ], |
| 280 | "sparkline": { |
| 281 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 282 | "full": false, |
| 283 | "lineColor": "rgb(31, 120, 193)", |
| 284 | "show": false |
| 285 | }, |
| 286 | "tableColumn": "", |
| 287 | "targets": [ |
| 288 | { |
| 289 | "expr": "sum(delta(onosBngUpTxBytes{onu_serial=\"$onuSerial\"}[24h])) / 1024 / 1024", |
| 290 | "format": "time_series", |
| 291 | "intervalFactor": 1, |
| 292 | "refId": "A" |
| 293 | } |
| 294 | ], |
| 295 | "thresholds": "0", |
| 296 | "title": "Total Upload (24h)", |
| 297 | "type": "singlestat", |
| 298 | "valueFontSize": "100%", |
| 299 | "valueMaps": [ |
| 300 | { |
| 301 | "op": "=", |
| 302 | "text": "N/A", |
| 303 | "value": "null" |
| 304 | } |
| 305 | ], |
| 306 | "valueName": "current" |
| 307 | }, |
| 308 | { |
| 309 | "cacheTimeout": null, |
| 310 | "colorBackground": false, |
| 311 | "colorValue": false, |
| 312 | "colors": [ |
| 313 | "#299c46", |
| 314 | "rgba(237, 129, 40, 0.89)", |
| 315 | "#d44a3a" |
| 316 | ], |
| 317 | "datasource": null, |
| 318 | "format": "none", |
| 319 | "gauge": { |
| 320 | "maxValue": 100, |
| 321 | "minValue": 0, |
| 322 | "show": false, |
| 323 | "thresholdLabels": false, |
| 324 | "thresholdMarkers": true |
| 325 | }, |
| 326 | "gridPos": { |
| 327 | "h": 6, |
| 328 | "w": 4, |
| 329 | "x": 0, |
| 330 | "y": 11 |
| 331 | }, |
| 332 | "id": 48, |
| 333 | "interval": null, |
| 334 | "links": [], |
| 335 | "mappingType": 1, |
| 336 | "mappingTypes": [ |
| 337 | { |
| 338 | "name": "value to text", |
| 339 | "value": 1 |
| 340 | }, |
| 341 | { |
| 342 | "name": "range to text", |
| 343 | "value": 2 |
| 344 | } |
| 345 | ], |
| 346 | "maxDataPoints": 100, |
| 347 | "nullPointMode": "connected", |
| 348 | "nullText": null, |
| 349 | "postfix": "", |
| 350 | "postfixFontSize": "50%", |
| 351 | "prefix": "", |
| 352 | "prefixFontSize": "50%", |
| 353 | "rangeMaps": [ |
| 354 | { |
| 355 | "from": "null", |
| 356 | "text": "N/A", |
| 357 | "to": "null" |
| 358 | } |
| 359 | ], |
| 360 | "sparkline": { |
| 361 | "fillColor": "rgba(31, 118, 189, 0.18)", |
| 362 | "full": false, |
| 363 | "lineColor": "rgb(31, 120, 193)", |
| 364 | "show": false |
| 365 | }, |
| 366 | "tableColumn": "", |
| 367 | "targets": [ |
| 368 | { |
| 369 | "expr": "count(delta(onosBngControlPackets{onu_serial=\"$onuSerial\"}[24h]))", |
| 370 | "format": "time_series", |
| 371 | "instant": true, |
| 372 | "intervalFactor": 1, |
| 373 | "refId": "A" |
| 374 | } |
| 375 | ], |
| 376 | "thresholds": "", |
| 377 | "title": "Connection Count (24h)", |
| 378 | "type": "singlestat", |
| 379 | "valueFontSize": "100%", |
| 380 | "valueMaps": [ |
| 381 | { |
| 382 | "op": "=", |
| 383 | "text": "N/A", |
| 384 | "value": "null" |
| 385 | } |
| 386 | ], |
| 387 | "valueName": "current" |
| 388 | }, |
| 389 | { |
| 390 | "aliasColors": { |
| 391 | "Upstream Control Packets": "#65c5db" |
| 392 | }, |
| 393 | "bars": false, |
| 394 | "dashLength": 10, |
| 395 | "dashes": false, |
| 396 | "datasource": null, |
| 397 | "fill": 2, |
| 398 | "gridPos": { |
| 399 | "h": 6, |
| 400 | "w": 20, |
| 401 | "x": 4, |
| 402 | "y": 11 |
| 403 | }, |
| 404 | "id": 6, |
| 405 | "legend": { |
| 406 | "avg": false, |
| 407 | "current": false, |
| 408 | "max": false, |
| 409 | "min": false, |
| 410 | "show": false, |
| 411 | "total": false, |
| 412 | "values": false |
| 413 | }, |
| 414 | "lines": true, |
| 415 | "linewidth": 3, |
| 416 | "links": [], |
| 417 | "minSpan": 4, |
| 418 | "nullPointMode": "null", |
| 419 | "percentage": true, |
| 420 | "pointradius": 5, |
| 421 | "points": false, |
| 422 | "renderer": "flot", |
| 423 | "repeat": null, |
| 424 | "repeatDirection": "v", |
| 425 | "seriesOverrides": [], |
| 426 | "spaceLength": 10, |
| 427 | "stack": false, |
| 428 | "steppedLine": false, |
| 429 | "targets": [ |
| 430 | { |
| 431 | "expr": "sum(delta(onosBngControlPackets{onu_serial=\"$onuSerial\"}[$TimeDeltaS])) / $TimeDelta", |
| 432 | "format": "time_series", |
| 433 | "interval": "1s", |
| 434 | "intervalFactor": 1, |
| 435 | "legendFormat": "Upstream Control Packets", |
| 436 | "refId": "A" |
| 437 | } |
| 438 | ], |
| 439 | "thresholds": [], |
| 440 | "timeFrom": null, |
| 441 | "timeShift": null, |
| 442 | "title": "Control Plane (PPPoE control pkt/s)", |
| 443 | "tooltip": { |
| 444 | "shared": true, |
| 445 | "sort": 0, |
| 446 | "value_type": "individual" |
| 447 | }, |
| 448 | "type": "graph", |
| 449 | "xaxis": { |
| 450 | "buckets": null, |
| 451 | "mode": "time", |
| 452 | "name": null, |
| 453 | "show": true, |
| 454 | "values": [] |
| 455 | }, |
| 456 | "yaxes": [ |
| 457 | { |
| 458 | "format": "pps", |
| 459 | "label": null, |
| 460 | "logBase": 1, |
| 461 | "max": "0.5", |
| 462 | "min": "0", |
| 463 | "show": true |
| 464 | }, |
| 465 | { |
| 466 | "format": "short", |
| 467 | "label": null, |
| 468 | "logBase": 1, |
| 469 | "max": null, |
| 470 | "min": null, |
| 471 | "show": false |
| 472 | } |
| 473 | ], |
| 474 | "yaxis": { |
| 475 | "align": false, |
| 476 | "alignLevel": null |
| 477 | } |
| 478 | } |
| 479 | ], |
| 480 | "refresh": "15s", |
| 481 | "schemaVersion": 16, |
| 482 | "style": "dark", |
| 483 | "tags": [], |
| 484 | "templating": { |
| 485 | "list": [ |
| 486 | { |
| 487 | "allValue": null, |
| 488 | "current": { |
| 489 | "text": "All", |
| 490 | "value": "$__all" |
| 491 | }, |
| 492 | "datasource": "Prometheus", |
| 493 | "hide": 0, |
| 494 | "includeAll": true, |
| 495 | "label": "ONU Serial", |
| 496 | "multi": true, |
| 497 | "name": "onuSerial", |
| 498 | "options": [], |
| 499 | "query": "label_values(onosBngControlPackets, onu_serial)", |
| 500 | "refresh": 2, |
| 501 | "regex": "", |
| 502 | "sort": 1, |
| 503 | "tagValuesQuery": "", |
| 504 | "tags": [], |
| 505 | "tagsQuery": "", |
| 506 | "type": "query", |
| 507 | "useTags": false |
| 508 | }, |
| 509 | { |
| 510 | "allValue": null, |
| 511 | "current": { |
| 512 | "selected": true, |
| 513 | "text": "30", |
| 514 | "value": "30" |
| 515 | }, |
| 516 | "hide": 0, |
| 517 | "includeAll": false, |
| 518 | "label": null, |
| 519 | "multi": true, |
| 520 | "name": "TimeDelta", |
| 521 | "options": [ |
| 522 | { |
| 523 | "selected": true, |
| 524 | "text": "30", |
| 525 | "value": "30" |
| 526 | }, |
| 527 | { |
| 528 | "selected": false, |
| 529 | "text": "20", |
| 530 | "value": "20" |
| 531 | }, |
| 532 | { |
| 533 | "selected": false, |
| 534 | "text": "10", |
| 535 | "value": "10" |
| 536 | } |
| 537 | ], |
| 538 | "query": "30, 20, 10", |
| 539 | "type": "custom" |
| 540 | }, |
| 541 | { |
| 542 | "allValue": null, |
| 543 | "current": { |
| 544 | "selected": true, |
| 545 | "text": "30s", |
| 546 | "value": "30s" |
| 547 | }, |
| 548 | "hide": 0, |
| 549 | "includeAll": false, |
| 550 | "label": null, |
| 551 | "multi": true, |
| 552 | "name": "TimeDeltaS", |
| 553 | "options": [ |
| 554 | { |
| 555 | "selected": true, |
| 556 | "text": "30s", |
| 557 | "value": "30s" |
| 558 | }, |
| 559 | { |
| 560 | "selected": false, |
| 561 | "text": "20s", |
| 562 | "value": "20s" |
| 563 | }, |
| 564 | { |
| 565 | "selected": false, |
| 566 | "text": "10s", |
| 567 | "value": "10s" |
| 568 | } |
| 569 | ], |
| 570 | "query": "30s, 20s, 10s", |
| 571 | "type": "custom" |
| 572 | } |
| 573 | ] |
| 574 | }, |
| 575 | "time": { |
| 576 | "from": "now-15m", |
| 577 | "to": "now" |
| 578 | }, |
| 579 | "timepicker": { |
| 580 | "refresh_intervals": [ |
| 581 | "1s", |
| 582 | "5s", |
| 583 | "15s", |
| 584 | "30s", |
| 585 | "1m" |
| 586 | ], |
| 587 | "time_options": [ |
| 588 | "5m", |
| 589 | "15m", |
| 590 | "1h", |
| 591 | "6h", |
| 592 | "12h", |
| 593 | "24h", |
| 594 | "2d", |
| 595 | "7d", |
| 596 | "30d" |
| 597 | ] |
| 598 | }, |
| 599 | "timezone": "", |
| 600 | "title": "BNG Accounting Dashboard", |
| 601 | "uid": "i5ZrLw2Wz", |
| 602 | "version": 1 |
| 603 | } |