github.com/redhat-appstudio/release-service@v0.0.0-20240507045911-a8558ef3422a/config/grafana/dashboards/release_dashboard.json (about) 1 { 2 "annotations": { 3 "list": [ 4 { 5 "builtIn": 1, 6 "datasource": { 7 "type": "grafana", 8 "uid": "-- Grafana --" 9 }, 10 "enable": true, 11 "hide": true, 12 "iconColor": "rgba(0, 211, 255, 1)", 13 "name": "Annotations & Alerts", 14 "target": { 15 "limit": 100, 16 "matchAny": false, 17 "tags": [], 18 "type": "dashboard" 19 }, 20 "type": "dashboard" 21 } 22 ] 23 }, 24 "editable": true, 25 "fiscalYearStartMonth": 0, 26 "graphTooltip": 0, 27 "id": 16, 28 "links": [], 29 "liveNow": false, 30 "panels": [ 31 { 32 "datasource": { 33 "type": "prometheus", 34 "uid": "064f2b18-a714-4631-997b-1fe80bb695b5" 35 }, 36 "description": "", 37 "fieldConfig": { 38 "defaults": { 39 "color": { 40 "mode": "thresholds" 41 }, 42 "decimals": 0, 43 "mappings": [], 44 "thresholds": { 45 "mode": "absolute", 46 "steps": [ 47 { 48 "color": "green", 49 "value": null 50 } 51 ] 52 }, 53 "unit": "none" 54 }, 55 "overrides": [] 56 }, 57 "gridPos": { 58 "h": 3, 59 "w": 3, 60 "x": 0, 61 "y": 0 62 }, 63 "id": 10, 64 "options": { 65 "colorMode": "value", 66 "graphMode": "none", 67 "justifyMode": "auto", 68 "orientation": "auto", 69 "reduceOptions": { 70 "calcs": [ 71 "max" 72 ], 73 "fields": "", 74 "values": false 75 }, 76 "text": {}, 77 "textMode": "auto" 78 }, 79 "pluginVersion": "9.1.6", 80 "targets": [ 81 { 82 "datasource": { 83 "type": "prometheus", 84 "uid": "PF224BEF3374A25F8" 85 }, 86 "editorMode": "code", 87 "exemplar": false, 88 "expr": "sum by (namespace) (release_total)", 89 "instant": true, 90 "interval": "", 91 "legendFormat": "__auto", 92 "range": false, 93 "refId": "A" 94 } 95 ], 96 "title": "Total releases", 97 "type": "stat" 98 }, 99 { 100 "datasource": {}, 101 "description": "", 102 "fieldConfig": { 103 "defaults": { 104 "color": { 105 "mode": "continuous-RdYlGr" 106 }, 107 "decimals": 0, 108 "mappings": [], 109 "max": 1, 110 "min": 0, 111 "noValue": "0%", 112 "thresholds": { 113 "mode": "percentage", 114 "steps": [ 115 { 116 "color": "green", 117 "value": null 118 } 119 ] 120 }, 121 "unit": "percentunit" 122 }, 123 "overrides": [] 124 }, 125 "gridPos": { 126 "h": 3, 127 "w": 3, 128 "x": 3, 129 "y": 0 130 }, 131 "id": 11, 132 "options": { 133 "colorMode": "value", 134 "graphMode": "none", 135 "justifyMode": "auto", 136 "orientation": "auto", 137 "reduceOptions": { 138 "calcs": [ 139 "max" 140 ], 141 "fields": "", 142 "values": false 143 }, 144 "text": {}, 145 "textMode": "auto" 146 }, 147 "pluginVersion": "9.1.6", 148 "targets": [ 149 { 150 "datasource": { 151 "type": "prometheus", 152 "uid": "PF224BEF3374A25F8" 153 }, 154 "editorMode": "code", 155 "exemplar": false, 156 "expr": "sum by (namespace) (release_total{release_reason=\"Succeeded\"}) / sum by (namespace) (release_total)", 157 "instant": true, 158 "interval": "", 159 "legendFormat": "__auto", 160 "range": false, 161 "refId": "A" 162 } 163 ], 164 "title": "Successful releases", 165 "type": "stat" 166 }, 167 { 168 "datasource": {}, 169 "description": "", 170 "fieldConfig": { 171 "defaults": { 172 "color": { 173 "mode": "thresholds" 174 }, 175 "mappings": [], 176 "thresholds": { 177 "mode": "absolute", 178 "steps": [ 179 { 180 "color": "green", 181 "value": null 182 }, 183 { 184 "color": "red", 185 "value": 80 186 } 187 ] 188 } 189 }, 190 "overrides": [] 191 }, 192 "gridPos": { 193 "h": 3, 194 "w": 3, 195 "x": 6, 196 "y": 0 197 }, 198 "id": 2, 199 "options": { 200 "colorMode": "value", 201 "graphMode": "none", 202 "justifyMode": "auto", 203 "orientation": "auto", 204 "reduceOptions": { 205 "calcs": [ 206 "lastNotNull" 207 ], 208 "fields": "", 209 "values": false 210 }, 211 "text": {}, 212 "textMode": "auto" 213 }, 214 "pluginVersion": "9.1.6", 215 "targets": [ 216 { 217 "datasource": { 218 "type": "prometheus", 219 "uid": "PF224BEF3374A25F8" 220 }, 221 "editorMode": "code", 222 "exemplar": true, 223 "expr": "sum by (namespace) (release_concurrent_total)", 224 "interval": "", 225 "legendFormat": "__auto", 226 "range": true, 227 "refId": "A" 228 } 229 ], 230 "title": "Concurrent releases", 231 "type": "stat" 232 }, 233 { 234 "datasource": {}, 235 "description": "", 236 "fieldConfig": { 237 "defaults": { 238 "color": { 239 "mode": "thresholds" 240 }, 241 "mappings": [], 242 "thresholds": { 243 "mode": "absolute", 244 "steps": [ 245 { 246 "color": "green", 247 "value": null 248 }, 249 { 250 "color": "red", 251 "value": 80 252 } 253 ] 254 } 255 }, 256 "overrides": [] 257 }, 258 "gridPos": { 259 "h": 6, 260 "w": 9, 261 "x": 9, 262 "y": 0 263 }, 264 "id": 16, 265 "maxDataPoints": 25, 266 "options": { 267 "displayMode": "gradient", 268 "minVizHeight": 10, 269 "minVizWidth": 0, 270 "orientation": "auto", 271 "reduceOptions": { 272 "calcs": [ 273 "max" 274 ], 275 "fields": "", 276 "values": false 277 }, 278 "showUnfilled": true, 279 "text": {} 280 }, 281 "pluginVersion": "9.1.6", 282 "targets": [ 283 { 284 "datasource": { 285 "type": "prometheus", 286 "uid": "PF224BEF3374A25F8" 287 }, 288 "editorMode": "code", 289 "exemplar": false, 290 "expr": "sum by (namespace, release_reason, le) (release_duration_seconds_bucket{release_reason=\"Succeeded\"})", 291 "format": "heatmap", 292 "instant": false, 293 "interval": "", 294 "legendFormat": "{{le}}", 295 "range": true, 296 "refId": "A" 297 } 298 ], 299 "title": "Time to succeed", 300 "type": "bargauge" 301 }, 302 { 303 "datasource": {}, 304 "description": "", 305 "fieldConfig": { 306 "defaults": { 307 "color": { 308 "mode": "palette-classic" 309 }, 310 "custom": { 311 "axisCenteredZero": false, 312 "axisColorMode": "text", 313 "axisLabel": "", 314 "axisPlacement": "auto", 315 "barAlignment": 0, 316 "drawStyle": "line", 317 "fillOpacity": 0, 318 "gradientMode": "none", 319 "hideFrom": { 320 "graph": false, 321 "legend": false, 322 "tooltip": false, 323 "viz": false 324 }, 325 "lineInterpolation": "linear", 326 "lineWidth": 2, 327 "pointSize": 5, 328 "scaleDistribution": { 329 "type": "linear" 330 }, 331 "showPoints": "auto", 332 "spanNulls": true, 333 "stacking": { 334 "group": "A", 335 "mode": "none" 336 }, 337 "thresholdsStyle": { 338 "mode": "off" 339 } 340 }, 341 "mappings": [], 342 "thresholds": { 343 "mode": "absolute", 344 "steps": [ 345 { 346 "color": "green", 347 "value": null 348 } 349 ] 350 } 351 }, 352 "overrides": [ 353 { 354 "matcher": { 355 "id": "byName", 356 "options": "Error" 357 }, 358 "properties": [ 359 { 360 "id": "color", 361 "value": { 362 "fixedColor": "red", 363 "mode": "fixed" 364 } 365 } 366 ] 367 }, 368 { 369 "matcher": { 370 "id": "byName", 371 "options": "Requeue" 372 }, 373 "properties": [ 374 { 375 "id": "color", 376 "value": { 377 "fixedColor": "yellow", 378 "mode": "fixed" 379 } 380 } 381 ] 382 }, 383 { 384 "matcher": { 385 "id": "byName", 386 "options": "Requeue after" 387 }, 388 "properties": [ 389 { 390 "id": "color", 391 "value": { 392 "fixedColor": "purple", 393 "mode": "fixed" 394 } 395 } 396 ] 397 }, 398 { 399 "matcher": { 400 "id": "byName", 401 "options": "Success" 402 }, 403 "properties": [ 404 { 405 "id": "color", 406 "value": { 407 "fixedColor": "green", 408 "mode": "fixed" 409 } 410 } 411 ] 412 } 413 ] 414 }, 415 "gridPos": { 416 "h": 6, 417 "w": 6, 418 "x": 18, 419 "y": 0 420 }, 421 "id": 19, 422 "options": { 423 "legend": { 424 "calcs": [], 425 "displayMode": "list", 426 "placement": "bottom", 427 "showLegend": true 428 }, 429 "tooltip": { 430 "mode": "single", 431 "sort": "none" 432 } 433 }, 434 "pluginVersion": "9.1.6", 435 "targets": [ 436 { 437 "datasource": { 438 "type": "prometheus", 439 "uid": "PF224BEF3374A25F8" 440 }, 441 "editorMode": "code", 442 "expr": "sum(controller_runtime_reconcile_total{controller=\"release\",result=\"error\"})", 443 "hide": false, 444 "legendFormat": "Error", 445 "range": true, 446 "refId": "A" 447 }, 448 { 449 "datasource": { 450 "type": "prometheus", 451 "uid": "PF224BEF3374A25F8" 452 }, 453 "editorMode": "code", 454 "expr": "sum(controller_runtime_reconcile_total{controller=\"release\",result=\"requeue\"})", 455 "hide": false, 456 "legendFormat": "Requeue", 457 "range": true, 458 "refId": "B" 459 }, 460 { 461 "datasource": { 462 "type": "prometheus", 463 "uid": "PF224BEF3374A25F8" 464 }, 465 "editorMode": "code", 466 "expr": "sum(controller_runtime_reconcile_total{controller=\"release\",result=\"requeue_after\"})", 467 "hide": false, 468 "legendFormat": "Requeue after", 469 "range": true, 470 "refId": "C" 471 }, 472 { 473 "datasource": { 474 "type": "prometheus", 475 "uid": "PF224BEF3374A25F8" 476 }, 477 "editorMode": "code", 478 "expr": "sum(controller_runtime_reconcile_total{controller=\"release\",result=\"success\"})", 479 "legendFormat": "Success", 480 "range": true, 481 "refId": "D" 482 } 483 ], 484 "title": "Total number of reconciles by type", 485 "type": "timeseries" 486 }, 487 { 488 "datasource": {}, 489 "description": "", 490 "fieldConfig": { 491 "defaults": { 492 "color": { 493 "fixedColor": "red", 494 "mode": "fixed" 495 }, 496 "decimals": 0, 497 "mappings": [], 498 "min": 0, 499 "thresholds": { 500 "mode": "absolute", 501 "steps": [ 502 { 503 "color": "semi-dark-red", 504 "value": null 505 } 506 ] 507 }, 508 "unit": "none" 509 }, 510 "overrides": [] 511 }, 512 "gridPos": { 513 "h": 3, 514 "w": 3, 515 "x": 0, 516 "y": 3 517 }, 518 "id": 12, 519 "options": { 520 "colorMode": "value", 521 "graphMode": "none", 522 "justifyMode": "center", 523 "orientation": "auto", 524 "reduceOptions": { 525 "calcs": [ 526 "max" 527 ], 528 "fields": "", 529 "values": false 530 }, 531 "text": {}, 532 "textMode": "auto" 533 }, 534 "pluginVersion": "9.1.6", 535 "targets": [ 536 { 537 "datasource": { 538 "type": "prometheus", 539 "uid": "PF224BEF3374A25F8" 540 }, 541 "editorMode": "code", 542 "exemplar": false, 543 "expr": "sum by (namespace) (release_total{release_reason=\"Failed\"})", 544 "instant": true, 545 "interval": "", 546 "legendFormat": "__auto", 547 "range": false, 548 "refId": "A" 549 } 550 ], 551 "title": "Failed releases", 552 "type": "stat" 553 }, 554 { 555 "datasource": {}, 556 "description": "", 557 "fieldConfig": { 558 "defaults": { 559 "color": { 560 "fixedColor": "orange", 561 "mode": "thresholds" 562 }, 563 "decimals": 0, 564 "mappings": [], 565 "min": 0, 566 "noValue": "0", 567 "thresholds": { 568 "mode": "absolute", 569 "steps": [ 570 { 571 "color": "semi-dark-red", 572 "value": null 573 } 574 ] 575 }, 576 "unit": "none" 577 }, 578 "overrides": [] 579 }, 580 "gridPos": { 581 "h": 3, 582 "w": 3, 583 "x": 6, 584 "y": 3 585 }, 586 "id": 14, 587 "options": { 588 "colorMode": "value", 589 "graphMode": "none", 590 "justifyMode": "auto", 591 "orientation": "auto", 592 "reduceOptions": { 593 "calcs": [ 594 "max" 595 ], 596 "fields": "", 597 "values": false 598 }, 599 "text": {}, 600 "textMode": "auto" 601 }, 602 "pluginVersion": "9.1.6", 603 "targets": [ 604 { 605 "datasource": { 606 "type": "prometheus", 607 "uid": "PF224BEF3374A25F8" 608 }, 609 "editorMode": "code", 610 "exemplar": false, 611 "expr": "sum by (namespace) (release_total{validation_reason=\"Failed\"})", 612 "instant": true, 613 "interval": "", 614 "legendFormat": "__auto", 615 "range": false, 616 "refId": "A" 617 } 618 ], 619 "title": "Invalid releases", 620 "type": "stat" 621 }, 622 { 623 "datasource": { 624 "type": "prometheus", 625 "uid": "064f2b18-a714-4631-997b-1fe80bb695b5" 626 }, 627 "fieldConfig": { 628 "defaults": { 629 "color": { 630 "mode": "palette-classic" 631 }, 632 "custom": { 633 "axisCenteredZero": false, 634 "axisColorMode": "text", 635 "axisLabel": "", 636 "axisPlacement": "auto", 637 "barAlignment": 0, 638 "drawStyle": "line", 639 "fillOpacity": 0, 640 "gradientMode": "none", 641 "hideFrom": { 642 "legend": false, 643 "tooltip": false, 644 "viz": false 645 }, 646 "lineInterpolation": "linear", 647 "lineWidth": 1, 648 "pointSize": 5, 649 "scaleDistribution": { 650 "type": "linear" 651 }, 652 "showPoints": "auto", 653 "spanNulls": false, 654 "stacking": { 655 "group": "A", 656 "mode": "none" 657 }, 658 "thresholdsStyle": { 659 "mode": "off" 660 } 661 }, 662 "mappings": [], 663 "thresholds": { 664 "mode": "absolute", 665 "steps": [ 666 { 667 "color": "green", 668 "value": null 669 }, 670 { 671 "color": "red", 672 "value": 80 673 } 674 ] 675 } 676 }, 677 "overrides": [ 678 { 679 "matcher": { 680 "id": "byName", 681 "options": "Failed" 682 }, 683 "properties": [ 684 { 685 "id": "color", 686 "value": { 687 "fixedColor": "red", 688 "mode": "fixed" 689 } 690 } 691 ] 692 }, 693 { 694 "matcher": { 695 "id": "byName", 696 "options": "Succeeded" 697 }, 698 "properties": [ 699 { 700 "id": "color", 701 "value": { 702 "fixedColor": "green", 703 "mode": "fixed" 704 } 705 } 706 ] 707 } 708 ] 709 }, 710 "gridPos": { 711 "h": 8, 712 "w": 9, 713 "x": 0, 714 "y": 6 715 }, 716 "id": 25, 717 "options": { 718 "legend": { 719 "calcs": [], 720 "displayMode": "list", 721 "placement": "bottom", 722 "showLegend": true 723 }, 724 "tooltip": { 725 "mode": "single", 726 "sort": "none" 727 } 728 }, 729 "targets": [ 730 { 731 "datasource": { 732 "type": "prometheus", 733 "uid": "064f2b18-a714-4631-997b-1fe80bb695b5" 734 }, 735 "editorMode": "code", 736 "expr": "sum by (namespace, release_reason) (rate(release_total{release_reason=~\"Failed|Succeeded\"}[$__rate_interval]))", 737 "legendFormat": "{{release_reason}}", 738 "range": true, 739 "refId": "A" 740 } 741 ], 742 "title": "Releases", 743 "type": "timeseries" 744 }, 745 { 746 "datasource": {}, 747 "description": "", 748 "fieldConfig": { 749 "defaults": { 750 "color": { 751 "mode": "thresholds" 752 }, 753 "mappings": [], 754 "thresholds": { 755 "mode": "absolute", 756 "steps": [ 757 { 758 "color": "green", 759 "value": null 760 }, 761 { 762 "color": "red", 763 "value": 80 764 } 765 ] 766 } 767 }, 768 "overrides": [] 769 }, 770 "gridPos": { 771 "h": 6, 772 "w": 9, 773 "x": 9, 774 "y": 6 775 }, 776 "id": 15, 777 "maxDataPoints": 25, 778 "options": { 779 "displayMode": "gradient", 780 "minVizHeight": 10, 781 "minVizWidth": 0, 782 "orientation": "auto", 783 "reduceOptions": { 784 "calcs": [ 785 "max" 786 ], 787 "fields": "", 788 "values": false 789 }, 790 "showUnfilled": true, 791 "text": {} 792 }, 793 "pluginVersion": "9.1.6", 794 "targets": [ 795 { 796 "datasource": { 797 "type": "prometheus", 798 "uid": "PF224BEF3374A25F8" 799 }, 800 "editorMode": "code", 801 "exemplar": false, 802 "expr": "sum by(namespace, release_reason, le) (release_duration_seconds_bucket{release_reason=\"Failed\"})", 803 "format": "heatmap", 804 "instant": false, 805 "interval": "", 806 "legendFormat": "{{le}}", 807 "range": true, 808 "refId": "A" 809 } 810 ], 811 "title": "Time to fail", 812 "type": "bargauge" 813 }, 814 { 815 "datasource": {}, 816 "fieldConfig": { 817 "defaults": { 818 "color": { 819 "mode": "palette-classic" 820 }, 821 "custom": { 822 "axisCenteredZero": false, 823 "axisColorMode": "text", 824 "axisLabel": "", 825 "axisPlacement": "auto", 826 "barAlignment": 0, 827 "drawStyle": "line", 828 "fillOpacity": 0, 829 "gradientMode": "none", 830 "hideFrom": { 831 "graph": false, 832 "legend": false, 833 "tooltip": false, 834 "viz": false 835 }, 836 "lineInterpolation": "linear", 837 "lineStyle": { 838 "fill": "solid" 839 }, 840 "lineWidth": 2, 841 "pointSize": 5, 842 "scaleDistribution": { 843 "type": "linear" 844 }, 845 "showPoints": "auto", 846 "spanNulls": true, 847 "stacking": { 848 "group": "A", 849 "mode": "none" 850 }, 851 "thresholdsStyle": { 852 "mode": "off" 853 } 854 }, 855 "decimals": 0, 856 "mappings": [], 857 "thresholds": { 858 "mode": "absolute", 859 "steps": [ 860 { 861 "color": "green", 862 "value": null 863 }, 864 { 865 "color": "red", 866 "value": 80 867 } 868 ] 869 } 870 }, 871 "overrides": [] 872 }, 873 "gridPos": { 874 "h": 6, 875 "w": 6, 876 "x": 18, 877 "y": 6 878 }, 879 "id": 18, 880 "options": { 881 "legend": { 882 "calcs": [], 883 "displayMode": "list", 884 "placement": "bottom", 885 "showLegend": false 886 }, 887 "tooltip": { 888 "mode": "single", 889 "sort": "none" 890 } 891 }, 892 "targets": [ 893 { 894 "datasource": { 895 "type": "prometheus", 896 "uid": "PF224BEF3374A25F8" 897 }, 898 "editorMode": "code", 899 "exemplar": true, 900 "expr": "sum(workqueue_retries_total{name=\"release\"})", 901 "interval": "", 902 "legendFormat": "__auto", 903 "range": true, 904 "refId": "A" 905 } 906 ], 907 "title": "Workqueue retries", 908 "type": "timeseries" 909 } 910 ], 911 "refresh": "1m", 912 "schemaVersion": 37, 913 "style": "dark", 914 "tags": [], 915 "templating": { 916 "list": [] 917 }, 918 "time": { 919 "from": "now-7d", 920 "to": "now" 921 }, 922 "timepicker": {}, 923 "timezone": "", 924 "title": "Release Service", 925 "uid": "b065ed16540677415b31adb8574bb4d9aa9f74e3", 926 "version": 1, 927 "weekStart": "" 928 }