github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/grafana/dashboards-1.14/prometheus-remote-write.yaml (about) 1 {{- /* 2 Generated from 'prometheus-remote-write' from https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/main/manifests/grafana-dashboardDefinitions.yaml 3 Do not change in-place! In order to change this file first read following link: 4 https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/hack 5 */ -}} 6 {{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }} 7 {{- if and (or .Values.grafana.enabled .Values.grafana.forceDeployDashboards) (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.defaultDashboardsEnabled .Values.prometheus.prometheusSpec.remoteWriteDashboards }} 8 apiVersion: v1 9 kind: ConfigMap 10 metadata: 11 namespace: {{ template "kube-prometheus-stack-grafana.namespace" . }} 12 name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) "prometheus-remote-write" | trunc 63 | trimSuffix "-" }} 13 annotations: 14 {{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }} 15 labels: 16 {{- if $.Values.grafana.sidecar.dashboards.label }} 17 {{ $.Values.grafana.sidecar.dashboards.label }}: {{ ternary $.Values.grafana.sidecar.dashboards.labelValue "1" (not (empty $.Values.grafana.sidecar.dashboards.labelValue)) | quote }} 18 {{- end }} 19 app: {{ template "kube-prometheus-stack.name" $ }}-grafana 20 {{ include "kube-prometheus-stack.labels" $ | indent 4 }} 21 data: 22 prometheus-remote-write.json: |- 23 { 24 "__inputs": [ 25 26 ], 27 "__requires": [ 28 29 ], 30 "annotations": { 31 "list": [ 32 33 ] 34 }, 35 "editable": true, 36 "gnetId": null, 37 "graphTooltip": 0, 38 "hideControls": false, 39 "id": null, 40 "links": [ 41 42 ], 43 "refresh": "60s", 44 "rows": [ 45 { 46 "collapse": false, 47 "collapsed": false, 48 "panels": [ 49 { 50 "aliasColors": { 51 52 }, 53 "bars": false, 54 "dashLength": 10, 55 "dashes": false, 56 "datasource": "$datasource", 57 "fill": 1, 58 "fillGradient": 0, 59 "gridPos": { 60 61 }, 62 "id": 2, 63 "legend": { 64 "alignAsTable": false, 65 "avg": false, 66 "current": false, 67 "max": false, 68 "min": false, 69 "rightSide": false, 70 "show": true, 71 "sideWidth": null, 72 "total": false, 73 "values": false 74 }, 75 "lines": true, 76 "linewidth": 1, 77 "links": [ 78 79 ], 80 "nullPointMode": "null", 81 "percentage": false, 82 "pointradius": 5, 83 "points": false, 84 "renderer": "flot", 85 "repeat": null, 86 "seriesOverrides": [ 87 88 ], 89 "spaceLength": 10, 90 "span": 6, 91 "stack": false, 92 "steppedLine": false, 93 "targets": [ 94 { 95 "expr": "(\n prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~\"$cluster\", instance=~\"$instance\"} \n- \n ignoring(remote_name, url) group_right(instance) (prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~\"$cluster\", instance=~\"$instance\"} != 0)\n)\n", 96 "format": "time_series", 97 "intervalFactor": 2, 98 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 99 "refId": "A" 100 } 101 ], 102 "thresholds": [ 103 104 ], 105 "timeFrom": null, 106 "timeShift": null, 107 "title": "Highest Timestamp In vs. Highest Timestamp Sent", 108 "tooltip": { 109 "shared": true, 110 "sort": 0, 111 "value_type": "individual" 112 }, 113 "type": "graph", 114 "xaxis": { 115 "buckets": null, 116 "mode": "time", 117 "name": null, 118 "show": true, 119 "values": [ 120 121 ] 122 }, 123 "yaxes": [ 124 { 125 "format": "short", 126 "label": null, 127 "logBase": 1, 128 "max": null, 129 "min": null, 130 "show": true 131 }, 132 { 133 "format": "short", 134 "label": null, 135 "logBase": 1, 136 "max": null, 137 "min": null, 138 "show": true 139 } 140 ] 141 }, 142 { 143 "aliasColors": { 144 145 }, 146 "bars": false, 147 "dashLength": 10, 148 "dashes": false, 149 "datasource": "$datasource", 150 "fill": 1, 151 "fillGradient": 0, 152 "gridPos": { 153 154 }, 155 "id": 3, 156 "legend": { 157 "alignAsTable": false, 158 "avg": false, 159 "current": false, 160 "max": false, 161 "min": false, 162 "rightSide": false, 163 "show": true, 164 "sideWidth": null, 165 "total": false, 166 "values": false 167 }, 168 "lines": true, 169 "linewidth": 1, 170 "links": [ 171 172 ], 173 "nullPointMode": "null", 174 "percentage": false, 175 "pointradius": 5, 176 "points": false, 177 "renderer": "flot", 178 "repeat": null, 179 "seriesOverrides": [ 180 181 ], 182 "spaceLength": 10, 183 "span": 6, 184 "stack": false, 185 "steppedLine": false, 186 "targets": [ 187 { 188 "expr": "clamp_min(\n rate(prometheus_remote_storage_highest_timestamp_in_seconds{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]) \n- \n ignoring (remote_name, url) group_right(instance) rate(prometheus_remote_storage_queue_highest_sent_timestamp_seconds{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])\n, 0)\n", 189 "format": "time_series", 190 "intervalFactor": 2, 191 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 192 "refId": "A" 193 } 194 ], 195 "thresholds": [ 196 197 ], 198 "timeFrom": null, 199 "timeShift": null, 200 "title": "Rate[5m]", 201 "tooltip": { 202 "shared": true, 203 "sort": 0, 204 "value_type": "individual" 205 }, 206 "type": "graph", 207 "xaxis": { 208 "buckets": null, 209 "mode": "time", 210 "name": null, 211 "show": true, 212 "values": [ 213 214 ] 215 }, 216 "yaxes": [ 217 { 218 "format": "short", 219 "label": null, 220 "logBase": 1, 221 "max": null, 222 "min": null, 223 "show": true 224 }, 225 { 226 "format": "short", 227 "label": null, 228 "logBase": 1, 229 "max": null, 230 "min": null, 231 "show": true 232 } 233 ] 234 } 235 ], 236 "repeat": null, 237 "repeatIteration": null, 238 "repeatRowId": null, 239 "showTitle": true, 240 "title": "Timestamps", 241 "titleSize": "h6", 242 "type": "row" 243 }, 244 { 245 "collapse": false, 246 "collapsed": false, 247 "panels": [ 248 { 249 "aliasColors": { 250 251 }, 252 "bars": false, 253 "dashLength": 10, 254 "dashes": false, 255 "datasource": "$datasource", 256 "fill": 1, 257 "fillGradient": 0, 258 "gridPos": { 259 260 }, 261 "id": 4, 262 "legend": { 263 "alignAsTable": false, 264 "avg": false, 265 "current": false, 266 "max": false, 267 "min": false, 268 "rightSide": false, 269 "show": true, 270 "sideWidth": null, 271 "total": false, 272 "values": false 273 }, 274 "lines": true, 275 "linewidth": 1, 276 "links": [ 277 278 ], 279 "nullPointMode": "null", 280 "percentage": false, 281 "pointradius": 5, 282 "points": false, 283 "renderer": "flot", 284 "repeat": null, 285 "seriesOverrides": [ 286 287 ], 288 "spaceLength": 10, 289 "span": 12, 290 "stack": false, 291 "steppedLine": false, 292 "targets": [ 293 { 294 "expr": "rate(\n prometheus_remote_storage_samples_in_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])\n- \n ignoring(remote_name, url) group_right(instance) (rate(prometheus_remote_storage_succeeded_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]) or rate(prometheus_remote_storage_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]))\n- \n (rate(prometheus_remote_storage_dropped_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]) or rate(prometheus_remote_storage_samples_dropped_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]))\n", 295 "format": "time_series", 296 "intervalFactor": 2, 297 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 298 "refId": "A" 299 } 300 ], 301 "thresholds": [ 302 303 ], 304 "timeFrom": null, 305 "timeShift": null, 306 "title": "Rate, in vs. succeeded or dropped [5m]", 307 "tooltip": { 308 "shared": true, 309 "sort": 0, 310 "value_type": "individual" 311 }, 312 "type": "graph", 313 "xaxis": { 314 "buckets": null, 315 "mode": "time", 316 "name": null, 317 "show": true, 318 "values": [ 319 320 ] 321 }, 322 "yaxes": [ 323 { 324 "format": "short", 325 "label": null, 326 "logBase": 1, 327 "max": null, 328 "min": null, 329 "show": true 330 }, 331 { 332 "format": "short", 333 "label": null, 334 "logBase": 1, 335 "max": null, 336 "min": null, 337 "show": true 338 } 339 ] 340 } 341 ], 342 "repeat": null, 343 "repeatIteration": null, 344 "repeatRowId": null, 345 "showTitle": true, 346 "title": "Samples", 347 "titleSize": "h6", 348 "type": "row" 349 }, 350 { 351 "collapse": false, 352 "collapsed": false, 353 "panels": [ 354 { 355 "aliasColors": { 356 357 }, 358 "bars": false, 359 "dashLength": 10, 360 "dashes": false, 361 "datasource": "$datasource", 362 "fill": 1, 363 "fillGradient": 0, 364 "gridPos": { 365 366 }, 367 "id": 5, 368 "legend": { 369 "alignAsTable": false, 370 "avg": false, 371 "current": false, 372 "max": false, 373 "min": false, 374 "rightSide": false, 375 "show": true, 376 "sideWidth": null, 377 "total": false, 378 "values": false 379 }, 380 "lines": true, 381 "linewidth": 1, 382 "links": [ 383 384 ], 385 "minSpan": 6, 386 "nullPointMode": "null", 387 "percentage": false, 388 "pointradius": 5, 389 "points": false, 390 "renderer": "flot", 391 "repeat": null, 392 "seriesOverrides": [ 393 394 ], 395 "spaceLength": 10, 396 "span": 12, 397 "stack": false, 398 "steppedLine": false, 399 "targets": [ 400 { 401 "expr": "prometheus_remote_storage_shards{cluster=~\"$cluster\", instance=~\"$instance\"}", 402 "format": "time_series", 403 "intervalFactor": 2, 404 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 405 "refId": "A" 406 } 407 ], 408 "thresholds": [ 409 410 ], 411 "timeFrom": null, 412 "timeShift": null, 413 "title": "Current Shards", 414 "tooltip": { 415 "shared": true, 416 "sort": 0, 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 ] 428 }, 429 "yaxes": [ 430 { 431 "format": "short", 432 "label": null, 433 "logBase": 1, 434 "max": null, 435 "min": null, 436 "show": true 437 }, 438 { 439 "format": "short", 440 "label": null, 441 "logBase": 1, 442 "max": null, 443 "min": null, 444 "show": true 445 } 446 ] 447 }, 448 { 449 "aliasColors": { 450 451 }, 452 "bars": false, 453 "dashLength": 10, 454 "dashes": false, 455 "datasource": "$datasource", 456 "fill": 1, 457 "fillGradient": 0, 458 "gridPos": { 459 460 }, 461 "id": 6, 462 "legend": { 463 "alignAsTable": false, 464 "avg": false, 465 "current": false, 466 "max": false, 467 "min": false, 468 "rightSide": false, 469 "show": true, 470 "sideWidth": null, 471 "total": false, 472 "values": false 473 }, 474 "lines": true, 475 "linewidth": 1, 476 "links": [ 477 478 ], 479 "nullPointMode": "null", 480 "percentage": false, 481 "pointradius": 5, 482 "points": false, 483 "renderer": "flot", 484 "repeat": null, 485 "seriesOverrides": [ 486 487 ], 488 "spaceLength": 10, 489 "span": 4, 490 "stack": false, 491 "steppedLine": false, 492 "targets": [ 493 { 494 "expr": "prometheus_remote_storage_shards_max{cluster=~\"$cluster\", instance=~\"$instance\"}", 495 "format": "time_series", 496 "intervalFactor": 2, 497 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 498 "refId": "A" 499 } 500 ], 501 "thresholds": [ 502 503 ], 504 "timeFrom": null, 505 "timeShift": null, 506 "title": "Max Shards", 507 "tooltip": { 508 "shared": true, 509 "sort": 0, 510 "value_type": "individual" 511 }, 512 "type": "graph", 513 "xaxis": { 514 "buckets": null, 515 "mode": "time", 516 "name": null, 517 "show": true, 518 "values": [ 519 520 ] 521 }, 522 "yaxes": [ 523 { 524 "format": "short", 525 "label": null, 526 "logBase": 1, 527 "max": null, 528 "min": null, 529 "show": true 530 }, 531 { 532 "format": "short", 533 "label": null, 534 "logBase": 1, 535 "max": null, 536 "min": null, 537 "show": true 538 } 539 ] 540 }, 541 { 542 "aliasColors": { 543 544 }, 545 "bars": false, 546 "dashLength": 10, 547 "dashes": false, 548 "datasource": "$datasource", 549 "fill": 1, 550 "fillGradient": 0, 551 "gridPos": { 552 553 }, 554 "id": 7, 555 "legend": { 556 "alignAsTable": false, 557 "avg": false, 558 "current": false, 559 "max": false, 560 "min": false, 561 "rightSide": false, 562 "show": true, 563 "sideWidth": null, 564 "total": false, 565 "values": false 566 }, 567 "lines": true, 568 "linewidth": 1, 569 "links": [ 570 571 ], 572 "nullPointMode": "null", 573 "percentage": false, 574 "pointradius": 5, 575 "points": false, 576 "renderer": "flot", 577 "repeat": null, 578 "seriesOverrides": [ 579 580 ], 581 "spaceLength": 10, 582 "span": 4, 583 "stack": false, 584 "steppedLine": false, 585 "targets": [ 586 { 587 "expr": "prometheus_remote_storage_shards_min{cluster=~\"$cluster\", instance=~\"$instance\"}", 588 "format": "time_series", 589 "intervalFactor": 2, 590 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 591 "refId": "A" 592 } 593 ], 594 "thresholds": [ 595 596 ], 597 "timeFrom": null, 598 "timeShift": null, 599 "title": "Min Shards", 600 "tooltip": { 601 "shared": true, 602 "sort": 0, 603 "value_type": "individual" 604 }, 605 "type": "graph", 606 "xaxis": { 607 "buckets": null, 608 "mode": "time", 609 "name": null, 610 "show": true, 611 "values": [ 612 613 ] 614 }, 615 "yaxes": [ 616 { 617 "format": "short", 618 "label": null, 619 "logBase": 1, 620 "max": null, 621 "min": null, 622 "show": true 623 }, 624 { 625 "format": "short", 626 "label": null, 627 "logBase": 1, 628 "max": null, 629 "min": null, 630 "show": true 631 } 632 ] 633 }, 634 { 635 "aliasColors": { 636 637 }, 638 "bars": false, 639 "dashLength": 10, 640 "dashes": false, 641 "datasource": "$datasource", 642 "fill": 1, 643 "fillGradient": 0, 644 "gridPos": { 645 646 }, 647 "id": 8, 648 "legend": { 649 "alignAsTable": false, 650 "avg": false, 651 "current": false, 652 "max": false, 653 "min": false, 654 "rightSide": false, 655 "show": true, 656 "sideWidth": null, 657 "total": false, 658 "values": false 659 }, 660 "lines": true, 661 "linewidth": 1, 662 "links": [ 663 664 ], 665 "nullPointMode": "null", 666 "percentage": false, 667 "pointradius": 5, 668 "points": false, 669 "renderer": "flot", 670 "repeat": null, 671 "seriesOverrides": [ 672 673 ], 674 "spaceLength": 10, 675 "span": 4, 676 "stack": false, 677 "steppedLine": false, 678 "targets": [ 679 { 680 "expr": "prometheus_remote_storage_shards_desired{cluster=~\"$cluster\", instance=~\"$instance\"}", 681 "format": "time_series", 682 "intervalFactor": 2, 683 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 684 "refId": "A" 685 } 686 ], 687 "thresholds": [ 688 689 ], 690 "timeFrom": null, 691 "timeShift": null, 692 "title": "Desired Shards", 693 "tooltip": { 694 "shared": true, 695 "sort": 0, 696 "value_type": "individual" 697 }, 698 "type": "graph", 699 "xaxis": { 700 "buckets": null, 701 "mode": "time", 702 "name": null, 703 "show": true, 704 "values": [ 705 706 ] 707 }, 708 "yaxes": [ 709 { 710 "format": "short", 711 "label": null, 712 "logBase": 1, 713 "max": null, 714 "min": null, 715 "show": true 716 }, 717 { 718 "format": "short", 719 "label": null, 720 "logBase": 1, 721 "max": null, 722 "min": null, 723 "show": true 724 } 725 ] 726 } 727 ], 728 "repeat": null, 729 "repeatIteration": null, 730 "repeatRowId": null, 731 "showTitle": true, 732 "title": "Shards", 733 "titleSize": "h6", 734 "type": "row" 735 }, 736 { 737 "collapse": false, 738 "collapsed": false, 739 "panels": [ 740 { 741 "aliasColors": { 742 743 }, 744 "bars": false, 745 "dashLength": 10, 746 "dashes": false, 747 "datasource": "$datasource", 748 "fill": 1, 749 "fillGradient": 0, 750 "gridPos": { 751 752 }, 753 "id": 9, 754 "legend": { 755 "alignAsTable": false, 756 "avg": false, 757 "current": false, 758 "max": false, 759 "min": false, 760 "rightSide": false, 761 "show": true, 762 "sideWidth": null, 763 "total": false, 764 "values": false 765 }, 766 "lines": true, 767 "linewidth": 1, 768 "links": [ 769 770 ], 771 "nullPointMode": "null", 772 "percentage": false, 773 "pointradius": 5, 774 "points": false, 775 "renderer": "flot", 776 "repeat": null, 777 "seriesOverrides": [ 778 779 ], 780 "spaceLength": 10, 781 "span": 6, 782 "stack": false, 783 "steppedLine": false, 784 "targets": [ 785 { 786 "expr": "prometheus_remote_storage_shard_capacity{cluster=~\"$cluster\", instance=~\"$instance\"}", 787 "format": "time_series", 788 "intervalFactor": 2, 789 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 790 "refId": "A" 791 } 792 ], 793 "thresholds": [ 794 795 ], 796 "timeFrom": null, 797 "timeShift": null, 798 "title": "Shard Capacity", 799 "tooltip": { 800 "shared": true, 801 "sort": 0, 802 "value_type": "individual" 803 }, 804 "type": "graph", 805 "xaxis": { 806 "buckets": null, 807 "mode": "time", 808 "name": null, 809 "show": true, 810 "values": [ 811 812 ] 813 }, 814 "yaxes": [ 815 { 816 "format": "short", 817 "label": null, 818 "logBase": 1, 819 "max": null, 820 "min": null, 821 "show": true 822 }, 823 { 824 "format": "short", 825 "label": null, 826 "logBase": 1, 827 "max": null, 828 "min": null, 829 "show": true 830 } 831 ] 832 }, 833 { 834 "aliasColors": { 835 836 }, 837 "bars": false, 838 "dashLength": 10, 839 "dashes": false, 840 "datasource": "$datasource", 841 "fill": 1, 842 "fillGradient": 0, 843 "gridPos": { 844 845 }, 846 "id": 10, 847 "legend": { 848 "alignAsTable": false, 849 "avg": false, 850 "current": false, 851 "max": false, 852 "min": false, 853 "rightSide": false, 854 "show": true, 855 "sideWidth": null, 856 "total": false, 857 "values": false 858 }, 859 "lines": true, 860 "linewidth": 1, 861 "links": [ 862 863 ], 864 "nullPointMode": "null", 865 "percentage": false, 866 "pointradius": 5, 867 "points": false, 868 "renderer": "flot", 869 "repeat": null, 870 "seriesOverrides": [ 871 872 ], 873 "spaceLength": 10, 874 "span": 6, 875 "stack": false, 876 "steppedLine": false, 877 "targets": [ 878 { 879 "expr": "prometheus_remote_storage_pending_samples{cluster=~\"$cluster\", instance=~\"$instance\"} or prometheus_remote_storage_samples_pending{cluster=~\"$cluster\", instance=~\"$instance\"}", 880 "format": "time_series", 881 "intervalFactor": 2, 882 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 883 "refId": "A" 884 } 885 ], 886 "thresholds": [ 887 888 ], 889 "timeFrom": null, 890 "timeShift": null, 891 "title": "Pending Samples", 892 "tooltip": { 893 "shared": true, 894 "sort": 0, 895 "value_type": "individual" 896 }, 897 "type": "graph", 898 "xaxis": { 899 "buckets": null, 900 "mode": "time", 901 "name": null, 902 "show": true, 903 "values": [ 904 905 ] 906 }, 907 "yaxes": [ 908 { 909 "format": "short", 910 "label": null, 911 "logBase": 1, 912 "max": null, 913 "min": null, 914 "show": true 915 }, 916 { 917 "format": "short", 918 "label": null, 919 "logBase": 1, 920 "max": null, 921 "min": null, 922 "show": true 923 } 924 ] 925 } 926 ], 927 "repeat": null, 928 "repeatIteration": null, 929 "repeatRowId": null, 930 "showTitle": true, 931 "title": "Shard Details", 932 "titleSize": "h6", 933 "type": "row" 934 }, 935 { 936 "collapse": false, 937 "collapsed": false, 938 "panels": [ 939 { 940 "aliasColors": { 941 942 }, 943 "bars": false, 944 "dashLength": 10, 945 "dashes": false, 946 "datasource": "$datasource", 947 "fill": 1, 948 "fillGradient": 0, 949 "gridPos": { 950 951 }, 952 "id": 11, 953 "legend": { 954 "alignAsTable": false, 955 "avg": false, 956 "current": false, 957 "max": false, 958 "min": false, 959 "rightSide": false, 960 "show": true, 961 "sideWidth": null, 962 "total": false, 963 "values": false 964 }, 965 "lines": true, 966 "linewidth": 1, 967 "links": [ 968 969 ], 970 "nullPointMode": "null", 971 "percentage": false, 972 "pointradius": 5, 973 "points": false, 974 "renderer": "flot", 975 "repeat": null, 976 "seriesOverrides": [ 977 978 ], 979 "spaceLength": 10, 980 "span": 6, 981 "stack": false, 982 "steppedLine": false, 983 "targets": [ 984 { 985 "expr": "prometheus_tsdb_wal_segment_current{cluster=~\"$cluster\", instance=~\"$instance\"}", 986 "format": "time_series", 987 "intervalFactor": 2, 988 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}}", 989 "refId": "A" 990 } 991 ], 992 "thresholds": [ 993 994 ], 995 "timeFrom": null, 996 "timeShift": null, 997 "title": "TSDB Current Segment", 998 "tooltip": { 999 "shared": true, 1000 "sort": 0, 1001 "value_type": "individual" 1002 }, 1003 "type": "graph", 1004 "xaxis": { 1005 "buckets": null, 1006 "mode": "time", 1007 "name": null, 1008 "show": true, 1009 "values": [ 1010 1011 ] 1012 }, 1013 "yaxes": [ 1014 { 1015 "format": "none", 1016 "label": null, 1017 "logBase": 1, 1018 "max": null, 1019 "min": null, 1020 "show": true 1021 }, 1022 { 1023 "format": "short", 1024 "label": null, 1025 "logBase": 1, 1026 "max": null, 1027 "min": null, 1028 "show": true 1029 } 1030 ] 1031 }, 1032 { 1033 "aliasColors": { 1034 1035 }, 1036 "bars": false, 1037 "dashLength": 10, 1038 "dashes": false, 1039 "datasource": "$datasource", 1040 "fill": 1, 1041 "fillGradient": 0, 1042 "gridPos": { 1043 1044 }, 1045 "id": 12, 1046 "legend": { 1047 "alignAsTable": false, 1048 "avg": false, 1049 "current": false, 1050 "max": false, 1051 "min": false, 1052 "rightSide": false, 1053 "show": true, 1054 "sideWidth": null, 1055 "total": false, 1056 "values": false 1057 }, 1058 "lines": true, 1059 "linewidth": 1, 1060 "links": [ 1061 1062 ], 1063 "nullPointMode": "null", 1064 "percentage": false, 1065 "pointradius": 5, 1066 "points": false, 1067 "renderer": "flot", 1068 "repeat": null, 1069 "seriesOverrides": [ 1070 1071 ], 1072 "spaceLength": 10, 1073 "span": 6, 1074 "stack": false, 1075 "steppedLine": false, 1076 "targets": [ 1077 { 1078 "expr": "prometheus_wal_watcher_current_segment{cluster=~\"$cluster\", instance=~\"$instance\"}", 1079 "format": "time_series", 1080 "intervalFactor": 2, 1081 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}consumer{{`}}`}}", 1082 "refId": "A" 1083 } 1084 ], 1085 "thresholds": [ 1086 1087 ], 1088 "timeFrom": null, 1089 "timeShift": null, 1090 "title": "Remote Write Current Segment", 1091 "tooltip": { 1092 "shared": true, 1093 "sort": 0, 1094 "value_type": "individual" 1095 }, 1096 "type": "graph", 1097 "xaxis": { 1098 "buckets": null, 1099 "mode": "time", 1100 "name": null, 1101 "show": true, 1102 "values": [ 1103 1104 ] 1105 }, 1106 "yaxes": [ 1107 { 1108 "format": "none", 1109 "label": null, 1110 "logBase": 1, 1111 "max": null, 1112 "min": null, 1113 "show": true 1114 }, 1115 { 1116 "format": "short", 1117 "label": null, 1118 "logBase": 1, 1119 "max": null, 1120 "min": null, 1121 "show": true 1122 } 1123 ] 1124 } 1125 ], 1126 "repeat": null, 1127 "repeatIteration": null, 1128 "repeatRowId": null, 1129 "showTitle": true, 1130 "title": "Segments", 1131 "titleSize": "h6", 1132 "type": "row" 1133 }, 1134 { 1135 "collapse": false, 1136 "collapsed": false, 1137 "panels": [ 1138 { 1139 "aliasColors": { 1140 1141 }, 1142 "bars": false, 1143 "dashLength": 10, 1144 "dashes": false, 1145 "datasource": "$datasource", 1146 "fill": 1, 1147 "fillGradient": 0, 1148 "gridPos": { 1149 1150 }, 1151 "id": 13, 1152 "legend": { 1153 "alignAsTable": false, 1154 "avg": false, 1155 "current": false, 1156 "max": false, 1157 "min": false, 1158 "rightSide": false, 1159 "show": true, 1160 "sideWidth": null, 1161 "total": false, 1162 "values": false 1163 }, 1164 "lines": true, 1165 "linewidth": 1, 1166 "links": [ 1167 1168 ], 1169 "nullPointMode": "null", 1170 "percentage": false, 1171 "pointradius": 5, 1172 "points": false, 1173 "renderer": "flot", 1174 "repeat": null, 1175 "seriesOverrides": [ 1176 1177 ], 1178 "spaceLength": 10, 1179 "span": 3, 1180 "stack": false, 1181 "steppedLine": false, 1182 "targets": [ 1183 { 1184 "expr": "rate(prometheus_remote_storage_dropped_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]) or rate(prometheus_remote_storage_samples_dropped_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])", 1185 "format": "time_series", 1186 "intervalFactor": 2, 1187 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 1188 "refId": "A" 1189 } 1190 ], 1191 "thresholds": [ 1192 1193 ], 1194 "timeFrom": null, 1195 "timeShift": null, 1196 "title": "Dropped Samples", 1197 "tooltip": { 1198 "shared": true, 1199 "sort": 0, 1200 "value_type": "individual" 1201 }, 1202 "type": "graph", 1203 "xaxis": { 1204 "buckets": null, 1205 "mode": "time", 1206 "name": null, 1207 "show": true, 1208 "values": [ 1209 1210 ] 1211 }, 1212 "yaxes": [ 1213 { 1214 "format": "short", 1215 "label": null, 1216 "logBase": 1, 1217 "max": null, 1218 "min": null, 1219 "show": true 1220 }, 1221 { 1222 "format": "short", 1223 "label": null, 1224 "logBase": 1, 1225 "max": null, 1226 "min": null, 1227 "show": true 1228 } 1229 ] 1230 }, 1231 { 1232 "aliasColors": { 1233 1234 }, 1235 "bars": false, 1236 "dashLength": 10, 1237 "dashes": false, 1238 "datasource": "$datasource", 1239 "fill": 1, 1240 "fillGradient": 0, 1241 "gridPos": { 1242 1243 }, 1244 "id": 14, 1245 "legend": { 1246 "alignAsTable": false, 1247 "avg": false, 1248 "current": false, 1249 "max": false, 1250 "min": false, 1251 "rightSide": false, 1252 "show": true, 1253 "sideWidth": null, 1254 "total": false, 1255 "values": false 1256 }, 1257 "lines": true, 1258 "linewidth": 1, 1259 "links": [ 1260 1261 ], 1262 "nullPointMode": "null", 1263 "percentage": false, 1264 "pointradius": 5, 1265 "points": false, 1266 "renderer": "flot", 1267 "repeat": null, 1268 "seriesOverrides": [ 1269 1270 ], 1271 "spaceLength": 10, 1272 "span": 3, 1273 "stack": false, 1274 "steppedLine": false, 1275 "targets": [ 1276 { 1277 "expr": "rate(prometheus_remote_storage_failed_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]) or rate(prometheus_remote_storage_samples_failed_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])", 1278 "format": "time_series", 1279 "intervalFactor": 2, 1280 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 1281 "refId": "A" 1282 } 1283 ], 1284 "thresholds": [ 1285 1286 ], 1287 "timeFrom": null, 1288 "timeShift": null, 1289 "title": "Failed Samples", 1290 "tooltip": { 1291 "shared": true, 1292 "sort": 0, 1293 "value_type": "individual" 1294 }, 1295 "type": "graph", 1296 "xaxis": { 1297 "buckets": null, 1298 "mode": "time", 1299 "name": null, 1300 "show": true, 1301 "values": [ 1302 1303 ] 1304 }, 1305 "yaxes": [ 1306 { 1307 "format": "short", 1308 "label": null, 1309 "logBase": 1, 1310 "max": null, 1311 "min": null, 1312 "show": true 1313 }, 1314 { 1315 "format": "short", 1316 "label": null, 1317 "logBase": 1, 1318 "max": null, 1319 "min": null, 1320 "show": true 1321 } 1322 ] 1323 }, 1324 { 1325 "aliasColors": { 1326 1327 }, 1328 "bars": false, 1329 "dashLength": 10, 1330 "dashes": false, 1331 "datasource": "$datasource", 1332 "fill": 1, 1333 "fillGradient": 0, 1334 "gridPos": { 1335 1336 }, 1337 "id": 15, 1338 "legend": { 1339 "alignAsTable": false, 1340 "avg": false, 1341 "current": false, 1342 "max": false, 1343 "min": false, 1344 "rightSide": false, 1345 "show": true, 1346 "sideWidth": null, 1347 "total": false, 1348 "values": false 1349 }, 1350 "lines": true, 1351 "linewidth": 1, 1352 "links": [ 1353 1354 ], 1355 "nullPointMode": "null", 1356 "percentage": false, 1357 "pointradius": 5, 1358 "points": false, 1359 "renderer": "flot", 1360 "repeat": null, 1361 "seriesOverrides": [ 1362 1363 ], 1364 "spaceLength": 10, 1365 "span": 3, 1366 "stack": false, 1367 "steppedLine": false, 1368 "targets": [ 1369 { 1370 "expr": "rate(prometheus_remote_storage_retried_samples_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m]) or rate(prometheus_remote_storage_samples_retried_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])", 1371 "format": "time_series", 1372 "intervalFactor": 2, 1373 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 1374 "refId": "A" 1375 } 1376 ], 1377 "thresholds": [ 1378 1379 ], 1380 "timeFrom": null, 1381 "timeShift": null, 1382 "title": "Retried Samples", 1383 "tooltip": { 1384 "shared": true, 1385 "sort": 0, 1386 "value_type": "individual" 1387 }, 1388 "type": "graph", 1389 "xaxis": { 1390 "buckets": null, 1391 "mode": "time", 1392 "name": null, 1393 "show": true, 1394 "values": [ 1395 1396 ] 1397 }, 1398 "yaxes": [ 1399 { 1400 "format": "short", 1401 "label": null, 1402 "logBase": 1, 1403 "max": null, 1404 "min": null, 1405 "show": true 1406 }, 1407 { 1408 "format": "short", 1409 "label": null, 1410 "logBase": 1, 1411 "max": null, 1412 "min": null, 1413 "show": true 1414 } 1415 ] 1416 }, 1417 { 1418 "aliasColors": { 1419 1420 }, 1421 "bars": false, 1422 "dashLength": 10, 1423 "dashes": false, 1424 "datasource": "$datasource", 1425 "fill": 1, 1426 "fillGradient": 0, 1427 "gridPos": { 1428 1429 }, 1430 "id": 16, 1431 "legend": { 1432 "alignAsTable": false, 1433 "avg": false, 1434 "current": false, 1435 "max": false, 1436 "min": false, 1437 "rightSide": false, 1438 "show": true, 1439 "sideWidth": null, 1440 "total": false, 1441 "values": false 1442 }, 1443 "lines": true, 1444 "linewidth": 1, 1445 "links": [ 1446 1447 ], 1448 "nullPointMode": "null", 1449 "percentage": false, 1450 "pointradius": 5, 1451 "points": false, 1452 "renderer": "flot", 1453 "repeat": null, 1454 "seriesOverrides": [ 1455 1456 ], 1457 "spaceLength": 10, 1458 "span": 3, 1459 "stack": false, 1460 "steppedLine": false, 1461 "targets": [ 1462 { 1463 "expr": "rate(prometheus_remote_storage_enqueue_retries_total{cluster=~\"$cluster\", instance=~\"$instance\"}[5m])", 1464 "format": "time_series", 1465 "intervalFactor": 2, 1466 "legendFormat": "{{`{{`}}cluster{{`}}`}}:{{`{{`}}instance{{`}}`}} {{`{{`}}remote_name{{`}}`}}:{{`{{`}}url{{`}}`}}", 1467 "refId": "A" 1468 } 1469 ], 1470 "thresholds": [ 1471 1472 ], 1473 "timeFrom": null, 1474 "timeShift": null, 1475 "title": "Enqueue Retries", 1476 "tooltip": { 1477 "shared": true, 1478 "sort": 0, 1479 "value_type": "individual" 1480 }, 1481 "type": "graph", 1482 "xaxis": { 1483 "buckets": null, 1484 "mode": "time", 1485 "name": null, 1486 "show": true, 1487 "values": [ 1488 1489 ] 1490 }, 1491 "yaxes": [ 1492 { 1493 "format": "short", 1494 "label": null, 1495 "logBase": 1, 1496 "max": null, 1497 "min": null, 1498 "show": true 1499 }, 1500 { 1501 "format": "short", 1502 "label": null, 1503 "logBase": 1, 1504 "max": null, 1505 "min": null, 1506 "show": true 1507 } 1508 ] 1509 } 1510 ], 1511 "repeat": null, 1512 "repeatIteration": null, 1513 "repeatRowId": null, 1514 "showTitle": true, 1515 "title": "Misc. Rates", 1516 "titleSize": "h6", 1517 "type": "row" 1518 } 1519 ], 1520 "schemaVersion": 14, 1521 "style": "dark", 1522 "tags": [ 1523 "prometheus-mixin" 1524 ], 1525 "templating": { 1526 "list": [ 1527 { 1528 "hide": 0, 1529 "label": null, 1530 "name": "datasource", 1531 "options": [ 1532 1533 ], 1534 "query": "prometheus", 1535 "refresh": 1, 1536 "regex": "", 1537 "type": "datasource" 1538 }, 1539 { 1540 "allValue": null, 1541 "current": { 1542 "text": { 1543 "selected": true, 1544 "text": "All", 1545 "value": "$__all" 1546 }, 1547 "value": { 1548 "selected": true, 1549 "text": "All", 1550 "value": "$__all" 1551 } 1552 }, 1553 "datasource": "$datasource", 1554 "hide": {{ if .Values.grafana.sidecar.dashboards.multicluster.global.enabled }}0{{ else }}2{{ end }}, 1555 "includeAll": true, 1556 "label": null, 1557 "multi": false, 1558 "name": "cluster", 1559 "options": [ 1560 1561 ], 1562 "query": "label_values(kube_pod_container_info{image=~\".*prometheus.*\"}, cluster)", 1563 "refresh": 2, 1564 "regex": "", 1565 "sort": 0, 1566 "tagValuesQuery": "", 1567 "tags": [ 1568 1569 ], 1570 "tagsQuery": "", 1571 "type": "query", 1572 "useTags": false 1573 }, 1574 { 1575 "allValue": null, 1576 "current": { 1577 "text": { 1578 "selected": true, 1579 "text": "All", 1580 "value": "$__all" 1581 }, 1582 "value": { 1583 "selected": true, 1584 "text": "All", 1585 "value": "$__all" 1586 } 1587 }, 1588 "datasource": "$datasource", 1589 "hide": 0, 1590 "includeAll": true, 1591 "label": null, 1592 "multi": false, 1593 "name": "instance", 1594 "options": [ 1595 1596 ], 1597 "query": "label_values(prometheus_build_info{cluster=~\"$cluster\"}, instance)", 1598 "refresh": 2, 1599 "regex": "", 1600 "sort": 0, 1601 "tagValuesQuery": "", 1602 "tags": [ 1603 1604 ], 1605 "tagsQuery": "", 1606 "type": "query", 1607 "useTags": false 1608 }, 1609 { 1610 "allValue": null, 1611 "current": { 1612 1613 }, 1614 "datasource": "$datasource", 1615 "hide": 0, 1616 "includeAll": true, 1617 "label": null, 1618 "multi": false, 1619 "name": "url", 1620 "options": [ 1621 1622 ], 1623 "query": "label_values(prometheus_remote_storage_shards{cluster=~\"$cluster\", instance=~\"$instance\"}, url)", 1624 "refresh": 2, 1625 "regex": "", 1626 "sort": 0, 1627 "tagValuesQuery": "", 1628 "tags": [ 1629 1630 ], 1631 "tagsQuery": "", 1632 "type": "query", 1633 "useTags": false 1634 } 1635 ] 1636 }, 1637 "time": { 1638 "from": "now-6h", 1639 "to": "now" 1640 }, 1641 "timepicker": { 1642 "refresh_intervals": [ 1643 "5s", 1644 "10s", 1645 "30s", 1646 "1m", 1647 "5m", 1648 "15m", 1649 "30m", 1650 "1h", 1651 "2h", 1652 "1d" 1653 ], 1654 "time_options": [ 1655 "5m", 1656 "15m", 1657 "1h", 1658 "6h", 1659 "12h", 1660 "24h", 1661 "2d", 1662 "7d", 1663 "30d" 1664 ] 1665 }, 1666 "timezone": "{{ .Values.grafana.defaultDashboardsTimezone }}", 1667 "title": "Prometheus / Remote Write", 1668 "version": 0 1669 } 1670 {{- end }}