k6-prometheus.json (52307B)
1 { 2 "__inputs": [ 3 { 4 "name": "DS_PROMETHEUS", 5 "label": "prometheus", 6 "description": "", 7 "type": "datasource", 8 "pluginId": "prometheus", 9 "pluginName": "Prometheus" 10 } 11 ], 12 "__elements": {}, 13 "__requires": [ 14 { 15 "type": "grafana", 16 "id": "grafana", 17 "name": "Grafana", 18 "version": "10.0.0" 19 }, 20 { 21 "type": "datasource", 22 "id": "prometheus", 23 "name": "Prometheus", 24 "version": "1.0.0" 25 }, 26 { 27 "type": "panel", 28 "id": "stat", 29 "name": "Stat", 30 "version": "" 31 }, 32 { 33 "type": "panel", 34 "id": "table", 35 "name": "Table", 36 "version": "" 37 }, 38 { 39 "type": "panel", 40 "id": "text", 41 "name": "Text", 42 "version": "" 43 }, 44 { 45 "type": "panel", 46 "id": "timeseries", 47 "name": "Time series", 48 "version": "" 49 } 50 ], 51 "annotations": { 52 "list": [ 53 { 54 "builtIn": 1, 55 "datasource": { 56 "type": "grafana", 57 "uid": "-- Grafana --" 58 }, 59 "enable": true, 60 "hide": true, 61 "iconColor": "rgba(0, 211, 255, 1)", 62 "name": "Annotations & Alerts", 63 "type": "dashboard" 64 } 65 ] 66 }, 67 "description": "Visualize k6 OSS results stored in Prometheus", 68 "editable": true, 69 "fiscalYearStartMonth": 0, 70 "gnetId": 19665, 71 "graphTooltip": 2, 72 "id": null, 73 "links": [ 74 { 75 "asDropdown": false, 76 "icon": "external link", 77 "includeVars": false, 78 "keepTime": false, 79 "tags": [], 80 "targetBlank": true, 81 "title": "Grafana k6 OSS Docs: Prometheus Remote Write", 82 "tooltip": "Open docs in a new tab", 83 "type": "link", 84 "url": "https://k6.io/docs/results-output/real-time/prometheus-remote-write/" 85 } 86 ], 87 "liveNow": false, 88 "panels": [ 89 { 90 "datasource": { 91 "type": "prometheus", 92 "uid": "${DS_PROMETHEUS}" 93 }, 94 "fieldConfig": { 95 "defaults": { 96 "color": { 97 "mode": "palette-classic" 98 }, 99 "custom": { 100 "axisBorderShow": false, 101 "axisCenteredZero": false, 102 "axisColorMode": "text", 103 "axisLabel": "", 104 "axisPlacement": "auto", 105 "barAlignment": 0, 106 "drawStyle": "line", 107 "fillOpacity": 0, 108 "gradientMode": "none", 109 "hideFrom": { 110 "legend": false, 111 "tooltip": false, 112 "viz": false 113 }, 114 "insertNulls": false, 115 "lineInterpolation": "linear", 116 "lineWidth": 1, 117 "pointSize": 5, 118 "scaleDistribution": { 119 "type": "linear" 120 }, 121 "showPoints": "auto", 122 "spanNulls": false, 123 "stacking": { 124 "group": "A", 125 "mode": "none" 126 }, 127 "thresholdsStyle": { 128 "mode": "off" 129 } 130 }, 131 "mappings": [], 132 "thresholds": { 133 "mode": "absolute", 134 "steps": [ 135 { 136 "color": "green", 137 "value": null 138 } 139 ] 140 } 141 }, 142 "overrides": [ 143 { 144 "matcher": { 145 "id": "byName", 146 "options": "http_req_s_errors" 147 }, 148 "properties": [ 149 { 150 "id": "color", 151 "value": { 152 "fixedColor": "red", 153 "mode": "fixed" 154 } 155 }, 156 { 157 "id": "custom.lineStyle", 158 "value": { 159 "dash": [ 160 10, 161 10 162 ], 163 "fill": "dash" 164 } 165 }, 166 { 167 "id": "custom.axisPlacement", 168 "value": "right" 169 }, 170 { 171 "id": "unit", 172 "value": "reqps" 173 } 174 ] 175 }, 176 { 177 "matcher": { 178 "id": "byName", 179 "options": "http_req_s" 180 }, 181 "properties": [ 182 { 183 "id": "unit", 184 "value": "reqps" 185 }, 186 { 187 "id": "custom.axisPlacement", 188 "value": "right" 189 }, 190 { 191 "id": "color", 192 "value": { 193 "fixedColor": "yellow", 194 "mode": "fixed" 195 } 196 }, 197 { 198 "id": "custom.lineStyle", 199 "value": { 200 "dash": [ 201 10, 202 10 203 ], 204 "fill": "dash" 205 } 206 } 207 ] 208 }, 209 { 210 "matcher": { 211 "id": "byName", 212 "options": "vus" 213 }, 214 "properties": [ 215 { 216 "id": "color", 217 "value": { 218 "mode": "fixed" 219 } 220 }, 221 { 222 "id": "unit", 223 "value": "VUs" 224 } 225 ] 226 }, 227 { 228 "matcher": { 229 "id": "byRegexp", 230 "options": "http_req_duration_[a-zA-Z0-9_]+" 231 }, 232 "properties": [ 233 { 234 "id": "unit", 235 "value": "s" 236 }, 237 { 238 "id": "custom.axisPlacement", 239 "value": "right" 240 }, 241 { 242 "id": "color", 243 "value": { 244 "fixedColor": "blue", 245 "mode": "fixed" 246 } 247 } 248 ] 249 } 250 ] 251 }, 252 "gridPos": { 253 "h": 11, 254 "w": 24, 255 "x": 0, 256 "y": 0 257 }, 258 "id": 10, 259 "options": { 260 "legend": { 261 "calcs": [], 262 "displayMode": "list", 263 "placement": "bottom", 264 "showLegend": true 265 }, 266 "tooltip": { 267 "mode": "multi", 268 "sort": "none" 269 } 270 }, 271 "targets": [ 272 { 273 "datasource": { 274 "type": "prometheus", 275 "uid": "${DS_PROMETHEUS}" 276 }, 277 "editorMode": "code", 278 "expr": "sum(k6_vus{testid=~\"$testid\"})", 279 "instant": false, 280 "legendFormat": "vus", 281 "range": true, 282 "refId": "A" 283 }, 284 { 285 "datasource": { 286 "type": "prometheus", 287 "uid": "${DS_PROMETHEUS}" 288 }, 289 "editorMode": "code", 290 "expr": "avg(k6_http_req_duration_$quantile_stat{testid=~\"$testid\"})", 291 "hide": false, 292 "instant": false, 293 "legendFormat": "http_req_duration_$quantile_stat", 294 "range": true, 295 "refId": "C" 296 }, 297 { 298 "datasource": { 299 "type": "prometheus", 300 "uid": "${DS_PROMETHEUS}" 301 }, 302 "editorMode": "code", 303 "expr": "sum(irate(k6_http_reqs_total{testid=~\"$testid\"}[$__rate_interval]))", 304 "hide": false, 305 "instant": false, 306 "legendFormat": "http_req_s", 307 "range": true, 308 "refId": "B" 309 }, 310 { 311 "datasource": { 312 "type": "prometheus", 313 "uid": "${DS_PROMETHEUS}" 314 }, 315 "editorMode": "code", 316 "expr": "avg(round(k6_http_req_failed_rate{testid=~\"$testid\"}, 0.1)*100)", 317 "hide": true, 318 "instant": false, 319 "legendFormat": "http_req_failed", 320 "range": true, 321 "refId": "E" 322 }, 323 { 324 "datasource": { 325 "type": "prometheus", 326 "uid": "${DS_PROMETHEUS}" 327 }, 328 "editorMode": "code", 329 "expr": "sum(irate(k6_http_reqs_total{testid=~\"$testid\", expected_response=\"false\"}[$__rate_interval]))", 330 "hide": false, 331 "instant": false, 332 "legendFormat": "http_req_s_errors", 333 "range": true, 334 "refId": "D" 335 } 336 ], 337 "title": "Performance Overview", 338 "type": "timeseries" 339 }, 340 { 341 "collapsed": false, 342 "gridPos": { 343 "h": 1, 344 "w": 24, 345 "x": 0, 346 "y": 11 347 }, 348 "id": 1, 349 "panels": [], 350 "title": "Performance Overview", 351 "type": "row" 352 }, 353 { 354 "datasource": { 355 "type": "prometheus", 356 "uid": "${DS_PROMETHEUS}" 357 }, 358 "fieldConfig": { 359 "defaults": { 360 "color": { 361 "mode": "thresholds" 362 }, 363 "mappings": [], 364 "thresholds": { 365 "mode": "absolute", 366 "steps": [ 367 { 368 "color": "green", 369 "value": null 370 } 371 ] 372 }, 373 "unit": "none" 374 }, 375 "overrides": [] 376 }, 377 "gridPos": { 378 "h": 3, 379 "w": 6, 380 "x": 0, 381 "y": 12 382 }, 383 "id": 4, 384 "options": { 385 "colorMode": "value", 386 "graphMode": "none", 387 "justifyMode": "auto", 388 "orientation": "auto", 389 "reduceOptions": { 390 "calcs": [], 391 "fields": "", 392 "values": false 393 }, 394 "showPercentChange": false, 395 "textMode": "auto", 396 "wideLayout": true 397 }, 398 "targets": [ 399 { 400 "datasource": { 401 "type": "prometheus", 402 "uid": "${DS_PROMETHEUS}" 403 }, 404 "editorMode": "code", 405 "expr": "sum(k6_http_reqs_total{testid=~\"$testid\"})", 406 "instant": false, 407 "legendFormat": "__auto", 408 "range": true, 409 "refId": "A" 410 } 411 ], 412 "title": "HTTP requests", 413 "type": "stat" 414 }, 415 { 416 "datasource": { 417 "type": "prometheus", 418 "uid": "${DS_PROMETHEUS}" 419 }, 420 "fieldConfig": { 421 "defaults": { 422 "color": { 423 "fixedColor": "red", 424 "mode": "fixed" 425 }, 426 "mappings": [], 427 "thresholds": { 428 "mode": "absolute", 429 "steps": [ 430 { 431 "color": "green", 432 "value": null 433 } 434 ] 435 }, 436 "unit": "none" 437 }, 438 "overrides": [] 439 }, 440 "gridPos": { 441 "h": 3, 442 "w": 6, 443 "x": 6, 444 "y": 12 445 }, 446 "id": 22, 447 "options": { 448 "colorMode": "value", 449 "graphMode": "none", 450 "justifyMode": "auto", 451 "orientation": "auto", 452 "reduceOptions": { 453 "calcs": [], 454 "fields": "", 455 "values": false 456 }, 457 "showPercentChange": false, 458 "textMode": "auto", 459 "wideLayout": true 460 }, 461 "targets": [ 462 { 463 "datasource": { 464 "type": "prometheus", 465 "uid": "${DS_PROMETHEUS}" 466 }, 467 "editorMode": "code", 468 "expr": "sum(k6_http_reqs_total{testid=~\"$testid\", expected_response=\"false\"})", 469 "instant": false, 470 "legendFormat": "__auto", 471 "range": true, 472 "refId": "A" 473 } 474 ], 475 "title": "HTTP request failures", 476 "type": "stat" 477 }, 478 { 479 "datasource": { 480 "type": "prometheus", 481 "uid": "${DS_PROMETHEUS}" 482 }, 483 "fieldConfig": { 484 "defaults": { 485 "color": { 486 "mode": "thresholds" 487 }, 488 "mappings": [], 489 "thresholds": { 490 "mode": "absolute", 491 "steps": [ 492 { 493 "color": "green", 494 "value": null 495 } 496 ] 497 }, 498 "unit": "reqps" 499 }, 500 "overrides": [] 501 }, 502 "gridPos": { 503 "h": 3, 504 "w": 6, 505 "x": 12, 506 "y": 12 507 }, 508 "id": 20, 509 "options": { 510 "colorMode": "value", 511 "graphMode": "none", 512 "justifyMode": "auto", 513 "orientation": "auto", 514 "reduceOptions": { 515 "calcs": [], 516 "fields": "", 517 "values": false 518 }, 519 "showPercentChange": false, 520 "textMode": "auto", 521 "wideLayout": true 522 }, 523 "targets": [ 524 { 525 "datasource": { 526 "type": "prometheus", 527 "uid": "${DS_PROMETHEUS}" 528 }, 529 "editorMode": "code", 530 "expr": "sum(irate(k6_http_reqs_total{testid=~\"$testid\"}[$__rate_interval]))", 531 "instant": false, 532 "interval": "", 533 "legendFormat": "__auto", 534 "range": true, 535 "refId": "A" 536 } 537 ], 538 "title": "Peak RPS", 539 "transformations": [ 540 { 541 "id": "reduce", 542 "options": {} 543 } 544 ], 545 "type": "stat" 546 }, 547 { 548 "datasource": { 549 "type": "prometheus", 550 "uid": "${DS_PROMETHEUS}" 551 }, 552 "description": "Select a different Stat to change the query", 553 "fieldConfig": { 554 "defaults": { 555 "color": { 556 "mode": "thresholds" 557 }, 558 "mappings": [], 559 "thresholds": { 560 "mode": "absolute", 561 "steps": [ 562 { 563 "color": "green", 564 "value": null 565 } 566 ] 567 }, 568 "unit": "s" 569 }, 570 "overrides": [] 571 }, 572 "gridPos": { 573 "h": 3, 574 "w": 6, 575 "x": 18, 576 "y": 12 577 }, 578 "id": 21, 579 "options": { 580 "colorMode": "value", 581 "graphMode": "none", 582 "justifyMode": "auto", 583 "orientation": "auto", 584 "reduceOptions": { 585 "calcs": [], 586 "fields": "", 587 "values": false 588 }, 589 "showPercentChange": false, 590 "textMode": "auto", 591 "wideLayout": true 592 }, 593 "targets": [ 594 { 595 "datasource": { 596 "type": "prometheus", 597 "uid": "${DS_PROMETHEUS}" 598 }, 599 "editorMode": "code", 600 "expr": "avg(k6_http_req_duration_$quantile_stat{testid=~\"$testid\"})", 601 "instant": false, 602 "legendFormat": "__auto", 603 "range": true, 604 "refId": "A" 605 } 606 ], 607 "title": "HTTP Request Duration", 608 "type": "stat" 609 }, 610 { 611 "datasource": { 612 "type": "prometheus", 613 "uid": "${DS_PROMETHEUS}" 614 }, 615 "fieldConfig": { 616 "defaults": { 617 "color": { 618 "mode": "palette-classic" 619 }, 620 "custom": { 621 "axisBorderShow": false, 622 "axisCenteredZero": false, 623 "axisColorMode": "text", 624 "axisLabel": "", 625 "axisPlacement": "auto", 626 "barAlignment": 0, 627 "drawStyle": "line", 628 "fillOpacity": 0, 629 "gradientMode": "none", 630 "hideFrom": { 631 "legend": false, 632 "tooltip": false, 633 "viz": false 634 }, 635 "insertNulls": false, 636 "lineInterpolation": "linear", 637 "lineWidth": 1, 638 "pointSize": 5, 639 "scaleDistribution": { 640 "type": "linear" 641 }, 642 "showPoints": "auto", 643 "spanNulls": false, 644 "stacking": { 645 "group": "A", 646 "mode": "none" 647 }, 648 "thresholdsStyle": { 649 "mode": "off" 650 } 651 }, 652 "mappings": [], 653 "thresholds": { 654 "mode": "absolute", 655 "steps": [ 656 { 657 "color": "green", 658 "value": null 659 } 660 ] 661 }, 662 "unit": "bytes" 663 }, 664 "overrides": [] 665 }, 666 "gridPos": { 667 "h": 8, 668 "w": 12, 669 "x": 0, 670 "y": 15 671 }, 672 "id": 8, 673 "options": { 674 "legend": { 675 "calcs": [], 676 "displayMode": "list", 677 "placement": "bottom", 678 "showLegend": true 679 }, 680 "tooltip": { 681 "mode": "single", 682 "sort": "none" 683 } 684 }, 685 "targets": [ 686 { 687 "datasource": { 688 "type": "prometheus", 689 "uid": "${DS_PROMETHEUS}" 690 }, 691 "editorMode": "code", 692 "expr": "avg(irate(k6_data_sent_total{testid=~\"$testid\"}[$__rate_interval]))", 693 "instant": false, 694 "legendFormat": "data_sent", 695 "range": true, 696 "refId": "A" 697 }, 698 { 699 "datasource": { 700 "type": "prometheus", 701 "uid": "${DS_PROMETHEUS}" 702 }, 703 "editorMode": "code", 704 "exemplar": false, 705 "expr": "avg(irate(k6_data_received_total{testid=~\"$testid\"}[$__rate_interval]))", 706 "hide": false, 707 "instant": false, 708 "legendFormat": "data_received", 709 "range": true, 710 "refId": "B" 711 } 712 ], 713 "title": "Transfer Rate", 714 "type": "timeseries" 715 }, 716 { 717 "datasource": { 718 "type": "prometheus", 719 "uid": "${DS_PROMETHEUS}" 720 }, 721 "fieldConfig": { 722 "defaults": { 723 "color": { 724 "mode": "palette-classic" 725 }, 726 "custom": { 727 "axisBorderShow": false, 728 "axisCenteredZero": false, 729 "axisColorMode": "text", 730 "axisLabel": "", 731 "axisPlacement": "auto", 732 "barAlignment": 0, 733 "drawStyle": "line", 734 "fillOpacity": 0, 735 "gradientMode": "none", 736 "hideFrom": { 737 "legend": false, 738 "tooltip": false, 739 "viz": false 740 }, 741 "insertNulls": false, 742 "lineInterpolation": "linear", 743 "lineWidth": 1, 744 "pointSize": 5, 745 "scaleDistribution": { 746 "type": "linear" 747 }, 748 "showPoints": "auto", 749 "spanNulls": false, 750 "stacking": { 751 "group": "A", 752 "mode": "none" 753 }, 754 "thresholdsStyle": { 755 "mode": "off" 756 } 757 }, 758 "mappings": [], 759 "thresholds": { 760 "mode": "absolute", 761 "steps": [ 762 { 763 "color": "green", 764 "value": null 765 } 766 ] 767 }, 768 "unit": "s" 769 }, 770 "overrides": [ 771 { 772 "matcher": { 773 "id": "byName", 774 "options": "dropped_iterations" 775 }, 776 "properties": [ 777 { 778 "id": "unit", 779 "value": "none" 780 } 781 ] 782 } 783 ] 784 }, 785 "gridPos": { 786 "h": 8, 787 "w": 12, 788 "x": 12, 789 "y": 15 790 }, 791 "id": 9, 792 "options": { 793 "legend": { 794 "calcs": [], 795 "displayMode": "list", 796 "placement": "bottom", 797 "showLegend": true 798 }, 799 "tooltip": { 800 "mode": "single", 801 "sort": "none" 802 } 803 }, 804 "targets": [ 805 { 806 "datasource": { 807 "type": "prometheus", 808 "uid": "${DS_PROMETHEUS}" 809 }, 810 "editorMode": "code", 811 "expr": "avg(k6_iteration_duration_$quantile_stat{testid=~\"$testid\"})", 812 "instant": false, 813 "legendFormat": "iteration_duration_$quantile_stat", 814 "range": true, 815 "refId": "A" 816 }, 817 { 818 "datasource": { 819 "type": "prometheus", 820 "uid": "${DS_PROMETHEUS}" 821 }, 822 "editorMode": "code", 823 "exemplar": false, 824 "expr": "avg(k6_dropped_iterations_total{testid=~\"$testid\"})", 825 "hide": false, 826 "instant": false, 827 "legendFormat": "dropped_iterations", 828 "range": true, 829 "refId": "B" 830 } 831 ], 832 "title": "Iterations", 833 "type": "timeseries" 834 }, 835 { 836 "collapsed": false, 837 "gridPos": { 838 "h": 1, 839 "w": 24, 840 "x": 0, 841 "y": 23 842 }, 843 "id": 16, 844 "panels": [], 845 "title": "HTTP", 846 "type": "row" 847 }, 848 { 849 "datasource": { 850 "type": "prometheus", 851 "uid": "${DS_PROMETHEUS}" 852 }, 853 "description": "Select a different Stat to change the query\n\n<a href=\"https://k6.io/docs/using-k6/metrics/reference/#http\" target=\"_blank\">HTTP-specific built-in metrics</a>", 854 "fieldConfig": { 855 "defaults": { 856 "color": { 857 "mode": "palette-classic" 858 }, 859 "custom": { 860 "axisBorderShow": false, 861 "axisCenteredZero": false, 862 "axisColorMode": "text", 863 "axisLabel": "", 864 "axisPlacement": "auto", 865 "barAlignment": 0, 866 "drawStyle": "line", 867 "fillOpacity": 0, 868 "gradientMode": "none", 869 "hideFrom": { 870 "legend": false, 871 "tooltip": false, 872 "viz": false 873 }, 874 "insertNulls": false, 875 "lineInterpolation": "linear", 876 "lineWidth": 1, 877 "pointSize": 5, 878 "scaleDistribution": { 879 "type": "linear" 880 }, 881 "showPoints": "auto", 882 "spanNulls": false, 883 "stacking": { 884 "group": "A", 885 "mode": "none" 886 }, 887 "thresholdsStyle": { 888 "mode": "off" 889 } 890 }, 891 "mappings": [], 892 "thresholds": { 893 "mode": "absolute", 894 "steps": [ 895 { 896 "color": "green" 897 } 898 ] 899 }, 900 "unit": "s" 901 }, 902 "overrides": [ 903 { 904 "matcher": { 905 "id": "byRegexp", 906 "options": "http_req_duration_[a-zA-Z0-9_]+" 907 }, 908 "properties": [ 909 { 910 "id": "color", 911 "value": { 912 "fixedColor": "blue", 913 "mode": "fixed" 914 } 915 } 916 ] 917 } 918 ] 919 }, 920 "gridPos": { 921 "h": 8, 922 "w": 8, 923 "x": 0, 924 "y": 24 925 }, 926 "id": 14, 927 "options": { 928 "legend": { 929 "calcs": [], 930 "displayMode": "list", 931 "placement": "bottom", 932 "showLegend": true 933 }, 934 "tooltip": { 935 "mode": "single", 936 "sort": "none" 937 } 938 }, 939 "targets": [ 940 { 941 "datasource": { 942 "type": "prometheus", 943 "uid": "${DS_PROMETHEUS}" 944 }, 945 "editorMode": "code", 946 "expr": "avg(k6_http_req_blocked_$quantile_stat{testid=~\"$testid\"})", 947 "hide": false, 948 "instant": false, 949 "legendFormat": "http_req_blocked_$quantile_stat", 950 "range": true, 951 "refId": "B" 952 }, 953 { 954 "datasource": { 955 "type": "prometheus", 956 "uid": "${DS_PROMETHEUS}" 957 }, 958 "editorMode": "code", 959 "expr": "avg(k6_http_req_tls_handshaking_$quantile_stat{testid=~\"$testid\"})", 960 "hide": false, 961 "instant": false, 962 "legendFormat": "http_req_tls_handshaking_$quantile_stat", 963 "range": true, 964 "refId": "C" 965 }, 966 { 967 "datasource": { 968 "type": "prometheus", 969 "uid": "${DS_PROMETHEUS}" 970 }, 971 "editorMode": "code", 972 "expr": "avg(k6_http_req_sending_$quantile_stat{testid=~\"$testid\"})", 973 "hide": false, 974 "instant": false, 975 "legendFormat": "http_req_sending_$quantile_stat", 976 "range": true, 977 "refId": "D" 978 }, 979 { 980 "datasource": { 981 "type": "prometheus", 982 "uid": "${DS_PROMETHEUS}" 983 }, 984 "editorMode": "code", 985 "expr": "avg(k6_http_req_waiting_$quantile_stat{testid=~\"$testid\"})", 986 "hide": false, 987 "instant": false, 988 "legendFormat": "http_req_waiting_$quantile_stat", 989 "range": true, 990 "refId": "E" 991 }, 992 { 993 "datasource": { 994 "type": "prometheus", 995 "uid": "${DS_PROMETHEUS}" 996 }, 997 "editorMode": "code", 998 "expr": "avg(k6_http_req_receiving_$quantile_stat{testid=~\"$testid\"})", 999 "hide": false, 1000 "instant": false, 1001 "legendFormat": "http_req_receiving_$quantile_stat", 1002 "range": true, 1003 "refId": "F" 1004 }, 1005 { 1006 "datasource": { 1007 "type": "prometheus", 1008 "uid": "${DS_PROMETHEUS}" 1009 }, 1010 "editorMode": "code", 1011 "expr": "avg(k6_http_req_duration_$quantile_stat{testid=~\"$testid\"})", 1012 "hide": false, 1013 "instant": false, 1014 "legendFormat": "http_req_duration_$quantile_stat", 1015 "range": true, 1016 "refId": "A" 1017 } 1018 ], 1019 "title": "HTTP Latency Timings", 1020 "type": "timeseries" 1021 }, 1022 { 1023 "datasource": { 1024 "type": "prometheus", 1025 "uid": "${DS_PROMETHEUS}" 1026 }, 1027 "description": "Select a different Stat to change the query", 1028 "fieldConfig": { 1029 "defaults": { 1030 "color": { 1031 "mode": "palette-classic" 1032 }, 1033 "custom": { 1034 "axisBorderShow": false, 1035 "axisCenteredZero": false, 1036 "axisColorMode": "text", 1037 "axisLabel": "", 1038 "axisPlacement": "auto", 1039 "axisSoftMin": 0, 1040 "barAlignment": 0, 1041 "drawStyle": "line", 1042 "fillOpacity": 0, 1043 "gradientMode": "none", 1044 "hideFrom": { 1045 "legend": false, 1046 "tooltip": false, 1047 "viz": false 1048 }, 1049 "insertNulls": false, 1050 "lineInterpolation": "linear", 1051 "lineWidth": 1, 1052 "pointSize": 5, 1053 "scaleDistribution": { 1054 "type": "linear" 1055 }, 1056 "showPoints": "auto", 1057 "spanNulls": false, 1058 "stacking": { 1059 "group": "A", 1060 "mode": "none" 1061 }, 1062 "thresholdsStyle": { 1063 "mode": "off" 1064 } 1065 }, 1066 "mappings": [], 1067 "thresholds": { 1068 "mode": "absolute", 1069 "steps": [ 1070 { 1071 "color": "green" 1072 } 1073 ] 1074 }, 1075 "unit": "s" 1076 }, 1077 "overrides": [ 1078 { 1079 "matcher": { 1080 "id": "byRegexp", 1081 "options": "errors_http_req_duration_[a-zA-Z0-9_]+" 1082 }, 1083 "properties": [ 1084 { 1085 "id": "color", 1086 "value": { 1087 "fixedColor": "red", 1088 "mode": "fixed" 1089 } 1090 } 1091 ] 1092 }, 1093 { 1094 "matcher": { 1095 "id": "byRegexp", 1096 "options": "success_http_req_duration_[a-zA-Z0-9_]+" 1097 }, 1098 "properties": [ 1099 { 1100 "id": "color", 1101 "value": { 1102 "fixedColor": "green", 1103 "mode": "fixed" 1104 } 1105 } 1106 ] 1107 }, 1108 { 1109 "matcher": { 1110 "id": "byRegexp", 1111 "options": "http_req_duration_[a-zA-Z0-9_]+" 1112 }, 1113 "properties": [ 1114 { 1115 "id": "color", 1116 "value": { 1117 "fixedColor": "yellow", 1118 "mode": "fixed" 1119 } 1120 } 1121 ] 1122 }, 1123 { 1124 "matcher": { 1125 "id": "byRegexp", 1126 "options": "http_req_duration_[a-zA-Z0-9_]+" 1127 }, 1128 "properties": [ 1129 { 1130 "id": "color", 1131 "value": { 1132 "fixedColor": "blue", 1133 "mode": "fixed" 1134 } 1135 } 1136 ] 1137 } 1138 ] 1139 }, 1140 "gridPos": { 1141 "h": 8, 1142 "w": 8, 1143 "x": 8, 1144 "y": 24 1145 }, 1146 "id": 15, 1147 "options": { 1148 "legend": { 1149 "calcs": [], 1150 "displayMode": "list", 1151 "placement": "bottom", 1152 "showLegend": true 1153 }, 1154 "tooltip": { 1155 "mode": "single", 1156 "sort": "none" 1157 } 1158 }, 1159 "targets": [ 1160 { 1161 "datasource": { 1162 "type": "prometheus", 1163 "uid": "${DS_PROMETHEUS}" 1164 }, 1165 "editorMode": "code", 1166 "expr": "avg(k6_http_req_duration_$quantile_stat{testid=~\"$testid\"})", 1167 "hide": false, 1168 "instant": false, 1169 "legendFormat": "http_req_duration_$quantile_stat", 1170 "range": true, 1171 "refId": "A" 1172 }, 1173 { 1174 "datasource": { 1175 "type": "prometheus", 1176 "uid": "${DS_PROMETHEUS}" 1177 }, 1178 "editorMode": "code", 1179 "expr": "avg(k6_http_req_duration_$quantile_stat{testid=~\"$testid\", expected_response=\"true\"})", 1180 "instant": false, 1181 "legendFormat": "success_http_req_duration_$quantile_stat", 1182 "range": true, 1183 "refId": "C" 1184 }, 1185 { 1186 "datasource": { 1187 "type": "prometheus", 1188 "uid": "${DS_PROMETHEUS}" 1189 }, 1190 "editorMode": "code", 1191 "expr": "avg(k6_http_req_duration_$quantile_stat{testid=~\"$testid\", expected_response=\"false\"})", 1192 "hide": false, 1193 "instant": false, 1194 "legendFormat": "errors_http_req_duration_$quantile_stat", 1195 "range": true, 1196 "refId": "B" 1197 } 1198 ], 1199 "title": "HTTP Latency Stats", 1200 "type": "timeseries" 1201 }, 1202 { 1203 "datasource": { 1204 "type": "prometheus", 1205 "uid": "${DS_PROMETHEUS}" 1206 }, 1207 "description": "", 1208 "fieldConfig": { 1209 "defaults": { 1210 "color": { 1211 "mode": "palette-classic" 1212 }, 1213 "custom": { 1214 "axisBorderShow": false, 1215 "axisCenteredZero": false, 1216 "axisColorMode": "text", 1217 "axisLabel": "", 1218 "axisPlacement": "auto", 1219 "axisSoftMin": 0, 1220 "barAlignment": 0, 1221 "drawStyle": "line", 1222 "fillOpacity": 0, 1223 "gradientMode": "none", 1224 "hideFrom": { 1225 "legend": false, 1226 "tooltip": false, 1227 "viz": false 1228 }, 1229 "insertNulls": false, 1230 "lineInterpolation": "linear", 1231 "lineWidth": 1, 1232 "pointSize": 5, 1233 "scaleDistribution": { 1234 "type": "linear" 1235 }, 1236 "showPoints": "auto", 1237 "spanNulls": false, 1238 "stacking": { 1239 "group": "A", 1240 "mode": "none" 1241 }, 1242 "thresholdsStyle": { 1243 "mode": "off" 1244 } 1245 }, 1246 "mappings": [], 1247 "thresholds": { 1248 "mode": "absolute", 1249 "steps": [ 1250 { 1251 "color": "green" 1252 } 1253 ] 1254 }, 1255 "unit": "reqps" 1256 }, 1257 "overrides": [ 1258 { 1259 "matcher": { 1260 "id": "byName", 1261 "options": "http_req_s_errors" 1262 }, 1263 "properties": [ 1264 { 1265 "id": "color", 1266 "value": { 1267 "fixedColor": "red", 1268 "mode": "fixed" 1269 } 1270 }, 1271 { 1272 "id": "custom.lineStyle", 1273 "value": { 1274 "dash": [ 1275 10, 1276 10 1277 ], 1278 "fill": "dash" 1279 } 1280 } 1281 ] 1282 }, 1283 { 1284 "matcher": { 1285 "id": "byName", 1286 "options": "http_req_s" 1287 }, 1288 "properties": [ 1289 { 1290 "id": "color", 1291 "value": { 1292 "fixedColor": "yellow", 1293 "mode": "fixed" 1294 } 1295 }, 1296 { 1297 "id": "custom.lineStyle", 1298 "value": { 1299 "dash": [ 1300 10, 1301 10 1302 ], 1303 "fill": "dash" 1304 } 1305 } 1306 ] 1307 }, 1308 { 1309 "matcher": { 1310 "id": "byName", 1311 "options": "http_req_s_success" 1312 }, 1313 "properties": [ 1314 { 1315 "id": "custom.lineStyle", 1316 "value": { 1317 "dash": [ 1318 10, 1319 10 1320 ], 1321 "fill": "dash" 1322 } 1323 }, 1324 { 1325 "id": "color", 1326 "value": { 1327 "fixedColor": "green", 1328 "mode": "fixed" 1329 } 1330 } 1331 ] 1332 } 1333 ] 1334 }, 1335 "gridPos": { 1336 "h": 8, 1337 "w": 8, 1338 "x": 16, 1339 "y": 24 1340 }, 1341 "id": 18, 1342 "options": { 1343 "legend": { 1344 "calcs": [], 1345 "displayMode": "list", 1346 "placement": "bottom", 1347 "showLegend": true 1348 }, 1349 "tooltip": { 1350 "mode": "single", 1351 "sort": "none" 1352 } 1353 }, 1354 "targets": [ 1355 { 1356 "datasource": { 1357 "type": "prometheus", 1358 "uid": "${DS_PROMETHEUS}" 1359 }, 1360 "editorMode": "code", 1361 "expr": "sum(irate(k6_http_reqs_total{testid=~\"$testid\"}[$__rate_interval]))", 1362 "instant": false, 1363 "legendFormat": "http_req_s", 1364 "range": true, 1365 "refId": "A" 1366 }, 1367 { 1368 "datasource": { 1369 "type": "prometheus", 1370 "uid": "${DS_PROMETHEUS}" 1371 }, 1372 "editorMode": "code", 1373 "expr": "sum(irate(k6_http_reqs_total{testid=~\"$testid\", expected_response=\"false\"}[$__rate_interval]))", 1374 "hide": false, 1375 "instant": false, 1376 "legendFormat": "http_req_s_errors", 1377 "range": true, 1378 "refId": "B" 1379 }, 1380 { 1381 "datasource": { 1382 "type": "prometheus", 1383 "uid": "${DS_PROMETHEUS}" 1384 }, 1385 "editorMode": "code", 1386 "expr": "sum(irate(k6_http_reqs_total{testid=~\"$testid\", expected_response=\"true\"}[$__rate_interval]))", 1387 "hide": false, 1388 "instant": false, 1389 "legendFormat": "http_req_s_success", 1390 "range": true, 1391 "refId": "C" 1392 } 1393 ], 1394 "title": "HTTP Request Rate", 1395 "type": "timeseries" 1396 }, 1397 { 1398 "datasource": { 1399 "type": "prometheus", 1400 "uid": "${DS_PROMETHEUS}" 1401 }, 1402 "description": "min/max/p95/p99 depends on the available Quantile Stats", 1403 "fieldConfig": { 1404 "defaults": { 1405 "color": { 1406 "mode": "thresholds" 1407 }, 1408 "custom": { 1409 "align": "auto", 1410 "cellOptions": { 1411 "type": "auto" 1412 }, 1413 "inspect": false 1414 }, 1415 "mappings": [], 1416 "thresholds": { 1417 "mode": "absolute", 1418 "steps": [ 1419 { 1420 "color": "green" 1421 } 1422 ] 1423 } 1424 }, 1425 "overrides": [ 1426 { 1427 "matcher": { 1428 "id": "byName", 1429 "options": "name" 1430 }, 1431 "properties": [ 1432 { 1433 "id": "filterable", 1434 "value": false 1435 } 1436 ] 1437 }, 1438 { 1439 "matcher": { 1440 "id": "byName", 1441 "options": "method" 1442 }, 1443 "properties": [ 1444 { 1445 "id": "filterable", 1446 "value": false 1447 } 1448 ] 1449 }, 1450 { 1451 "matcher": { 1452 "id": "byName", 1453 "options": "status" 1454 }, 1455 "properties": [ 1456 { 1457 "id": "filterable", 1458 "value": false 1459 } 1460 ] 1461 }, 1462 { 1463 "matcher": { 1464 "id": "byName", 1465 "options": "min" 1466 }, 1467 "properties": [ 1468 { 1469 "id": "unit", 1470 "value": "s" 1471 } 1472 ] 1473 }, 1474 { 1475 "matcher": { 1476 "id": "byName", 1477 "options": "max" 1478 }, 1479 "properties": [ 1480 { 1481 "id": "unit", 1482 "value": "s" 1483 } 1484 ] 1485 }, 1486 { 1487 "matcher": { 1488 "id": "byName", 1489 "options": "p95" 1490 }, 1491 "properties": [ 1492 { 1493 "id": "unit", 1494 "value": "s" 1495 } 1496 ] 1497 }, 1498 { 1499 "matcher": { 1500 "id": "byName", 1501 "options": "p99" 1502 }, 1503 "properties": [ 1504 { 1505 "id": "unit", 1506 "value": "s" 1507 } 1508 ] 1509 } 1510 ] 1511 }, 1512 "gridPos": { 1513 "h": 7, 1514 "w": 24, 1515 "x": 0, 1516 "y": 32 1517 }, 1518 "id": 17, 1519 "options": { 1520 "cellHeight": "sm", 1521 "footer": { 1522 "countRows": false, 1523 "enablePagination": true, 1524 "fields": "", 1525 "reducer": [ 1526 "sum" 1527 ], 1528 "show": false 1529 }, 1530 "frameIndex": 2, 1531 "showHeader": true 1532 }, 1533 "targets": [ 1534 { 1535 "datasource": { 1536 "type": "prometheus", 1537 "uid": "${DS_PROMETHEUS}" 1538 }, 1539 "editorMode": "code", 1540 "expr": "avg by(name, method, status) (k6_http_req_duration_min{testid=~\"$testid\"})", 1541 "format": "table", 1542 "hide": false, 1543 "instant": false, 1544 "legendFormat": "min", 1545 "range": true, 1546 "refId": "B" 1547 }, 1548 { 1549 "datasource": { 1550 "type": "prometheus", 1551 "uid": "${DS_PROMETHEUS}" 1552 }, 1553 "editorMode": "code", 1554 "expr": "avg by(name, method, status) (k6_http_req_duration_max{testid=~\"$testid\"})", 1555 "format": "table", 1556 "hide": false, 1557 "instant": false, 1558 "legendFormat": "max", 1559 "range": true, 1560 "refId": "C" 1561 }, 1562 { 1563 "datasource": { 1564 "type": "prometheus", 1565 "uid": "${DS_PROMETHEUS}" 1566 }, 1567 "editorMode": "code", 1568 "expr": "avg by(name, method, status) (k6_http_req_duration_p95{testid=~\"$testid\"})", 1569 "format": "table", 1570 "hide": false, 1571 "instant": false, 1572 "legendFormat": "p95", 1573 "range": true, 1574 "refId": "D" 1575 }, 1576 { 1577 "datasource": { 1578 "type": "prometheus", 1579 "uid": "${DS_PROMETHEUS}" 1580 }, 1581 "editorMode": "code", 1582 "expr": "avg by(name, method, status) (k6_http_req_duration_p99{testid=~\"$testid\"})", 1583 "format": "table", 1584 "hide": false, 1585 "instant": false, 1586 "legendFormat": "__auto", 1587 "range": true, 1588 "refId": "E" 1589 } 1590 ], 1591 "title": "Requests by URL", 1592 "transformations": [ 1593 { 1594 "id": "merge", 1595 "options": {} 1596 }, 1597 { 1598 "id": "groupBy", 1599 "options": { 1600 "fields": { 1601 "Value #B": { 1602 "aggregations": [ 1603 "min" 1604 ], 1605 "operation": "aggregate" 1606 }, 1607 "Value #C": { 1608 "aggregations": [ 1609 "max" 1610 ], 1611 "operation": "aggregate" 1612 }, 1613 "Value #D": { 1614 "aggregations": [ 1615 "mean" 1616 ], 1617 "operation": "aggregate" 1618 }, 1619 "Value #E": { 1620 "aggregations": [ 1621 "mean" 1622 ], 1623 "operation": "aggregate" 1624 }, 1625 "method": { 1626 "aggregations": [], 1627 "operation": "groupby" 1628 }, 1629 "name": { 1630 "aggregations": [], 1631 "operation": "groupby" 1632 }, 1633 "status": { 1634 "aggregations": [], 1635 "operation": "groupby" 1636 } 1637 } 1638 } 1639 }, 1640 { 1641 "id": "organize", 1642 "options": { 1643 "excludeByName": { 1644 "Time": true 1645 }, 1646 "indexByName": { 1647 "Time": 0, 1648 "Value #B": 4, 1649 "Value #C": 5, 1650 "Value #D": 6, 1651 "Value #E": 7, 1652 "method": 2, 1653 "name": 1, 1654 "status": 3 1655 }, 1656 "renameByName": { 1657 "Value #B": "min", 1658 "Value #B (min)": "min", 1659 "Value #C": "max", 1660 "Value #C (max)": "max", 1661 "Value #D": "p95", 1662 "Value #D (mean)": "p95", 1663 "Value #E": "p99", 1664 "Value #E (mean)": "p99" 1665 } 1666 } 1667 } 1668 ], 1669 "type": "table" 1670 }, 1671 { 1672 "collapsed": false, 1673 "gridPos": { 1674 "h": 1, 1675 "w": 24, 1676 "x": 0, 1677 "y": 39 1678 }, 1679 "id": 11, 1680 "panels": [], 1681 "title": "Checks", 1682 "type": "row" 1683 }, 1684 { 1685 "datasource": { 1686 "type": "prometheus", 1687 "uid": "${DS_PROMETHEUS}" 1688 }, 1689 "fieldConfig": { 1690 "defaults": { 1691 "color": { 1692 "mode": "thresholds" 1693 }, 1694 "custom": { 1695 "align": "auto", 1696 "cellOptions": { 1697 "type": "auto" 1698 }, 1699 "inspect": false 1700 }, 1701 "mappings": [], 1702 "thresholds": { 1703 "mode": "absolute", 1704 "steps": [ 1705 { 1706 "color": "green" 1707 } 1708 ] 1709 } 1710 }, 1711 "overrides": [ 1712 { 1713 "matcher": { 1714 "id": "byName", 1715 "options": "Success Rate" 1716 }, 1717 "properties": [ 1718 { 1719 "id": "custom.hidden", 1720 "value": false 1721 }, 1722 { 1723 "id": "unit", 1724 "value": "%" 1725 } 1726 ] 1727 }, 1728 { 1729 "matcher": { 1730 "id": "byName", 1731 "options": "Value (mean)" 1732 }, 1733 "properties": [ 1734 { 1735 "id": "custom.hidden", 1736 "value": true 1737 } 1738 ] 1739 }, 1740 { 1741 "matcher": { 1742 "id": "byName", 1743 "options": "check" 1744 }, 1745 "properties": [ 1746 { 1747 "id": "filterable", 1748 "value": false 1749 } 1750 ] 1751 } 1752 ] 1753 }, 1754 "gridPos": { 1755 "h": 8, 1756 "w": 12, 1757 "x": 0, 1758 "y": 40 1759 }, 1760 "id": 12, 1761 "options": { 1762 "cellHeight": "sm", 1763 "footer": { 1764 "countRows": false, 1765 "enablePagination": true, 1766 "fields": "", 1767 "reducer": [ 1768 "sum" 1769 ], 1770 "show": false 1771 }, 1772 "frameIndex": 2, 1773 "showHeader": true, 1774 "sortBy": [ 1775 { 1776 "desc": true, 1777 "displayName": "Value (count)" 1778 } 1779 ] 1780 }, 1781 "targets": [ 1782 { 1783 "datasource": { 1784 "type": "prometheus", 1785 "uid": "${DS_PROMETHEUS}" 1786 }, 1787 "editorMode": "code", 1788 "exemplar": false, 1789 "expr": "round(k6_checks_rate{testid=~\"$testid\"}, 0.1)", 1790 "format": "table", 1791 "instant": false, 1792 "legendFormat": "__auto", 1793 "range": true, 1794 "refId": "A" 1795 } 1796 ], 1797 "title": "Checks list", 1798 "transformations": [ 1799 { 1800 "id": "labelsToFields", 1801 "options": { 1802 "keepLabels": [ 1803 "__name__", 1804 "check" 1805 ], 1806 "mode": "columns" 1807 } 1808 }, 1809 { 1810 "id": "groupBy", 1811 "options": { 1812 "fields": { 1813 "Value": { 1814 "aggregations": [ 1815 "mean" 1816 ], 1817 "operation": "aggregate" 1818 }, 1819 "check": { 1820 "aggregations": [], 1821 "operation": "groupby" 1822 }, 1823 "k6_checks_rate": { 1824 "aggregations": [ 1825 "sum", 1826 "count" 1827 ], 1828 "operation": "aggregate" 1829 } 1830 } 1831 } 1832 }, 1833 { 1834 "id": "calculateField", 1835 "options": { 1836 "alias": "Success Rate", 1837 "binary": { 1838 "left": "Value (mean)", 1839 "operator": "*", 1840 "reducer": "sum", 1841 "right": "100" 1842 }, 1843 "mode": "binary", 1844 "reduce": { 1845 "reducer": "sum" 1846 } 1847 } 1848 }, 1849 { 1850 "id": "convertFieldType", 1851 "options": { 1852 "conversions": [], 1853 "fields": {} 1854 } 1855 } 1856 ], 1857 "type": "table" 1858 }, 1859 { 1860 "datasource": { 1861 "type": "prometheus", 1862 "uid": "${DS_PROMETHEUS}" 1863 }, 1864 "description": "Filter by check name to query a particular check", 1865 "fieldConfig": { 1866 "defaults": { 1867 "color": { 1868 "mode": "palette-classic" 1869 }, 1870 "custom": { 1871 "axisBorderShow": false, 1872 "axisCenteredZero": false, 1873 "axisColorMode": "text", 1874 "axisLabel": "", 1875 "axisPlacement": "auto", 1876 "axisSoftMax": 100, 1877 "axisSoftMin": 0, 1878 "barAlignment": -1, 1879 "drawStyle": "line", 1880 "fillOpacity": 0, 1881 "gradientMode": "none", 1882 "hideFrom": { 1883 "legend": false, 1884 "tooltip": false, 1885 "viz": false 1886 }, 1887 "insertNulls": false, 1888 "lineInterpolation": "linear", 1889 "lineWidth": 2, 1890 "pointSize": 5, 1891 "scaleDistribution": { 1892 "type": "linear" 1893 }, 1894 "showPoints": "auto", 1895 "spanNulls": false, 1896 "stacking": { 1897 "group": "A", 1898 "mode": "none" 1899 }, 1900 "thresholdsStyle": { 1901 "mode": "off" 1902 } 1903 }, 1904 "mappings": [], 1905 "thresholds": { 1906 "mode": "absolute", 1907 "steps": [ 1908 { 1909 "color": "green" 1910 } 1911 ] 1912 }, 1913 "unit": "%" 1914 }, 1915 "overrides": [] 1916 }, 1917 "gridPos": { 1918 "h": 8, 1919 "w": 12, 1920 "x": 12, 1921 "y": 40 1922 }, 1923 "id": 13, 1924 "options": { 1925 "legend": { 1926 "calcs": [], 1927 "displayMode": "list", 1928 "placement": "bottom", 1929 "showLegend": true 1930 }, 1931 "tooltip": { 1932 "mode": "single", 1933 "sort": "none" 1934 } 1935 }, 1936 "targets": [ 1937 { 1938 "datasource": { 1939 "type": "prometheus", 1940 "uid": "${DS_PROMETHEUS}" 1941 }, 1942 "editorMode": "code", 1943 "expr": "avg(round(k6_checks_rate{testid=~\"$testid\"}, 0.1)*100)", 1944 "instant": false, 1945 "legendFormat": "k6_checks_rate", 1946 "range": true, 1947 "refId": "A" 1948 } 1949 ], 1950 "title": "Checks Success Rate (aggregate individual checks)", 1951 "type": "timeseries" 1952 }, 1953 { 1954 "datasource": { 1955 "type": "prometheus", 1956 "uid": "${DS_PROMETHEUS}" 1957 }, 1958 "gridPos": { 1959 "h": 5, 1960 "w": 24, 1961 "x": 0, 1962 "y": 48 1963 }, 1964 "id": 23, 1965 "options": { 1966 "code": { 1967 "language": "plaintext", 1968 "showLineNumbers": false, 1969 "showMiniMap": false 1970 }, 1971 "content": "### Visualize other k6 results \n\nAt the top of the dashboard, click `Add` and select `Visualization` from the dropdown menu. Choose the visualization type and input the PromQL queries for the `k6_` metric(s).\n\nAlternatively, click on the `Explore` icon on the menu bar and input the queries for the `k6_` metric(s). From `Explore`, you can add new Panels to this dashboard. \n\nNote that all <a href=\"https://k6.io/docs/using-k6/metrics/\" target=\"_blank\">k6 metrics</a> are prefixed with the `k6_` namespace when sent to Prometheus.", 1972 "mode": "markdown" 1973 }, 1974 "type": "text" 1975 } 1976 ], 1977 "refresh": "", 1978 "schemaVersion": 39, 1979 "tags": [ 1980 "prometheus", 1981 "k6" 1982 ], 1983 "templating": { 1984 "list": [ 1985 { 1986 "current": { 1987 "selected": false, 1988 "text": "prometheus", 1989 "value": "${DS_PROMETHEUS}" 1990 }, 1991 "description": "Choose a Prometheus Data Source", 1992 "hide": 0, 1993 "includeAll": false, 1994 "label": "Prometheus DS", 1995 "multi": false, 1996 "name": "DS_PROMETHEUS", 1997 "options": [], 1998 "query": "prometheus", 1999 "queryValue": "", 2000 "refresh": 1, 2001 "regex": "", 2002 "skipUrlSync": false, 2003 "type": "datasource" 2004 }, 2005 { 2006 "current": {}, 2007 "datasource": { 2008 "type": "prometheus", 2009 "uid": "${DS_PROMETHEUS}" 2010 }, 2011 "definition": "label_values(testid)", 2012 "description": "Filter by \"testid\" tag. Define it by tagging: k6 run --tag testid=xyz", 2013 "hide": 0, 2014 "includeAll": true, 2015 "label": "Test ID", 2016 "multi": true, 2017 "name": "testid", 2018 "options": [], 2019 "query": { 2020 "query": "label_values(testid)", 2021 "refId": "PrometheusVariableQueryEditor-VariableQuery" 2022 }, 2023 "refresh": 2, 2024 "regex": "", 2025 "skipUrlSync": false, 2026 "sort": 0, 2027 "type": "query" 2028 }, 2029 { 2030 "current": {}, 2031 "datasource": { 2032 "type": "prometheus", 2033 "uid": "${DS_PROMETHEUS}" 2034 }, 2035 "definition": "metrics(k6_http_req_duration_)", 2036 "description": "Statistic for Trend Metrics Queries. The available options depend on the values of the K6_PROMETHEUS_RW_TREND_STATS setting.", 2037 "hide": 0, 2038 "includeAll": false, 2039 "label": "Trend Metrics Query", 2040 "multi": false, 2041 "name": "quantile_stat", 2042 "options": [], 2043 "query": { 2044 "query": "metrics(k6_http_req_duration_)", 2045 "refId": "PrometheusVariableQueryEditor-VariableQuery" 2046 }, 2047 "refresh": 2, 2048 "regex": "/http_req_duration_(min|max|count|sum|avg|med|p[0-9]+)/g", 2049 "skipUrlSync": false, 2050 "sort": 2, 2051 "type": "query" 2052 }, 2053 { 2054 "datasource": { 2055 "type": "prometheus", 2056 "uid": "${DS_PROMETHEUS}" 2057 }, 2058 "description": "Adhoc filters are applied to all panels. To enable it, go to Dashboard Settings / Variables / adhoc_filter and select the target Prometheus data source.", 2059 "filters": [], 2060 "hide": 0, 2061 "label": "AdhocFilter", 2062 "name": "adhoc_filter", 2063 "skipUrlSync": false, 2064 "type": "adhoc" 2065 } 2066 ] 2067 }, 2068 "time": { 2069 "from": "now-5m", 2070 "to": "now" 2071 }, 2072 "timeRangeUpdatedDuringEditOrView": false, 2073 "timepicker": {}, 2074 "timezone": "", 2075 "title": "k6 Prometheus", 2076 "uid": "ccbb2351-2ae2-462f-ae0e-f2c893ad1028", 2077 "version": 3, 2078 "weekStart": "" 2079 }