Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 1 | { |
| 2 | "annotations": { |
| 3 | "list": [ ] |
| 4 | }, |
| 5 | "editable": true, |
| 6 | "gnetId": null, |
| 7 | "graphTooltip": 0, |
| 8 | "hideControls": false, |
| 9 | "id": 8, |
| 10 | "iteration": 1583185057230, |
| 11 | "links": [ |
| 12 | { |
| 13 | "asDropdown": true, |
| 14 | "icon": "external link", |
| 15 | "includeVars": true, |
| 16 | "keepTime": true, |
| 17 | "tags": [ |
| 18 | "loki" |
| 19 | ], |
| 20 | "targetBlank": false, |
| 21 | "title": "Loki Dashboards", |
| 22 | "type": "dashboards" |
| 23 | } |
| 24 | ], |
| 25 | "panels": [ |
| 26 | { |
| 27 | "aliasColors": { }, |
| 28 | "bars": false, |
| 29 | "dashLength": 10, |
| 30 | "dashes": false, |
| 31 | "datasource": "$datasource", |
| 32 | "fill": 1, |
| 33 | "fillGradient": 0, |
| 34 | "gridPos": { |
| 35 | "h": 4, |
| 36 | "w": 3, |
| 37 | "x": 0, |
| 38 | "y": 0 |
| 39 | }, |
| 40 | "hiddenSeries": false, |
| 41 | "id": 35, |
| 42 | "legend": { |
| 43 | "avg": false, |
| 44 | "current": false, |
| 45 | "max": false, |
| 46 | "min": false, |
| 47 | "show": false, |
| 48 | "total": false, |
| 49 | "values": false |
| 50 | }, |
| 51 | "lines": true, |
| 52 | "linewidth": 1, |
| 53 | "nullPointMode": "null", |
| 54 | "options": { |
| 55 | "dataLinks": [ ] |
| 56 | }, |
| 57 | "percentage": false, |
| 58 | "pointradius": 2, |
| 59 | "points": false, |
| 60 | "renderer": "flot", |
| 61 | "seriesOverrides": [ ], |
| 62 | "spaceLength": 10, |
| 63 | "stack": false, |
| 64 | "steppedLine": false, |
| 65 | "targets": [ |
| 66 | { |
| 67 | "expr": "sum(go_goroutines{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\"})", |
| 68 | "refId": "A" |
| 69 | } |
| 70 | ], |
| 71 | "thresholds": [ ], |
| 72 | "timeFrom": null, |
| 73 | "timeRegions": [ ], |
| 74 | "timeShift": null, |
| 75 | "title": "goroutines", |
| 76 | "tooltip": { |
| 77 | "shared": true, |
| 78 | "sort": 0, |
| 79 | "value_type": "individual" |
| 80 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 81 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 82 | "xaxis": { |
| 83 | "buckets": null, |
| 84 | "mode": "time", |
| 85 | "name": null, |
| 86 | "show": true, |
| 87 | "values": [ ] |
| 88 | }, |
| 89 | "yaxes": [ |
| 90 | { |
| 91 | "format": "short", |
| 92 | "label": null, |
| 93 | "logBase": 1, |
| 94 | "max": null, |
| 95 | "min": null, |
| 96 | "show": true |
| 97 | }, |
| 98 | { |
| 99 | "format": "short", |
| 100 | "label": null, |
| 101 | "logBase": 1, |
| 102 | "max": null, |
| 103 | "min": null, |
| 104 | "show": true |
| 105 | } |
| 106 | ], |
| 107 | "yaxis": { |
| 108 | "align": false, |
| 109 | "alignLevel": null |
| 110 | } |
| 111 | }, |
| 112 | { |
| 113 | "aliasColors": { }, |
| 114 | "bars": false, |
| 115 | "dashLength": 10, |
| 116 | "dashes": false, |
| 117 | "datasource": "$datasource", |
| 118 | "fill": 1, |
| 119 | "fillGradient": 0, |
| 120 | "gridPos": { |
| 121 | "h": 4, |
| 122 | "w": 3, |
| 123 | "x": 3, |
| 124 | "y": 0 |
| 125 | }, |
| 126 | "hiddenSeries": false, |
| 127 | "id": 41, |
| 128 | "legend": { |
| 129 | "avg": false, |
| 130 | "current": false, |
| 131 | "max": false, |
| 132 | "min": false, |
| 133 | "show": false, |
| 134 | "total": false, |
| 135 | "values": false |
| 136 | }, |
| 137 | "lines": true, |
| 138 | "linewidth": 1, |
| 139 | "nullPointMode": "null", |
| 140 | "options": { |
| 141 | "dataLinks": [ ] |
| 142 | }, |
| 143 | "percentage": false, |
| 144 | "pointradius": 2, |
| 145 | "points": false, |
| 146 | "renderer": "flot", |
| 147 | "seriesOverrides": [ ], |
| 148 | "spaceLength": 10, |
| 149 | "stack": false, |
| 150 | "steppedLine": false, |
| 151 | "targets": [ |
| 152 | { |
| 153 | "expr": "sum(go_gc_duration_seconds{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\"}) by (quantile)", |
| 154 | "legendFormat": "{{quantile}}", |
| 155 | "refId": "A" |
| 156 | } |
| 157 | ], |
| 158 | "thresholds": [ ], |
| 159 | "timeFrom": null, |
| 160 | "timeRegions": [ ], |
| 161 | "timeShift": null, |
| 162 | "title": "gc duration", |
| 163 | "tooltip": { |
| 164 | "shared": true, |
| 165 | "sort": 0, |
| 166 | "value_type": "individual" |
| 167 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 168 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 169 | "xaxis": { |
| 170 | "buckets": null, |
| 171 | "mode": "time", |
| 172 | "name": null, |
| 173 | "show": true, |
| 174 | "values": [ ] |
| 175 | }, |
| 176 | "yaxes": [ |
| 177 | { |
| 178 | "format": "short", |
| 179 | "label": null, |
| 180 | "logBase": 1, |
| 181 | "max": null, |
| 182 | "min": null, |
| 183 | "show": true |
| 184 | }, |
| 185 | { |
| 186 | "format": "short", |
| 187 | "label": null, |
| 188 | "logBase": 1, |
| 189 | "max": null, |
| 190 | "min": null, |
| 191 | "show": true |
| 192 | } |
| 193 | ], |
| 194 | "yaxis": { |
| 195 | "align": false, |
| 196 | "alignLevel": null |
| 197 | } |
| 198 | }, |
| 199 | { |
| 200 | "aliasColors": { }, |
| 201 | "bars": false, |
| 202 | "dashLength": 10, |
| 203 | "dashes": false, |
| 204 | "datasource": "$datasource", |
| 205 | "fill": 1, |
| 206 | "fillGradient": 0, |
| 207 | "gridPos": { |
| 208 | "h": 4, |
| 209 | "w": 3, |
| 210 | "x": 6, |
| 211 | "y": 0 |
| 212 | }, |
| 213 | "hiddenSeries": false, |
| 214 | "id": 36, |
| 215 | "legend": { |
| 216 | "avg": false, |
| 217 | "current": false, |
| 218 | "max": false, |
| 219 | "min": false, |
| 220 | "show": false, |
| 221 | "total": false, |
| 222 | "values": false |
| 223 | }, |
| 224 | "lines": true, |
| 225 | "linewidth": 1, |
| 226 | "nullPointMode": "null", |
| 227 | "options": { |
| 228 | "dataLinks": [ ] |
| 229 | }, |
| 230 | "percentage": false, |
| 231 | "pointradius": 2, |
| 232 | "points": false, |
| 233 | "renderer": "flot", |
| 234 | "seriesOverrides": [ ], |
| 235 | "spaceLength": 10, |
| 236 | "stack": false, |
| 237 | "steppedLine": false, |
| 238 | "targets": [ |
| 239 | { |
| 240 | "expr": "sum(rate(container_cpu_usage_seconds_total{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\", container=~\"$container\"}[5m]))", |
| 241 | "refId": "A" |
| 242 | } |
| 243 | ], |
| 244 | "thresholds": [ ], |
| 245 | "timeFrom": null, |
| 246 | "timeRegions": [ ], |
| 247 | "timeShift": null, |
| 248 | "title": "cpu", |
| 249 | "tooltip": { |
| 250 | "shared": true, |
| 251 | "sort": 0, |
| 252 | "value_type": "individual" |
| 253 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 254 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 255 | "xaxis": { |
| 256 | "buckets": null, |
| 257 | "mode": "time", |
| 258 | "name": null, |
| 259 | "show": true, |
| 260 | "values": [ ] |
| 261 | }, |
| 262 | "yaxes": [ |
| 263 | { |
| 264 | "format": "short", |
| 265 | "label": null, |
| 266 | "logBase": 1, |
| 267 | "max": null, |
| 268 | "min": null, |
| 269 | "show": true |
| 270 | }, |
| 271 | { |
| 272 | "format": "short", |
| 273 | "label": null, |
| 274 | "logBase": 1, |
| 275 | "max": null, |
| 276 | "min": null, |
| 277 | "show": true |
| 278 | } |
| 279 | ], |
| 280 | "yaxis": { |
| 281 | "align": false, |
| 282 | "alignLevel": null |
| 283 | } |
| 284 | }, |
| 285 | { |
| 286 | "aliasColors": { }, |
| 287 | "bars": false, |
| 288 | "dashLength": 10, |
| 289 | "dashes": false, |
| 290 | "datasource": "$datasource", |
| 291 | "fill": 1, |
| 292 | "fillGradient": 0, |
| 293 | "gridPos": { |
| 294 | "h": 4, |
| 295 | "w": 3, |
| 296 | "x": 9, |
| 297 | "y": 0 |
| 298 | }, |
| 299 | "hiddenSeries": false, |
| 300 | "id": 40, |
| 301 | "legend": { |
| 302 | "avg": false, |
| 303 | "current": false, |
| 304 | "max": false, |
| 305 | "min": false, |
| 306 | "show": false, |
| 307 | "total": false, |
| 308 | "values": false |
| 309 | }, |
| 310 | "lines": true, |
| 311 | "linewidth": 1, |
| 312 | "nullPointMode": "null", |
| 313 | "options": { |
| 314 | "dataLinks": [ ] |
| 315 | }, |
| 316 | "percentage": false, |
| 317 | "pointradius": 2, |
| 318 | "points": false, |
| 319 | "renderer": "flot", |
| 320 | "seriesOverrides": [ ], |
| 321 | "spaceLength": 10, |
| 322 | "stack": false, |
| 323 | "steppedLine": false, |
| 324 | "targets": [ |
| 325 | { |
| 326 | "expr": "sum(container_memory_working_set_bytes{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\", container=~\"$container\"})", |
| 327 | "refId": "A" |
| 328 | } |
| 329 | ], |
| 330 | "thresholds": [ ], |
| 331 | "timeFrom": null, |
| 332 | "timeRegions": [ ], |
| 333 | "timeShift": null, |
| 334 | "title": "working set", |
| 335 | "tooltip": { |
| 336 | "shared": true, |
| 337 | "sort": 0, |
| 338 | "value_type": "individual" |
| 339 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 340 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 341 | "xaxis": { |
| 342 | "buckets": null, |
| 343 | "mode": "time", |
| 344 | "name": null, |
| 345 | "show": true, |
| 346 | "values": [ ] |
| 347 | }, |
| 348 | "yaxes": [ |
| 349 | { |
| 350 | "format": "bytes", |
| 351 | "label": null, |
| 352 | "logBase": 1, |
| 353 | "max": null, |
| 354 | "min": null, |
| 355 | "show": true |
| 356 | }, |
| 357 | { |
| 358 | "format": "short", |
| 359 | "label": null, |
| 360 | "logBase": 1, |
| 361 | "max": null, |
| 362 | "min": null, |
| 363 | "show": true |
| 364 | } |
| 365 | ], |
| 366 | "yaxis": { |
| 367 | "align": false, |
| 368 | "alignLevel": null |
| 369 | } |
| 370 | }, |
| 371 | { |
| 372 | "aliasColors": { }, |
| 373 | "bars": false, |
| 374 | "dashLength": 10, |
| 375 | "dashes": false, |
| 376 | "datasource": "$datasource", |
| 377 | "fill": 1, |
| 378 | "fillGradient": 0, |
| 379 | "gridPos": { |
| 380 | "h": 4, |
| 381 | "w": 3, |
| 382 | "x": 12, |
| 383 | "y": 0 |
| 384 | }, |
| 385 | "hiddenSeries": false, |
| 386 | "id": 38, |
| 387 | "legend": { |
| 388 | "avg": false, |
| 389 | "current": false, |
| 390 | "max": false, |
| 391 | "min": false, |
| 392 | "show": false, |
| 393 | "total": false, |
| 394 | "values": false |
| 395 | }, |
| 396 | "lines": true, |
| 397 | "linewidth": 1, |
| 398 | "nullPointMode": "null", |
| 399 | "options": { |
| 400 | "dataLinks": [ ] |
| 401 | }, |
| 402 | "percentage": false, |
| 403 | "pointradius": 2, |
| 404 | "points": false, |
| 405 | "renderer": "flot", |
| 406 | "seriesOverrides": [ ], |
| 407 | "spaceLength": 10, |
| 408 | "stack": false, |
| 409 | "steppedLine": false, |
| 410 | "targets": [ |
| 411 | { |
| 412 | "expr": "sum(rate(container_network_transmit_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\"}[5m]))", |
| 413 | "refId": "A" |
| 414 | } |
| 415 | ], |
| 416 | "thresholds": [ ], |
| 417 | "timeFrom": null, |
| 418 | "timeRegions": [ ], |
| 419 | "timeShift": null, |
| 420 | "title": "tx", |
| 421 | "tooltip": { |
| 422 | "shared": true, |
| 423 | "sort": 0, |
| 424 | "value_type": "individual" |
| 425 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 426 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 427 | "xaxis": { |
| 428 | "buckets": null, |
| 429 | "mode": "time", |
| 430 | "name": null, |
| 431 | "show": true, |
| 432 | "values": [ ] |
| 433 | }, |
| 434 | "yaxes": [ |
| 435 | { |
| 436 | "format": "bytes", |
| 437 | "label": null, |
| 438 | "logBase": 1, |
| 439 | "max": null, |
| 440 | "min": null, |
| 441 | "show": true |
| 442 | }, |
| 443 | { |
| 444 | "format": "short", |
| 445 | "label": null, |
| 446 | "logBase": 1, |
| 447 | "max": null, |
| 448 | "min": null, |
| 449 | "show": true |
| 450 | } |
| 451 | ], |
| 452 | "yaxis": { |
| 453 | "align": false, |
| 454 | "alignLevel": null |
| 455 | } |
| 456 | }, |
| 457 | { |
| 458 | "aliasColors": { }, |
| 459 | "bars": false, |
| 460 | "dashLength": 10, |
| 461 | "dashes": false, |
| 462 | "datasource": "$datasource", |
| 463 | "fill": 1, |
| 464 | "fillGradient": 0, |
| 465 | "gridPos": { |
| 466 | "h": 4, |
| 467 | "w": 3, |
| 468 | "x": 15, |
| 469 | "y": 0 |
| 470 | }, |
| 471 | "hiddenSeries": false, |
| 472 | "id": 39, |
| 473 | "legend": { |
| 474 | "avg": false, |
| 475 | "current": false, |
| 476 | "max": false, |
| 477 | "min": false, |
| 478 | "show": false, |
| 479 | "total": false, |
| 480 | "values": false |
| 481 | }, |
| 482 | "lines": true, |
| 483 | "linewidth": 1, |
| 484 | "nullPointMode": "null", |
| 485 | "options": { |
| 486 | "dataLinks": [ ] |
| 487 | }, |
| 488 | "percentage": false, |
| 489 | "pointradius": 2, |
| 490 | "points": false, |
| 491 | "renderer": "flot", |
| 492 | "seriesOverrides": [ ], |
| 493 | "spaceLength": 10, |
| 494 | "stack": false, |
| 495 | "steppedLine": false, |
| 496 | "targets": [ |
| 497 | { |
| 498 | "expr": "sum(rate(container_network_receive_bytes_total{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\"}[5m]))", |
| 499 | "refId": "A" |
| 500 | } |
| 501 | ], |
| 502 | "thresholds": [ ], |
| 503 | "timeFrom": null, |
| 504 | "timeRegions": [ ], |
| 505 | "timeShift": null, |
| 506 | "title": "rx", |
| 507 | "tooltip": { |
| 508 | "shared": true, |
| 509 | "sort": 0, |
| 510 | "value_type": "individual" |
| 511 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 512 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 513 | "xaxis": { |
| 514 | "buckets": null, |
| 515 | "mode": "time", |
| 516 | "name": null, |
| 517 | "show": true, |
| 518 | "values": [ ] |
| 519 | }, |
| 520 | "yaxes": [ |
| 521 | { |
| 522 | "format": "decbytes", |
| 523 | "label": null, |
| 524 | "logBase": 1, |
| 525 | "max": null, |
| 526 | "min": null, |
| 527 | "show": true |
| 528 | }, |
| 529 | { |
| 530 | "format": "short", |
| 531 | "label": null, |
| 532 | "logBase": 1, |
| 533 | "max": null, |
| 534 | "min": null, |
| 535 | "show": true |
| 536 | } |
| 537 | ], |
| 538 | "yaxis": { |
| 539 | "align": false, |
| 540 | "alignLevel": null |
| 541 | } |
| 542 | }, |
| 543 | { |
| 544 | "aliasColors": { }, |
| 545 | "bars": false, |
| 546 | "dashLength": 10, |
| 547 | "dashes": false, |
| 548 | "datasource": "$datasource", |
| 549 | "fill": 1, |
| 550 | "fillGradient": 0, |
| 551 | "gridPos": { |
| 552 | "h": 4, |
| 553 | "w": 3, |
| 554 | "x": 18, |
| 555 | "y": 0 |
| 556 | }, |
| 557 | "hiddenSeries": false, |
| 558 | "id": 37, |
| 559 | "legend": { |
| 560 | "avg": false, |
| 561 | "current": false, |
| 562 | "max": false, |
| 563 | "min": false, |
| 564 | "show": false, |
| 565 | "total": false, |
| 566 | "values": false |
| 567 | }, |
| 568 | "lines": true, |
| 569 | "linewidth": 1, |
| 570 | "nullPointMode": "null", |
| 571 | "options": { |
| 572 | "dataLinks": [ ] |
| 573 | }, |
| 574 | "percentage": false, |
| 575 | "pointradius": 2, |
| 576 | "points": false, |
| 577 | "renderer": "flot", |
| 578 | "seriesOverrides": [ ], |
| 579 | "spaceLength": 10, |
| 580 | "stack": false, |
| 581 | "steppedLine": false, |
| 582 | "targets": [ |
| 583 | { |
| 584 | "expr": "increase(kube_pod_container_status_last_terminated_reason{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\", container=~\"$container\"}[30m]) > 0", |
| 585 | "legendFormat": "{{reason}}", |
| 586 | "refId": "A" |
| 587 | } |
| 588 | ], |
| 589 | "thresholds": [ ], |
| 590 | "timeFrom": null, |
| 591 | "timeRegions": [ ], |
| 592 | "timeShift": null, |
| 593 | "title": "restarts", |
| 594 | "tooltip": { |
| 595 | "shared": true, |
| 596 | "sort": 0, |
| 597 | "value_type": "individual" |
| 598 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 599 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 600 | "xaxis": { |
| 601 | "buckets": null, |
| 602 | "mode": "time", |
| 603 | "name": null, |
| 604 | "show": true, |
| 605 | "values": [ ] |
| 606 | }, |
| 607 | "yaxes": [ |
| 608 | { |
| 609 | "format": "bytes", |
| 610 | "label": null, |
| 611 | "logBase": 1, |
| 612 | "max": null, |
| 613 | "min": null, |
| 614 | "show": true |
| 615 | }, |
| 616 | { |
| 617 | "format": "short", |
| 618 | "label": null, |
| 619 | "logBase": 1, |
| 620 | "max": null, |
| 621 | "min": null, |
| 622 | "show": true |
| 623 | } |
| 624 | ], |
| 625 | "yaxis": { |
| 626 | "align": false, |
| 627 | "alignLevel": null |
| 628 | } |
| 629 | }, |
| 630 | { |
| 631 | "aliasColors": { }, |
| 632 | "bars": false, |
| 633 | "dashLength": 10, |
| 634 | "dashes": false, |
| 635 | "datasource": "$datasource", |
| 636 | "fill": 1, |
| 637 | "fillGradient": 0, |
| 638 | "gridPos": { |
| 639 | "h": 4, |
| 640 | "w": 3, |
| 641 | "x": 21, |
| 642 | "y": 0 |
| 643 | }, |
| 644 | "hiddenSeries": false, |
| 645 | "id": 42, |
| 646 | "legend": { |
| 647 | "avg": false, |
| 648 | "current": false, |
| 649 | "max": false, |
| 650 | "min": false, |
| 651 | "show": false, |
| 652 | "total": false, |
| 653 | "values": false |
| 654 | }, |
| 655 | "lines": true, |
| 656 | "linewidth": 1, |
| 657 | "nullPointMode": "null", |
| 658 | "options": { |
| 659 | "dataLinks": [ ] |
| 660 | }, |
| 661 | "percentage": false, |
| 662 | "pointradius": 2, |
| 663 | "points": false, |
| 664 | "renderer": "flot", |
| 665 | "seriesOverrides": [ ], |
| 666 | "spaceLength": 10, |
| 667 | "stack": false, |
| 668 | "steppedLine": false, |
| 669 | "targets": [ |
| 670 | { |
| 671 | "expr": "sum(rate(promtail_custom_bad_words_total{cluster=\"$cluster\", exported_namespace=\"$namespace\", exported_pod=~\"$deployment.*\", exported_pod=~\"$pod\", container=~\"$container\"}[5m])) by (level)", |
| 672 | "legendFormat": "{{level}}", |
| 673 | "refId": "A" |
| 674 | } |
| 675 | ], |
| 676 | "thresholds": [ ], |
| 677 | "timeFrom": null, |
| 678 | "timeRegions": [ ], |
| 679 | "timeShift": null, |
| 680 | "title": "bad words", |
| 681 | "tooltip": { |
| 682 | "shared": true, |
| 683 | "sort": 0, |
| 684 | "value_type": "individual" |
| 685 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 686 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 687 | "xaxis": { |
| 688 | "buckets": null, |
| 689 | "mode": "time", |
| 690 | "name": null, |
| 691 | "show": true, |
| 692 | "values": [ ] |
| 693 | }, |
| 694 | "yaxes": [ |
| 695 | { |
| 696 | "format": "bytes", |
| 697 | "label": null, |
| 698 | "logBase": 1, |
| 699 | "max": null, |
| 700 | "min": null, |
| 701 | "show": true |
| 702 | }, |
| 703 | { |
| 704 | "format": "short", |
| 705 | "label": null, |
| 706 | "logBase": 1, |
| 707 | "max": null, |
| 708 | "min": null, |
| 709 | "show": true |
| 710 | } |
| 711 | ], |
| 712 | "yaxis": { |
| 713 | "align": false, |
| 714 | "alignLevel": null |
| 715 | } |
| 716 | }, |
| 717 | { |
| 718 | "aliasColors": { }, |
| 719 | "bars": false, |
| 720 | "dashLength": 10, |
| 721 | "dashes": false, |
| 722 | "datasource": "$logs", |
| 723 | "fill": 1, |
| 724 | "fillGradient": 0, |
| 725 | "gridPos": { |
| 726 | "h": 7, |
| 727 | "w": 24, |
| 728 | "x": 0, |
| 729 | "y": 4 |
| 730 | }, |
| 731 | "hiddenSeries": false, |
| 732 | "id": 31, |
| 733 | "legend": { |
| 734 | "avg": false, |
| 735 | "current": false, |
| 736 | "max": false, |
| 737 | "min": false, |
| 738 | "show": false, |
| 739 | "total": false, |
| 740 | "values": false |
| 741 | }, |
| 742 | "lines": true, |
| 743 | "linewidth": 1, |
| 744 | "nullPointMode": "null", |
| 745 | "options": { |
| 746 | "dataLinks": [ ] |
| 747 | }, |
| 748 | "percentage": false, |
| 749 | "pointradius": 2, |
| 750 | "points": false, |
| 751 | "renderer": "flot", |
| 752 | "seriesOverrides": [ |
| 753 | { |
| 754 | "alias": "warn", |
| 755 | "color": "#FF780A" |
| 756 | }, |
| 757 | { |
| 758 | "alias": "error", |
| 759 | "color": "#E02F44" |
| 760 | }, |
| 761 | { |
| 762 | "alias": "info", |
| 763 | "color": "#56A64B" |
| 764 | }, |
| 765 | { |
| 766 | "alias": "debug", |
| 767 | "color": "#3274D9" |
| 768 | } |
| 769 | ], |
| 770 | "spaceLength": 10, |
| 771 | "stack": true, |
| 772 | "steppedLine": false, |
| 773 | "targets": [ |
| 774 | { |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 775 | "expr": "sum(rate({cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\", container=~\"$container\" } |logfmt| level=~\"$level\" |= \"$filter\" [5m])) by (level)", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 776 | "intervalFactor": 3, |
| 777 | "legendFormat": "{{level}}", |
| 778 | "refId": "A" |
| 779 | } |
| 780 | ], |
| 781 | "thresholds": [ ], |
| 782 | "timeFrom": null, |
| 783 | "timeRegions": [ ], |
| 784 | "timeShift": null, |
| 785 | "title": "Log Rate", |
| 786 | "tooltip": { |
| 787 | "shared": true, |
| 788 | "sort": 2, |
| 789 | "value_type": "individual" |
| 790 | }, |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 791 | "type": "timeseries", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 792 | "xaxis": { |
| 793 | "buckets": null, |
| 794 | "mode": "time", |
| 795 | "name": null, |
| 796 | "show": false, |
| 797 | "values": [ ] |
| 798 | }, |
| 799 | "yaxes": [ |
| 800 | { |
| 801 | "format": "short", |
| 802 | "label": null, |
| 803 | "logBase": 1, |
| 804 | "max": null, |
| 805 | "min": null, |
| 806 | "show": true |
| 807 | }, |
| 808 | { |
| 809 | "format": "short", |
| 810 | "label": null, |
| 811 | "logBase": 1, |
| 812 | "max": null, |
| 813 | "min": null, |
| 814 | "show": false |
| 815 | } |
| 816 | ], |
| 817 | "yaxis": { |
| 818 | "align": false, |
| 819 | "alignLevel": null |
| 820 | } |
| 821 | }, |
| 822 | { |
| 823 | "datasource": "$logs", |
| 824 | "gridPos": { |
| 825 | "h": 19, |
| 826 | "w": 24, |
| 827 | "x": 0, |
| 828 | "y": 6 |
| 829 | }, |
| 830 | "id": 29, |
| 831 | "maxDataPoints": "", |
| 832 | "options": { |
| 833 | "showLabels": false, |
| 834 | "showTime": true, |
| 835 | "sortOrder": "Descending", |
| 836 | "wrapLogMessage": true |
| 837 | }, |
| 838 | "targets": [ |
| 839 | { |
Giovanni Tirloni | 59219b6 | 2024-04-09 14:50:25 -0300 | [diff] [blame] | 840 | "expr": "{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\", container=~\"$container\"} | logfmt | level=~\"$level\" |= \"$filter\"", |
Mohammed Naser | 8a2c8fb | 2023-02-19 17:23:55 +0000 | [diff] [blame] | 841 | "refId": "A" |
| 842 | } |
| 843 | ], |
| 844 | "timeFrom": null, |
| 845 | "timeShift": null, |
| 846 | "title": "Logs", |
| 847 | "type": "logs" |
| 848 | } |
| 849 | ], |
| 850 | "refresh": "10s", |
| 851 | "rows": [ ], |
| 852 | "schemaVersion": 14, |
| 853 | "style": "dark", |
| 854 | "tags": [ |
| 855 | "loki" |
| 856 | ], |
| 857 | "templating": { |
| 858 | "list": [ |
| 859 | { |
| 860 | "current": { |
| 861 | "text": "default", |
| 862 | "value": "default" |
| 863 | }, |
| 864 | "hide": 0, |
| 865 | "label": "Data Source", |
| 866 | "name": "datasource", |
| 867 | "options": [ ], |
| 868 | "query": "prometheus", |
| 869 | "refresh": 1, |
| 870 | "regex": "", |
| 871 | "type": "datasource" |
| 872 | }, |
| 873 | { |
| 874 | "allValue": null, |
| 875 | "current": { |
| 876 | "text": "prod", |
| 877 | "value": "prod" |
| 878 | }, |
| 879 | "datasource": "$datasource", |
| 880 | "hide": 0, |
| 881 | "includeAll": false, |
| 882 | "label": "cluster", |
| 883 | "multi": false, |
| 884 | "name": "cluster", |
| 885 | "options": [ ], |
| 886 | "query": "label_values(loki_build_info, cluster)", |
| 887 | "refresh": 1, |
| 888 | "regex": "", |
| 889 | "sort": 2, |
| 890 | "tagValuesQuery": "", |
| 891 | "tags": [ ], |
| 892 | "tagsQuery": "", |
| 893 | "type": "query", |
| 894 | "useTags": false |
| 895 | }, |
| 896 | { |
| 897 | "allValue": null, |
| 898 | "current": { |
| 899 | "text": "prod", |
| 900 | "value": "prod" |
| 901 | }, |
| 902 | "datasource": "$datasource", |
| 903 | "hide": 0, |
| 904 | "includeAll": false, |
| 905 | "label": "namespace", |
| 906 | "multi": false, |
| 907 | "name": "namespace", |
| 908 | "options": [ ], |
| 909 | "query": "label_values(loki_build_info{cluster=~\"$cluster\"}, namespace)", |
| 910 | "refresh": 1, |
| 911 | "regex": "", |
| 912 | "sort": 2, |
| 913 | "tagValuesQuery": "", |
| 914 | "tags": [ ], |
| 915 | "tagsQuery": "", |
| 916 | "type": "query", |
| 917 | "useTags": false |
| 918 | }, |
| 919 | { |
| 920 | "hide": 0, |
| 921 | "label": null, |
| 922 | "name": "logs", |
| 923 | "options": [ ], |
| 924 | "query": "loki", |
| 925 | "refresh": 1, |
| 926 | "regex": "", |
| 927 | "type": "datasource" |
| 928 | }, |
| 929 | { |
| 930 | "allValue": null, |
| 931 | "current": { }, |
| 932 | "datasource": "$datasource", |
| 933 | "hide": 0, |
| 934 | "includeAll": false, |
| 935 | "label": null, |
| 936 | "multi": false, |
| 937 | "name": "deployment", |
| 938 | "options": [ ], |
| 939 | "query": "label_values(kube_deployment_created{cluster=\"$cluster\", namespace=\"$namespace\"}, deployment)", |
| 940 | "refresh": 0, |
| 941 | "regex": "", |
| 942 | "sort": 1, |
| 943 | "tagValuesQuery": "", |
| 944 | "tags": [ ], |
| 945 | "tagsQuery": "", |
| 946 | "type": "query", |
| 947 | "useTags": false |
| 948 | }, |
| 949 | { |
| 950 | "allValue": null, |
| 951 | "current": { }, |
| 952 | "datasource": "$datasource", |
| 953 | "hide": 0, |
| 954 | "includeAll": false, |
| 955 | "label": null, |
| 956 | "multi": false, |
| 957 | "name": "pod", |
| 958 | "options": [ ], |
| 959 | "query": "label_values(kube_pod_container_info{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\"}, pod)", |
| 960 | "refresh": 0, |
| 961 | "regex": "", |
| 962 | "sort": 1, |
| 963 | "tagValuesQuery": "", |
| 964 | "tags": [ ], |
| 965 | "tagsQuery": "", |
| 966 | "type": "query", |
| 967 | "useTags": false |
| 968 | }, |
| 969 | { |
| 970 | "allValue": null, |
| 971 | "current": { }, |
| 972 | "datasource": "$datasource", |
| 973 | "hide": 0, |
| 974 | "includeAll": false, |
| 975 | "label": null, |
| 976 | "multi": false, |
| 977 | "name": "container", |
| 978 | "options": [ ], |
| 979 | "query": "label_values(kube_pod_container_info{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$pod\", pod=~\"$deployment.*\"}, container)", |
| 980 | "refresh": 0, |
| 981 | "regex": "", |
| 982 | "sort": 1, |
| 983 | "tagValuesQuery": "", |
| 984 | "tags": [ ], |
| 985 | "tagsQuery": "", |
| 986 | "type": "query", |
| 987 | "useTags": false |
| 988 | }, |
| 989 | { |
| 990 | "allValue": null, |
| 991 | "current": { |
| 992 | "selected": true, |
| 993 | "text": "", |
| 994 | "value": "" |
| 995 | }, |
| 996 | "hide": 0, |
| 997 | "includeAll": false, |
| 998 | "label": "", |
| 999 | "multi": true, |
| 1000 | "name": "level", |
| 1001 | "options": [ |
| 1002 | { |
| 1003 | "selected": false, |
| 1004 | "text": "debug", |
| 1005 | "value": "debug" |
| 1006 | }, |
| 1007 | { |
| 1008 | "selected": false, |
| 1009 | "text": "info", |
| 1010 | "value": "info" |
| 1011 | }, |
| 1012 | { |
| 1013 | "selected": false, |
| 1014 | "text": "warn", |
| 1015 | "value": "warn" |
| 1016 | }, |
| 1017 | { |
| 1018 | "selected": false, |
| 1019 | "text": "error", |
| 1020 | "value": "error" |
| 1021 | } |
| 1022 | ], |
| 1023 | "query": "debug,info,warn,error", |
| 1024 | "refresh": 0, |
| 1025 | "type": "custom" |
| 1026 | }, |
| 1027 | { |
| 1028 | "current": { |
| 1029 | "selected": false, |
| 1030 | "text": "", |
| 1031 | "value": "" |
| 1032 | }, |
| 1033 | "label": "LogQL Filter", |
| 1034 | "name": "filter", |
| 1035 | "query": "", |
| 1036 | "type": "textbox" |
| 1037 | } |
| 1038 | ] |
| 1039 | }, |
| 1040 | "time": { |
| 1041 | "from": "now-1h", |
| 1042 | "to": "now" |
| 1043 | }, |
| 1044 | "timepicker": { |
| 1045 | "refresh_intervals": [ |
| 1046 | "5s", |
| 1047 | "10s", |
| 1048 | "30s", |
| 1049 | "1m", |
| 1050 | "5m", |
| 1051 | "15m", |
| 1052 | "30m", |
| 1053 | "1h", |
| 1054 | "2h", |
| 1055 | "1d" |
| 1056 | ], |
| 1057 | "time_options": [ |
| 1058 | "5m", |
| 1059 | "15m", |
| 1060 | "1h", |
| 1061 | "6h", |
| 1062 | "12h", |
| 1063 | "24h", |
| 1064 | "2d", |
| 1065 | "7d", |
| 1066 | "30d" |
| 1067 | ] |
| 1068 | }, |
| 1069 | "timezone": "utc", |
| 1070 | "title": "Loki / Logs", |
| 1071 | "uid": "logs", |
| 1072 | "version": 0 |
| 1073 | } |