1{ 2 "annotations": { 3 "list": [ 4 { 5 "builtIn": 1, 6 "datasource": "-- Grafana --", 7 "enable": true, 8 "hide": true, 9 "iconColor": "rgba(0, 211, 255, 1)", 10 "name": "Annotations & Alerts", 11 "type": "dashboard" 12 }, 13 { 14 "datasource": "gdev-postgres-ds-tests", 15 "enable": false, 16 "hide": false, 17 "iconColor": "#6ed0e0", 18 "limit": 100, 19 "name": "Deploys", 20 "rawQuery": "SELECT \"time_sec\" as time, description as text, tags FROM event WHERE $__unixEpochFilter(time_sec) AND tags='deploy' ORDER BY 1 ASC", 21 "showIn": 0, 22 "tags": [], 23 "type": "tags" 24 }, 25 { 26 "datasource": "gdev-postgres-ds-tests", 27 "enable": false, 28 "hide": false, 29 "iconColor": "rgba(255, 96, 96, 1)", 30 "limit": 100, 31 "name": "Tickets", 32 "rawQuery": "SELECT \"time_sec\" as time, description as text, tags FROM event WHERE $__unixEpochFilter(time_sec) AND tags='ticket' ORDER BY 1 ASC", 33 "showIn": 0, 34 "tags": [], 35 "type": "tags" 36 }, 37 { 38 "datasource": "gdev-postgres-ds-tests", 39 "enable": false, 40 "hide": false, 41 "iconColor": "#7eb26d", 42 "limit": 100, 43 "name": "Metric Values timeEpoch macro", 44 "rawQuery": "SELECT \n $__timeEpoch(time), \n measurement as text, \n '' as tags\nFROM\n metric_values \nWHERE\n $__timeFilter(time)\nORDER BY 1", 45 "showIn": 0, 46 "tags": [], 47 "type": "tags" 48 }, 49 { 50 "datasource": "gdev-postgres-ds-tests", 51 "enable": false, 52 "hide": false, 53 "iconColor": "#1f78c1", 54 "limit": 100, 55 "name": "Metric Values native time", 56 "rawQuery": "SELECT \n time, \n measurement as text, \n '' as tags\nFROM\n metric_values \nWHERE\n $__timeFilter(time)\nORDER BY 1", 57 "showIn": 0, 58 "tags": [], 59 "type": "tags" 60 } 61 ] 62 }, 63 "description": "Run the postgres unit tests to generate the data backing this dashboard", 64 "editable": true, 65 "gnetId": null, 66 "graphTooltip": 0, 67 "iteration": 1534507993194, 68 "links": [], 69 "panels": [ 70 { 71 "columns": [], 72 "datasource": "gdev-postgres-ds-tests", 73 "fontSize": "100%", 74 "gridPos": { 75 "h": 4, 76 "w": 24, 77 "x": 0, 78 "y": 0 79 }, 80 "id": 2, 81 "links": [], 82 "pageSize": null, 83 "scroll": true, 84 "showHeader": true, 85 "sort": { 86 "col": 1, 87 "desc": false 88 }, 89 "styles": [ 90 { 91 "alias": "", 92 "colorMode": null, 93 "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"], 94 "decimals": 2, 95 "pattern": "/.*/", 96 "thresholds": [], 97 "type": "string", 98 "unit": "short" 99 } 100 ], 101 "targets": [ 102 { 103 "alias": "", 104 "format": "table", 105 "rawSql": "SELECT * FROM postgres_types", 106 "refId": "A" 107 } 108 ], 109 "title": "Data types", 110 "transform": "table", 111 "type": "table" 112 }, 113 { 114 "columns": [], 115 "datasource": "gdev-postgres-ds-tests", 116 "fontSize": "100%", 117 "gridPos": { 118 "h": 3, 119 "w": 6, 120 "x": 0, 121 "y": 4 122 }, 123 "id": 32, 124 "links": [], 125 "pageSize": null, 126 "scroll": true, 127 "showHeader": true, 128 "sort": { 129 "col": 0, 130 "desc": true 131 }, 132 "styles": [ 133 { 134 "alias": "Time", 135 "dateFormat": "YYYY-MM-DD HH:mm:ss", 136 "pattern": "time", 137 "type": "date" 138 }, 139 { 140 "alias": "", 141 "colorMode": null, 142 "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"], 143 "decimals": 2, 144 "pattern": "/.*/", 145 "thresholds": [], 146 "type": "number", 147 "unit": "short" 148 } 149 ], 150 "targets": [ 151 { 152 "alias": "", 153 "format": "table", 154 "rawSql": "SELECT cast(null as bigint) as time", 155 "refId": "A", 156 "target": "" 157 } 158 ], 159 "title": "cast(null as bigint) as time", 160 "transform": "table", 161 "type": "table" 162 }, 163 { 164 "columns": [], 165 "datasource": "gdev-postgres-ds-tests", 166 "fontSize": "100%", 167 "gridPos": { 168 "h": 3, 169 "w": 6, 170 "x": 6, 171 "y": 4 172 }, 173 "id": 33, 174 "links": [], 175 "pageSize": null, 176 "scroll": true, 177 "showHeader": true, 178 "sort": { 179 "col": 0, 180 "desc": true 181 }, 182 "styles": [ 183 { 184 "alias": "Time", 185 "dateFormat": "YYYY-MM-DD HH:mm:ss", 186 "pattern": "time", 187 "type": "date" 188 }, 189 { 190 "alias": "", 191 "colorMode": null, 192 "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"], 193 "decimals": 2, 194 "pattern": "/.*/", 195 "thresholds": [], 196 "type": "number", 197 "unit": "short" 198 } 199 ], 200 "targets": [ 201 { 202 "alias": "", 203 "format": "table", 204 "rawSql": "SELECT cast(null as timestamp) as time", 205 "refId": "A", 206 "target": "" 207 } 208 ], 209 "title": "cast(null as datetime) as time", 210 "transform": "table", 211 "type": "table" 212 }, 213 { 214 "columns": [], 215 "datasource": "gdev-postgres-ds-tests", 216 "fontSize": "100%", 217 "gridPos": { 218 "h": 3, 219 "w": 6, 220 "x": 12, 221 "y": 4 222 }, 223 "id": 34, 224 "links": [], 225 "pageSize": null, 226 "scroll": true, 227 "showHeader": true, 228 "sort": { 229 "col": 0, 230 "desc": true 231 }, 232 "styles": [ 233 { 234 "alias": "Time", 235 "dateFormat": "YYYY-MM-DD HH:mm:ss", 236 "pattern": "time", 237 "type": "date" 238 }, 239 { 240 "alias": "", 241 "colorMode": null, 242 "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"], 243 "decimals": 2, 244 "pattern": "/.*/", 245 "thresholds": [], 246 "type": "number", 247 "unit": "short" 248 } 249 ], 250 "targets": [ 251 { 252 "alias": "", 253 "format": "table", 254 "rawSql": "SELECT localtimestamp as time", 255 "refId": "A", 256 "target": "" 257 } 258 ], 259 "title": "localtimestamp as time", 260 "transform": "table", 261 "type": "table" 262 }, 263 { 264 "columns": [], 265 "datasource": "gdev-postgres-ds-tests", 266 "fontSize": "100%", 267 "gridPos": { 268 "h": 3, 269 "w": 6, 270 "x": 18, 271 "y": 4 272 }, 273 "id": 35, 274 "links": [], 275 "pageSize": null, 276 "scroll": true, 277 "showHeader": true, 278 "sort": { 279 "col": 0, 280 "desc": true 281 }, 282 "styles": [ 283 { 284 "alias": "Time", 285 "dateFormat": "YYYY-MM-DD HH:mm:ss", 286 "pattern": "time", 287 "type": "date" 288 }, 289 { 290 "alias": "", 291 "colorMode": null, 292 "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"], 293 "decimals": 2, 294 "pattern": "/.*/", 295 "thresholds": [], 296 "type": "number", 297 "unit": "short" 298 } 299 ], 300 "targets": [ 301 { 302 "alias": "", 303 "format": "table", 304 "rawSql": "SELECT NOW() as time", 305 "refId": "A", 306 "target": "" 307 } 308 ], 309 "title": "NOW() as time", 310 "transform": "table", 311 "type": "table" 312 }, 313 { 314 "aliasColors": {}, 315 "bars": false, 316 "dashLength": 10, 317 "dashes": false, 318 "datasource": "gdev-postgres-ds-tests", 319 "fill": 2, 320 "gridPos": { 321 "h": 6, 322 "w": 6, 323 "x": 0, 324 "y": 7 325 }, 326 "id": 7, 327 "legend": { 328 "avg": false, 329 "current": false, 330 "max": false, 331 "min": false, 332 "show": true, 333 "total": false, 334 "values": false 335 }, 336 "lines": true, 337 "linewidth": 2, 338 "links": [], 339 "nullPointMode": "null", 340 "percentage": false, 341 "pointradius": 3, 342 "points": true, 343 "renderer": "flot", 344 "seriesOverrides": [], 345 "spaceLength": 10, 346 "stack": false, 347 "steppedLine": true, 348 "targets": [ 349 { 350 "alias": "", 351 "format": "time_series", 352 "rawSql": "SELECT $__timeGroupAlias(time, '5m'), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1", 353 "refId": "A" 354 } 355 ], 356 "thresholds": [], 357 "timeFrom": null, 358 "timeShift": null, 359 "title": "timeGroup macro 5m without fill", 360 "tooltip": { 361 "shared": true, 362 "sort": 0, 363 "value_type": "individual" 364 }, 365 "type": "graph", 366 "xaxis": { 367 "buckets": null, 368 "mode": "time", 369 "name": null, 370 "show": true, 371 "values": [] 372 }, 373 "yaxes": [ 374 { 375 "format": "short", 376 "label": null, 377 "logBase": 1, 378 "max": null, 379 "min": "0", 380 "show": true 381 }, 382 { 383 "format": "short", 384 "label": null, 385 "logBase": 1, 386 "max": null, 387 "min": null, 388 "show": true 389 } 390 ], 391 "yaxis": { 392 "align": false, 393 "alignLevel": null 394 } 395 }, 396 { 397 "aliasColors": {}, 398 "bars": false, 399 "dashLength": 10, 400 "dashes": false, 401 "datasource": "gdev-postgres-ds-tests", 402 "fill": 2, 403 "gridPos": { 404 "h": 6, 405 "w": 6, 406 "x": 6, 407 "y": 7 408 }, 409 "id": 9, 410 "legend": { 411 "avg": false, 412 "current": false, 413 "max": false, 414 "min": false, 415 "show": true, 416 "total": false, 417 "values": false 418 }, 419 "lines": true, 420 "linewidth": 2, 421 "links": [], 422 "nullPointMode": "null as zero", 423 "percentage": false, 424 "pointradius": 3, 425 "points": true, 426 "renderer": "flot", 427 "seriesOverrides": [], 428 "spaceLength": 10, 429 "stack": false, 430 "steppedLine": true, 431 "targets": [ 432 { 433 "alias": "", 434 "format": "time_series", 435 "rawSql": "SELECT $__timeGroupAlias(time, '5m', NULL), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1", 436 "refId": "A" 437 } 438 ], 439 "thresholds": [], 440 "timeFrom": null, 441 "timeShift": null, 442 "title": "timeGroup macro 5m with fill(NULL) and null as zero", 443 "tooltip": { 444 "shared": true, 445 "sort": 0, 446 "value_type": "individual" 447 }, 448 "type": "graph", 449 "xaxis": { 450 "buckets": null, 451 "mode": "time", 452 "name": null, 453 "show": true, 454 "values": [] 455 }, 456 "yaxes": [ 457 { 458 "format": "short", 459 "label": null, 460 "logBase": 1, 461 "max": null, 462 "min": "0", 463 "show": true 464 }, 465 { 466 "format": "short", 467 "label": null, 468 "logBase": 1, 469 "max": null, 470 "min": null, 471 "show": true 472 } 473 ], 474 "yaxis": { 475 "align": false, 476 "alignLevel": null 477 } 478 }, 479 { 480 "aliasColors": {}, 481 "bars": false, 482 "dashLength": 10, 483 "dashes": false, 484 "datasource": "gdev-postgres-ds-tests", 485 "fill": 2, 486 "gridPos": { 487 "h": 6, 488 "w": 6, 489 "x": 12, 490 "y": 7 491 }, 492 "id": 10, 493 "legend": { 494 "avg": false, 495 "current": false, 496 "max": false, 497 "min": false, 498 "show": true, 499 "total": false, 500 "values": false 501 }, 502 "lines": true, 503 "linewidth": 2, 504 "links": [], 505 "nullPointMode": "null", 506 "percentage": false, 507 "pointradius": 3, 508 "points": true, 509 "renderer": "flot", 510 "seriesOverrides": [], 511 "spaceLength": 10, 512 "stack": false, 513 "steppedLine": true, 514 "targets": [ 515 { 516 "alias": "", 517 "format": "time_series", 518 "rawSql": "SELECT $__timeGroupAlias(time, '5m', 10.0), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1", 519 "refId": "A" 520 } 521 ], 522 "thresholds": [], 523 "timeFrom": null, 524 "timeShift": null, 525 "title": "timeGroup macro 5m with fill(10.0)", 526 "tooltip": { 527 "shared": true, 528 "sort": 0, 529 "value_type": "individual" 530 }, 531 "type": "graph", 532 "xaxis": { 533 "buckets": null, 534 "mode": "time", 535 "name": null, 536 "show": true, 537 "values": [] 538 }, 539 "yaxes": [ 540 { 541 "format": "short", 542 "label": null, 543 "logBase": 1, 544 "max": null, 545 "min": "0", 546 "show": true 547 }, 548 { 549 "format": "short", 550 "label": null, 551 "logBase": 1, 552 "max": null, 553 "min": null, 554 "show": true 555 } 556 ], 557 "yaxis": { 558 "align": false, 559 "alignLevel": null 560 } 561 }, 562 { 563 "aliasColors": {}, 564 "bars": false, 565 "dashLength": 10, 566 "dashes": false, 567 "datasource": "gdev-postgres-ds-tests", 568 "fill": 2, 569 "gridPos": { 570 "h": 6, 571 "w": 6, 572 "x": 18, 573 "y": 7 574 }, 575 "id": 36, 576 "legend": { 577 "avg": false, 578 "current": false, 579 "max": false, 580 "min": false, 581 "show": true, 582 "total": false, 583 "values": false 584 }, 585 "lines": true, 586 "linewidth": 2, 587 "links": [], 588 "nullPointMode": "null", 589 "percentage": false, 590 "pointradius": 3, 591 "points": true, 592 "renderer": "flot", 593 "seriesOverrides": [], 594 "spaceLength": 10, 595 "stack": false, 596 "steppedLine": true, 597 "targets": [ 598 { 599 "alias": "", 600 "format": "time_series", 601 "rawSql": "SELECT $__timeGroupAlias(time, '5m', previous), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1", 602 "refId": "A" 603 } 604 ], 605 "thresholds": [], 606 "timeFrom": null, 607 "timeShift": null, 608 "title": "timeGroup macro 5m with fill(previous)", 609 "tooltip": { 610 "shared": true, 611 "sort": 0, 612 "value_type": "individual" 613 }, 614 "type": "graph", 615 "xaxis": { 616 "buckets": null, 617 "mode": "time", 618 "name": null, 619 "show": true, 620 "values": [] 621 }, 622 "yaxes": [ 623 { 624 "format": "short", 625 "label": null, 626 "logBase": 1, 627 "max": null, 628 "min": "0", 629 "show": true 630 }, 631 { 632 "format": "short", 633 "label": null, 634 "logBase": 1, 635 "max": null, 636 "min": null, 637 "show": true 638 } 639 ], 640 "yaxis": { 641 "align": false, 642 "alignLevel": null 643 } 644 }, 645 { 646 "aliasColors": {}, 647 "bars": true, 648 "dashLength": 10, 649 "dashes": false, 650 "datasource": "gdev-postgres-ds-tests", 651 "fill": 2, 652 "gridPos": { 653 "h": 6, 654 "w": 6, 655 "x": 0, 656 "y": 13 657 }, 658 "id": 16, 659 "legend": { 660 "avg": false, 661 "current": false, 662 "max": false, 663 "min": false, 664 "show": true, 665 "total": false, 666 "values": false 667 }, 668 "lines": false, 669 "linewidth": 2, 670 "links": [], 671 "nullPointMode": "null", 672 "percentage": false, 673 "pointradius": 3, 674 "points": false, 675 "renderer": "flot", 676 "seriesOverrides": [], 677 "spaceLength": 10, 678 "stack": false, 679 "steppedLine": true, 680 "targets": [ 681 { 682 "alias": "", 683 "format": "time_series", 684 "rawSql": "SELECT $__timeGroupAlias(time, '$summarize'), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1", 685 "refId": "A" 686 } 687 ], 688 "thresholds": [], 689 "timeFrom": null, 690 "timeShift": null, 691 "title": "Metrics - timeGroup macro $summarize without fill", 692 "tooltip": { 693 "shared": true, 694 "sort": 0, 695 "value_type": "individual" 696 }, 697 "type": "graph", 698 "xaxis": { 699 "buckets": null, 700 "mode": "time", 701 "name": null, 702 "show": true, 703 "values": [] 704 }, 705 "yaxes": [ 706 { 707 "format": "short", 708 "label": null, 709 "logBase": 1, 710 "max": null, 711 "min": null, 712 "show": true 713 }, 714 { 715 "format": "short", 716 "label": null, 717 "logBase": 1, 718 "max": null, 719 "min": null, 720 "show": true 721 } 722 ], 723 "yaxis": { 724 "align": false, 725 "alignLevel": null 726 } 727 }, 728 { 729 "aliasColors": {}, 730 "bars": true, 731 "dashLength": 10, 732 "dashes": false, 733 "datasource": "gdev-postgres-ds-tests", 734 "fill": 2, 735 "gridPos": { 736 "h": 6, 737 "w": 6, 738 "x": 6, 739 "y": 13 740 }, 741 "id": 12, 742 "legend": { 743 "avg": false, 744 "current": false, 745 "max": false, 746 "min": false, 747 "show": true, 748 "total": false, 749 "values": false 750 }, 751 "lines": false, 752 "linewidth": 2, 753 "links": [], 754 "nullPointMode": "null as zero", 755 "percentage": false, 756 "pointradius": 3, 757 "points": false, 758 "renderer": "flot", 759 "seriesOverrides": [], 760 "spaceLength": 10, 761 "stack": false, 762 "steppedLine": true, 763 "targets": [ 764 { 765 "alias": "", 766 "format": "time_series", 767 "rawSql": "SELECT $__timeGroupAlias(time, '$summarize', NULL), sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1", 768 "refId": "A" 769 } 770 ], 771 "thresholds": [], 772 "timeFrom": null, 773 "timeShift": null, 774 "title": "Metrics - timeGroup macro $summarize with fill(NULL)", 775 "tooltip": { 776 "shared": true, 777 "sort": 0, 778 "value_type": "individual" 779 }, 780 "type": "graph", 781 "xaxis": { 782 "buckets": null, 783 "mode": "time", 784 "name": null, 785 "show": true, 786 "values": [] 787 }, 788 "yaxes": [ 789 { 790 "format": "short", 791 "label": null, 792 "logBase": 1, 793 "max": null, 794 "min": null, 795 "show": true 796 }, 797 { 798 "format": "short", 799 "label": null, 800 "logBase": 1, 801 "max": null, 802 "min": null, 803 "show": true 804 } 805 ], 806 "yaxis": { 807 "align": false, 808 "alignLevel": null 809 } 810 }, 811 { 812 "aliasColors": {}, 813 "bars": true, 814 "dashLength": 10, 815 "dashes": false, 816 "datasource": "gdev-postgres-ds-tests", 817 "fill": 2, 818 "gridPos": { 819 "h": 6, 820 "w": 6, 821 "x": 12, 822 "y": 13 823 }, 824 "id": 13, 825 "legend": { 826 "avg": false, 827 "current": false, 828 "max": false, 829 "min": false, 830 "show": true, 831 "total": false, 832 "values": false 833 }, 834 "lines": false, 835 "linewidth": 2, 836 "links": [], 837 "nullPointMode": "null", 838 "percentage": false, 839 "pointradius": 3, 840 "points": false, 841 "renderer": "flot", 842 "seriesOverrides": [], 843 "spaceLength": 10, 844 "stack": false, 845 "steppedLine": true, 846 "targets": [ 847 { 848 "alias": "", 849 "format": "time_series", 850 "rawSql": "SELECT $__timeGroupAlias(time, '$summarize', 100.0), sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1", 851 "refId": "A" 852 } 853 ], 854 "thresholds": [], 855 "timeFrom": null, 856 "timeShift": null, 857 "title": "Metrics - timeGroup macro $summarize with fill(100.0)", 858 "tooltip": { 859 "shared": true, 860 "sort": 0, 861 "value_type": "individual" 862 }, 863 "type": "graph", 864 "xaxis": { 865 "buckets": null, 866 "mode": "time", 867 "name": null, 868 "show": true, 869 "values": [] 870 }, 871 "yaxes": [ 872 { 873 "format": "short", 874 "label": null, 875 "logBase": 1, 876 "max": null, 877 "min": null, 878 "show": true 879 }, 880 { 881 "format": "short", 882 "label": null, 883 "logBase": 1, 884 "max": null, 885 "min": null, 886 "show": true 887 } 888 ], 889 "yaxis": { 890 "align": false, 891 "alignLevel": null 892 } 893 }, 894 { 895 "aliasColors": {}, 896 "bars": true, 897 "dashLength": 10, 898 "dashes": false, 899 "datasource": "gdev-postgres-ds-tests", 900 "fill": 2, 901 "gridPos": { 902 "h": 6, 903 "w": 6, 904 "x": 18, 905 "y": 13 906 }, 907 "id": 37, 908 "legend": { 909 "avg": false, 910 "current": false, 911 "max": false, 912 "min": false, 913 "show": true, 914 "total": false, 915 "values": false 916 }, 917 "lines": false, 918 "linewidth": 2, 919 "links": [], 920 "nullPointMode": "null", 921 "percentage": false, 922 "pointradius": 3, 923 "points": false, 924 "renderer": "flot", 925 "seriesOverrides": [], 926 "spaceLength": 10, 927 "stack": false, 928 "steppedLine": true, 929 "targets": [ 930 { 931 "alias": "", 932 "format": "time_series", 933 "rawSql": "SELECT $__timeGroupAlias(time, '$summarize', previous), sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY 1 ORDER BY 1", 934 "refId": "A" 935 } 936 ], 937 "thresholds": [], 938 "timeFrom": null, 939 "timeShift": null, 940 "title": "Metrics - timeGroup macro $summarize with fill(previous)", 941 "tooltip": { 942 "shared": true, 943 "sort": 0, 944 "value_type": "individual" 945 }, 946 "type": "graph", 947 "xaxis": { 948 "buckets": null, 949 "mode": "time", 950 "name": null, 951 "show": true, 952 "values": [] 953 }, 954 "yaxes": [ 955 { 956 "format": "short", 957 "label": null, 958 "logBase": 1, 959 "max": null, 960 "min": null, 961 "show": true 962 }, 963 { 964 "format": "short", 965 "label": null, 966 "logBase": 1, 967 "max": null, 968 "min": null, 969 "show": true 970 } 971 ], 972 "yaxis": { 973 "align": false, 974 "alignLevel": null 975 } 976 }, 977 { 978 "aliasColors": {}, 979 "bars": false, 980 "dashLength": 10, 981 "dashes": false, 982 "datasource": "gdev-postgres-ds-tests", 983 "fill": 2, 984 "gridPos": { 985 "h": 8, 986 "w": 12, 987 "x": 0, 988 "y": 19 989 }, 990 "id": 27, 991 "legend": { 992 "alignAsTable": true, 993 "avg": true, 994 "current": true, 995 "hideEmpty": false, 996 "hideZero": false, 997 "max": true, 998 "min": true, 999 "rightSide": true, 1000 "show": true, 1001 "total": true, 1002 "values": true 1003 }, 1004 "lines": true, 1005 "linewidth": 2, 1006 "links": [], 1007 "nullPointMode": "null", 1008 "percentage": false, 1009 "pointradius": 3, 1010 "points": false, 1011 "renderer": "flot", 1012 "seriesOverrides": [], 1013 "spaceLength": 10, 1014 "stack": false, 1015 "steppedLine": false, 1016 "targets": [ 1017 { 1018 "alias": "", 1019 "format": "time_series", 1020 "rawSql": "SELECT \n $__timeGroupAlias(time, '$summarize'), \n measurement, \n avg(\"valueOne\") as \"valueOne\",\n avg(\"valueTwo\") as \"valueTwo\"\nFROM\n metric_values \nWHERE\n $__timeFilter(time) AND\n measurement in($metric)\nGROUP BY 1, 2\nORDER BY 1", 1021 "refId": "A" 1022 } 1023 ], 1024 "thresholds": [], 1025 "timeFrom": null, 1026 "timeShift": null, 1027 "title": "Multiple series with metric column using timeGroup macro ($summarize)", 1028 "tooltip": { 1029 "shared": true, 1030 "sort": 0, 1031 "value_type": "individual" 1032 }, 1033 "type": "graph", 1034 "xaxis": { 1035 "buckets": null, 1036 "mode": "time", 1037 "name": null, 1038 "show": true, 1039 "values": [] 1040 }, 1041 "yaxes": [ 1042 { 1043 "format": "short", 1044 "label": null, 1045 "logBase": 1, 1046 "max": null, 1047 "min": "0", 1048 "show": true 1049 }, 1050 { 1051 "format": "short", 1052 "label": null, 1053 "logBase": 1, 1054 "max": null, 1055 "min": null, 1056 "show": true 1057 } 1058 ], 1059 "yaxis": { 1060 "align": false, 1061 "alignLevel": null 1062 } 1063 }, 1064 { 1065 "aliasColors": {}, 1066 "bars": false, 1067 "dashLength": 10, 1068 "dashes": false, 1069 "datasource": "gdev-postgres-ds-tests", 1070 "fill": 2, 1071 "gridPos": { 1072 "h": 8, 1073 "w": 12, 1074 "x": 12, 1075 "y": 19 1076 }, 1077 "id": 5, 1078 "legend": { 1079 "alignAsTable": true, 1080 "avg": true, 1081 "current": true, 1082 "max": true, 1083 "min": true, 1084 "rightSide": true, 1085 "show": true, 1086 "total": true, 1087 "values": true 1088 }, 1089 "lines": true, 1090 "linewidth": 2, 1091 "links": [], 1092 "nullPointMode": "null", 1093 "percentage": false, 1094 "pointradius": 3, 1095 "points": false, 1096 "renderer": "flot", 1097 "seriesOverrides": [], 1098 "spaceLength": 10, 1099 "stack": false, 1100 "steppedLine": false, 1101 "targets": [ 1102 { 1103 "alias": "", 1104 "format": "time_series", 1105 "rawSql": "SELECT \n $__timeGroupAlias(time, '$summarize'), \n avg(\"valueOne\") as \"valueOne\", \n avg(\"valueTwo\") as \"valueTwo\" \nFROM\n metric_values \nWHERE\n $__timeFilter(time) AND\n measurement in($metric)\nGROUP BY 1\nORDER BY 1", 1106 "refId": "A" 1107 } 1108 ], 1109 "thresholds": [], 1110 "timeFrom": null, 1111 "timeShift": null, 1112 "title": "Multiple series without metric column using timeGroup macro ($summarize)", 1113 "tooltip": { 1114 "shared": true, 1115 "sort": 0, 1116 "value_type": "individual" 1117 }, 1118 "type": "graph", 1119 "xaxis": { 1120 "buckets": null, 1121 "mode": "time", 1122 "name": null, 1123 "show": true, 1124 "values": [] 1125 }, 1126 "yaxes": [ 1127 { 1128 "format": "short", 1129 "label": null, 1130 "logBase": 1, 1131 "max": null, 1132 "min": "0", 1133 "show": true 1134 }, 1135 { 1136 "format": "short", 1137 "label": null, 1138 "logBase": 1, 1139 "max": null, 1140 "min": null, 1141 "show": true 1142 } 1143 ], 1144 "yaxis": { 1145 "align": false, 1146 "alignLevel": null 1147 } 1148 }, 1149 { 1150 "aliasColors": {}, 1151 "bars": false, 1152 "dashLength": 10, 1153 "dashes": false, 1154 "datasource": "gdev-postgres-ds-tests", 1155 "fill": 2, 1156 "gridPos": { 1157 "h": 8, 1158 "w": 12, 1159 "x": 0, 1160 "y": 27 1161 }, 1162 "id": 38, 1163 "legend": { 1164 "alignAsTable": true, 1165 "avg": true, 1166 "current": true, 1167 "hideEmpty": false, 1168 "hideZero": false, 1169 "max": true, 1170 "min": true, 1171 "rightSide": true, 1172 "show": true, 1173 "total": true, 1174 "values": true 1175 }, 1176 "lines": true, 1177 "linewidth": 2, 1178 "links": [], 1179 "nullPointMode": "null", 1180 "percentage": false, 1181 "pointradius": 3, 1182 "points": false, 1183 "renderer": "flot", 1184 "seriesOverrides": [], 1185 "spaceLength": 10, 1186 "stack": false, 1187 "steppedLine": false, 1188 "targets": [ 1189 { 1190 "alias": "", 1191 "format": "time_series", 1192 "rawSql": "SELECT \n $__unixEpochGroupAlias(\"timeInt32\", '$summarize'), \n measurement, \n avg(\"valueOne\") as \"valueOne\",\n avg(\"valueTwo\") as \"valueTwo\"\nFROM\n metric_values \nWHERE\n $__unixEpochFilter(\"timeInt32\") AND\n measurement in($metric)\nGROUP BY 1, 2\nORDER BY 1, 2", 1193 "refId": "A" 1194 } 1195 ], 1196 "thresholds": [], 1197 "timeFrom": null, 1198 "timeShift": null, 1199 "title": "Multiple series with metric column using unixEpochGroup macro ($summarize)", 1200 "tooltip": { 1201 "shared": true, 1202 "sort": 0, 1203 "value_type": "individual" 1204 }, 1205 "type": "graph", 1206 "xaxis": { 1207 "buckets": null, 1208 "mode": "time", 1209 "name": null, 1210 "show": true, 1211 "values": [] 1212 }, 1213 "yaxes": [ 1214 { 1215 "format": "short", 1216 "label": null, 1217 "logBase": 1, 1218 "max": null, 1219 "min": "0", 1220 "show": true 1221 }, 1222 { 1223 "format": "short", 1224 "label": null, 1225 "logBase": 1, 1226 "max": null, 1227 "min": null, 1228 "show": true 1229 } 1230 ], 1231 "yaxis": { 1232 "align": false, 1233 "alignLevel": null 1234 } 1235 }, 1236 { 1237 "aliasColors": {}, 1238 "bars": false, 1239 "dashLength": 10, 1240 "dashes": false, 1241 "datasource": "gdev-postgres-ds-tests", 1242 "fill": 2, 1243 "gridPos": { 1244 "h": 8, 1245 "w": 12, 1246 "x": 12, 1247 "y": 27 1248 }, 1249 "id": 39, 1250 "legend": { 1251 "alignAsTable": true, 1252 "avg": true, 1253 "current": true, 1254 "max": true, 1255 "min": true, 1256 "rightSide": true, 1257 "show": true, 1258 "total": true, 1259 "values": true 1260 }, 1261 "lines": true, 1262 "linewidth": 2, 1263 "links": [], 1264 "nullPointMode": "null", 1265 "percentage": false, 1266 "pointradius": 3, 1267 "points": false, 1268 "renderer": "flot", 1269 "seriesOverrides": [], 1270 "spaceLength": 10, 1271 "stack": false, 1272 "steppedLine": false, 1273 "targets": [ 1274 { 1275 "alias": "", 1276 "format": "time_series", 1277 "rawSql": "SELECT \n $__unixEpochGroupAlias(\"timeInt32\", '$summarize'), \n avg(\"valueOne\") as \"valueOne\",\n avg(\"valueTwo\") as \"valueTwo\"\nFROM\n metric_values \nWHERE\n $__unixEpochFilter(\"timeInt32\") AND\n measurement in($metric)\nGROUP BY 1\nORDER BY 1", 1278 "refId": "A" 1279 } 1280 ], 1281 "thresholds": [], 1282 "timeFrom": null, 1283 "timeShift": null, 1284 "title": "Multiple series without metric column using timeGroup macro ($summarize)", 1285 "tooltip": { 1286 "shared": true, 1287 "sort": 0, 1288 "value_type": "individual" 1289 }, 1290 "type": "graph", 1291 "xaxis": { 1292 "buckets": null, 1293 "mode": "time", 1294 "name": null, 1295 "show": true, 1296 "values": [] 1297 }, 1298 "yaxes": [ 1299 { 1300 "format": "short", 1301 "label": null, 1302 "logBase": 1, 1303 "max": null, 1304 "min": "0", 1305 "show": true 1306 }, 1307 { 1308 "format": "short", 1309 "label": null, 1310 "logBase": 1, 1311 "max": null, 1312 "min": null, 1313 "show": true 1314 } 1315 ], 1316 "yaxis": { 1317 "align": false, 1318 "alignLevel": null 1319 } 1320 }, 1321 { 1322 "aliasColors": {}, 1323 "bars": false, 1324 "dashLength": 10, 1325 "dashes": false, 1326 "datasource": "gdev-postgres-ds-tests", 1327 "fill": 2, 1328 "gridPos": { 1329 "h": 8, 1330 "w": 12, 1331 "x": 0, 1332 "y": 35 1333 }, 1334 "id": 4, 1335 "legend": { 1336 "alignAsTable": true, 1337 "avg": true, 1338 "current": true, 1339 "hideEmpty": false, 1340 "hideZero": false, 1341 "max": true, 1342 "min": true, 1343 "rightSide": true, 1344 "show": true, 1345 "total": true, 1346 "values": true 1347 }, 1348 "lines": true, 1349 "linewidth": 2, 1350 "links": [], 1351 "nullPointMode": "null", 1352 "percentage": false, 1353 "pointradius": 3, 1354 "points": false, 1355 "renderer": "flot", 1356 "seriesOverrides": [], 1357 "spaceLength": 10, 1358 "stack": false, 1359 "steppedLine": false, 1360 "targets": [ 1361 { 1362 "alias": "", 1363 "format": "time_series", 1364 "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 1365 "refId": "A" 1366 } 1367 ], 1368 "thresholds": [], 1369 "timeFrom": null, 1370 "timeShift": null, 1371 "title": "Multiple series with metric column", 1372 "tooltip": { 1373 "shared": true, 1374 "sort": 0, 1375 "value_type": "individual" 1376 }, 1377 "type": "graph", 1378 "xaxis": { 1379 "buckets": null, 1380 "mode": "time", 1381 "name": null, 1382 "show": true, 1383 "values": [] 1384 }, 1385 "yaxes": [ 1386 { 1387 "format": "short", 1388 "label": null, 1389 "logBase": 1, 1390 "max": null, 1391 "min": "0", 1392 "show": true 1393 }, 1394 { 1395 "format": "short", 1396 "label": null, 1397 "logBase": 1, 1398 "max": null, 1399 "min": null, 1400 "show": true 1401 } 1402 ], 1403 "yaxis": { 1404 "align": false, 1405 "alignLevel": null 1406 } 1407 }, 1408 { 1409 "aliasColors": {}, 1410 "bars": false, 1411 "dashLength": 10, 1412 "dashes": false, 1413 "datasource": "gdev-postgres-ds-tests", 1414 "fill": 2, 1415 "gridPos": { 1416 "h": 8, 1417 "w": 12, 1418 "x": 12, 1419 "y": 35 1420 }, 1421 "id": 28, 1422 "legend": { 1423 "alignAsTable": true, 1424 "avg": true, 1425 "current": true, 1426 "max": true, 1427 "min": true, 1428 "rightSide": true, 1429 "show": true, 1430 "total": true, 1431 "values": true 1432 }, 1433 "lines": true, 1434 "linewidth": 2, 1435 "links": [], 1436 "nullPointMode": "null", 1437 "percentage": false, 1438 "pointradius": 3, 1439 "points": false, 1440 "renderer": "flot", 1441 "seriesOverrides": [], 1442 "spaceLength": 10, 1443 "stack": false, 1444 "steppedLine": false, 1445 "targets": [ 1446 { 1447 "alias": "", 1448 "format": "time_series", 1449 "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 1450 "refId": "A" 1451 } 1452 ], 1453 "thresholds": [], 1454 "timeFrom": null, 1455 "timeShift": null, 1456 "title": "Multiple series without metric column", 1457 "tooltip": { 1458 "shared": true, 1459 "sort": 0, 1460 "value_type": "individual" 1461 }, 1462 "type": "graph", 1463 "xaxis": { 1464 "buckets": null, 1465 "mode": "time", 1466 "name": null, 1467 "show": true, 1468 "values": [] 1469 }, 1470 "yaxes": [ 1471 { 1472 "format": "short", 1473 "label": null, 1474 "logBase": 1, 1475 "max": null, 1476 "min": "0", 1477 "show": true 1478 }, 1479 { 1480 "format": "short", 1481 "label": null, 1482 "logBase": 1, 1483 "max": null, 1484 "min": null, 1485 "show": true 1486 } 1487 ], 1488 "yaxis": { 1489 "align": false, 1490 "alignLevel": null 1491 } 1492 }, 1493 { 1494 "aliasColors": {}, 1495 "bars": false, 1496 "dashLength": 10, 1497 "dashes": false, 1498 "datasource": "gdev-postgres-ds-tests", 1499 "fill": 2, 1500 "gridPos": { 1501 "h": 8, 1502 "w": 12, 1503 "x": 0, 1504 "y": 43 1505 }, 1506 "id": 19, 1507 "legend": { 1508 "alignAsTable": true, 1509 "avg": true, 1510 "current": true, 1511 "hideEmpty": false, 1512 "hideZero": false, 1513 "max": true, 1514 "min": true, 1515 "rightSide": true, 1516 "show": true, 1517 "total": true, 1518 "values": true 1519 }, 1520 "lines": true, 1521 "linewidth": 2, 1522 "links": [], 1523 "nullPointMode": "null", 1524 "percentage": false, 1525 "pointradius": 3, 1526 "points": false, 1527 "renderer": "flot", 1528 "seriesOverrides": [], 1529 "spaceLength": 10, 1530 "stack": true, 1531 "steppedLine": false, 1532 "targets": [ 1533 { 1534 "alias": "", 1535 "format": "time_series", 1536 "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 1537 "refId": "A" 1538 } 1539 ], 1540 "thresholds": [], 1541 "timeFrom": null, 1542 "timeShift": null, 1543 "title": "Multiple series with metric column - stacked", 1544 "tooltip": { 1545 "shared": true, 1546 "sort": 0, 1547 "value_type": "individual" 1548 }, 1549 "type": "graph", 1550 "xaxis": { 1551 "buckets": null, 1552 "mode": "time", 1553 "name": null, 1554 "show": true, 1555 "values": [] 1556 }, 1557 "yaxes": [ 1558 { 1559 "format": "short", 1560 "label": null, 1561 "logBase": 1, 1562 "max": null, 1563 "min": "0", 1564 "show": true 1565 }, 1566 { 1567 "format": "short", 1568 "label": null, 1569 "logBase": 1, 1570 "max": null, 1571 "min": null, 1572 "show": true 1573 } 1574 ], 1575 "yaxis": { 1576 "align": false, 1577 "alignLevel": null 1578 } 1579 }, 1580 { 1581 "aliasColors": {}, 1582 "bars": false, 1583 "dashLength": 10, 1584 "dashes": false, 1585 "datasource": "gdev-postgres-ds-tests", 1586 "fill": 2, 1587 "gridPos": { 1588 "h": 8, 1589 "w": 12, 1590 "x": 12, 1591 "y": 43 1592 }, 1593 "id": 18, 1594 "legend": { 1595 "alignAsTable": true, 1596 "avg": true, 1597 "current": true, 1598 "max": true, 1599 "min": true, 1600 "rightSide": true, 1601 "show": true, 1602 "total": true, 1603 "values": true 1604 }, 1605 "lines": true, 1606 "linewidth": 2, 1607 "links": [], 1608 "nullPointMode": "null", 1609 "percentage": false, 1610 "pointradius": 3, 1611 "points": false, 1612 "renderer": "flot", 1613 "seriesOverrides": [], 1614 "spaceLength": 10, 1615 "stack": true, 1616 "steppedLine": false, 1617 "targets": [ 1618 { 1619 "alias": "", 1620 "format": "time_series", 1621 "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 1622 "refId": "A" 1623 } 1624 ], 1625 "thresholds": [], 1626 "timeFrom": null, 1627 "timeShift": null, 1628 "title": "Multiple series without metric column - stacked", 1629 "tooltip": { 1630 "shared": true, 1631 "sort": 0, 1632 "value_type": "individual" 1633 }, 1634 "type": "graph", 1635 "xaxis": { 1636 "buckets": null, 1637 "mode": "time", 1638 "name": null, 1639 "show": true, 1640 "values": [] 1641 }, 1642 "yaxes": [ 1643 { 1644 "format": "short", 1645 "label": null, 1646 "logBase": 1, 1647 "max": null, 1648 "min": "0", 1649 "show": true 1650 }, 1651 { 1652 "format": "short", 1653 "label": null, 1654 "logBase": 1, 1655 "max": null, 1656 "min": null, 1657 "show": true 1658 } 1659 ], 1660 "yaxis": { 1661 "align": false, 1662 "alignLevel": null 1663 } 1664 }, 1665 { 1666 "aliasColors": {}, 1667 "bars": false, 1668 "dashLength": 10, 1669 "dashes": false, 1670 "datasource": "gdev-postgres-ds-tests", 1671 "fill": 2, 1672 "gridPos": { 1673 "h": 8, 1674 "w": 12, 1675 "x": 0, 1676 "y": 51 1677 }, 1678 "id": 17, 1679 "legend": { 1680 "alignAsTable": true, 1681 "avg": true, 1682 "current": true, 1683 "hideEmpty": false, 1684 "hideZero": false, 1685 "max": true, 1686 "min": true, 1687 "rightSide": true, 1688 "show": true, 1689 "total": true, 1690 "values": true 1691 }, 1692 "lines": true, 1693 "linewidth": 2, 1694 "links": [], 1695 "nullPointMode": "null", 1696 "percentage": true, 1697 "pointradius": 3, 1698 "points": false, 1699 "renderer": "flot", 1700 "seriesOverrides": [], 1701 "spaceLength": 10, 1702 "stack": true, 1703 "steppedLine": false, 1704 "targets": [ 1705 { 1706 "alias": "", 1707 "format": "time_series", 1708 "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 1709 "refId": "A" 1710 } 1711 ], 1712 "thresholds": [], 1713 "timeFrom": null, 1714 "timeShift": null, 1715 "title": "Multiple series with metric column - stacked percent", 1716 "tooltip": { 1717 "shared": true, 1718 "sort": 0, 1719 "value_type": "individual" 1720 }, 1721 "type": "graph", 1722 "xaxis": { 1723 "buckets": null, 1724 "mode": "time", 1725 "name": null, 1726 "show": true, 1727 "values": [] 1728 }, 1729 "yaxes": [ 1730 { 1731 "format": "short", 1732 "label": null, 1733 "logBase": 1, 1734 "max": null, 1735 "min": "0", 1736 "show": true 1737 }, 1738 { 1739 "format": "short", 1740 "label": null, 1741 "logBase": 1, 1742 "max": null, 1743 "min": null, 1744 "show": true 1745 } 1746 ], 1747 "yaxis": { 1748 "align": false, 1749 "alignLevel": null 1750 } 1751 }, 1752 { 1753 "aliasColors": {}, 1754 "bars": false, 1755 "dashLength": 10, 1756 "dashes": false, 1757 "datasource": "gdev-postgres-ds-tests", 1758 "fill": 2, 1759 "gridPos": { 1760 "h": 8, 1761 "w": 12, 1762 "x": 12, 1763 "y": 51 1764 }, 1765 "id": 20, 1766 "legend": { 1767 "alignAsTable": true, 1768 "avg": true, 1769 "current": true, 1770 "max": true, 1771 "min": true, 1772 "rightSide": true, 1773 "show": true, 1774 "total": true, 1775 "values": true 1776 }, 1777 "lines": true, 1778 "linewidth": 2, 1779 "links": [], 1780 "nullPointMode": "null", 1781 "percentage": true, 1782 "pointradius": 3, 1783 "points": false, 1784 "renderer": "flot", 1785 "seriesOverrides": [], 1786 "spaceLength": 10, 1787 "stack": true, 1788 "steppedLine": false, 1789 "targets": [ 1790 { 1791 "alias": "", 1792 "format": "time_series", 1793 "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 1794 "refId": "A" 1795 } 1796 ], 1797 "thresholds": [], 1798 "timeFrom": null, 1799 "timeShift": null, 1800 "title": "Multiple series without metric column - stacked percent", 1801 "tooltip": { 1802 "shared": true, 1803 "sort": 0, 1804 "value_type": "individual" 1805 }, 1806 "type": "graph", 1807 "xaxis": { 1808 "buckets": null, 1809 "mode": "time", 1810 "name": null, 1811 "show": true, 1812 "values": [] 1813 }, 1814 "yaxes": [ 1815 { 1816 "format": "short", 1817 "label": null, 1818 "logBase": 1, 1819 "max": null, 1820 "min": "0", 1821 "show": true 1822 }, 1823 { 1824 "format": "short", 1825 "label": null, 1826 "logBase": 1, 1827 "max": null, 1828 "min": null, 1829 "show": true 1830 } 1831 ], 1832 "yaxis": { 1833 "align": false, 1834 "alignLevel": null 1835 } 1836 }, 1837 { 1838 "aliasColors": {}, 1839 "bars": true, 1840 "dashLength": 10, 1841 "dashes": false, 1842 "datasource": "gdev-postgres-ds-tests", 1843 "fill": 1, 1844 "gridPos": { 1845 "h": 8, 1846 "w": 12, 1847 "x": 0, 1848 "y": 59 1849 }, 1850 "id": 14, 1851 "legend": { 1852 "alignAsTable": true, 1853 "avg": true, 1854 "current": true, 1855 "max": true, 1856 "min": true, 1857 "rightSide": true, 1858 "show": true, 1859 "total": true, 1860 "values": true 1861 }, 1862 "lines": false, 1863 "linewidth": 1, 1864 "links": [], 1865 "nullPointMode": "null", 1866 "percentage": false, 1867 "pointradius": 5, 1868 "points": false, 1869 "renderer": "flot", 1870 "seriesOverrides": [], 1871 "spaceLength": 10, 1872 "stack": false, 1873 "steppedLine": false, 1874 "targets": [ 1875 { 1876 "alias": "", 1877 "format": "time_series", 1878 "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 1879 "refId": "A" 1880 } 1881 ], 1882 "thresholds": [], 1883 "timeFrom": null, 1884 "timeShift": null, 1885 "title": "Multiple series with metric column - series mode", 1886 "tooltip": { 1887 "shared": false, 1888 "sort": 0, 1889 "value_type": "individual" 1890 }, 1891 "type": "graph", 1892 "xaxis": { 1893 "buckets": null, 1894 "mode": "series", 1895 "name": null, 1896 "show": true, 1897 "values": ["total"] 1898 }, 1899 "yaxes": [ 1900 { 1901 "decimals": null, 1902 "format": "short", 1903 "label": null, 1904 "logBase": 1, 1905 "max": null, 1906 "min": "0", 1907 "show": true 1908 }, 1909 { 1910 "format": "short", 1911 "label": null, 1912 "logBase": 1, 1913 "max": null, 1914 "min": null, 1915 "show": true 1916 } 1917 ], 1918 "yaxis": { 1919 "align": false, 1920 "alignLevel": null 1921 } 1922 }, 1923 { 1924 "aliasColors": {}, 1925 "bars": true, 1926 "dashLength": 10, 1927 "dashes": false, 1928 "datasource": "gdev-postgres-ds-tests", 1929 "fill": 1, 1930 "gridPos": { 1931 "h": 8, 1932 "w": 12, 1933 "x": 12, 1934 "y": 59 1935 }, 1936 "id": 15, 1937 "legend": { 1938 "alignAsTable": true, 1939 "avg": true, 1940 "current": true, 1941 "max": true, 1942 "min": true, 1943 "rightSide": true, 1944 "show": true, 1945 "total": true, 1946 "values": true 1947 }, 1948 "lines": false, 1949 "linewidth": 1, 1950 "links": [], 1951 "nullPointMode": "null", 1952 "percentage": false, 1953 "pointradius": 5, 1954 "points": false, 1955 "renderer": "flot", 1956 "seriesOverrides": [], 1957 "spaceLength": 10, 1958 "stack": false, 1959 "steppedLine": false, 1960 "targets": [ 1961 { 1962 "alias": "", 1963 "format": "time_series", 1964 "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 1965 "refId": "A" 1966 } 1967 ], 1968 "thresholds": [], 1969 "timeFrom": null, 1970 "timeShift": null, 1971 "title": "Multiple series without metric column - series mode", 1972 "tooltip": { 1973 "shared": false, 1974 "sort": 0, 1975 "value_type": "individual" 1976 }, 1977 "type": "graph", 1978 "xaxis": { 1979 "buckets": null, 1980 "mode": "series", 1981 "name": null, 1982 "show": true, 1983 "values": ["total"] 1984 }, 1985 "yaxes": [ 1986 { 1987 "format": "short", 1988 "label": null, 1989 "logBase": 1, 1990 "max": null, 1991 "min": "0", 1992 "show": true 1993 }, 1994 { 1995 "format": "short", 1996 "label": null, 1997 "logBase": 1, 1998 "max": null, 1999 "min": null, 2000 "show": true 2001 } 2002 ], 2003 "yaxis": { 2004 "align": false, 2005 "alignLevel": null 2006 } 2007 }, 2008 { 2009 "aliasColors": {}, 2010 "bars": true, 2011 "dashLength": 10, 2012 "dashes": false, 2013 "datasource": "gdev-postgres-ds-tests", 2014 "fill": 1, 2015 "gridPos": { 2016 "h": 8, 2017 "w": 12, 2018 "x": 0, 2019 "y": 67 2020 }, 2021 "id": 25, 2022 "legend": { 2023 "alignAsTable": true, 2024 "avg": true, 2025 "current": true, 2026 "max": true, 2027 "min": true, 2028 "rightSide": true, 2029 "show": false, 2030 "total": true, 2031 "values": true 2032 }, 2033 "lines": false, 2034 "linewidth": 1, 2035 "links": [], 2036 "nullPointMode": "null", 2037 "percentage": false, 2038 "pointradius": 5, 2039 "points": false, 2040 "renderer": "flot", 2041 "seriesOverrides": [], 2042 "spaceLength": 10, 2043 "stack": false, 2044 "steppedLine": false, 2045 "targets": [ 2046 { 2047 "alias": "", 2048 "format": "time_series", 2049 "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 2050 "refId": "A" 2051 } 2052 ], 2053 "thresholds": [], 2054 "timeFrom": null, 2055 "timeShift": null, 2056 "title": "Multiple series with metric column - histogram", 2057 "tooltip": { 2058 "shared": true, 2059 "sort": 0, 2060 "value_type": "individual" 2061 }, 2062 "type": "graph", 2063 "xaxis": { 2064 "buckets": 50, 2065 "mode": "histogram", 2066 "name": null, 2067 "show": true, 2068 "values": ["current"] 2069 }, 2070 "yaxes": [ 2071 { 2072 "decimals": null, 2073 "format": "short", 2074 "label": null, 2075 "logBase": 1, 2076 "max": null, 2077 "min": "0", 2078 "show": true 2079 }, 2080 { 2081 "format": "short", 2082 "label": null, 2083 "logBase": 1, 2084 "max": null, 2085 "min": null, 2086 "show": true 2087 } 2088 ], 2089 "yaxis": { 2090 "align": false, 2091 "alignLevel": null 2092 } 2093 }, 2094 { 2095 "aliasColors": {}, 2096 "bars": true, 2097 "dashLength": 10, 2098 "dashes": false, 2099 "datasource": "gdev-postgres-ds-tests", 2100 "fill": 1, 2101 "gridPos": { 2102 "h": 8, 2103 "w": 12, 2104 "x": 12, 2105 "y": 67 2106 }, 2107 "id": 22, 2108 "legend": { 2109 "alignAsTable": true, 2110 "avg": true, 2111 "current": true, 2112 "max": true, 2113 "min": true, 2114 "rightSide": true, 2115 "show": false, 2116 "total": true, 2117 "values": true 2118 }, 2119 "lines": false, 2120 "linewidth": 1, 2121 "links": [], 2122 "nullPointMode": "null", 2123 "percentage": false, 2124 "pointradius": 5, 2125 "points": false, 2126 "renderer": "flot", 2127 "seriesOverrides": [], 2128 "spaceLength": 10, 2129 "stack": false, 2130 "steppedLine": false, 2131 "targets": [ 2132 { 2133 "alias": "", 2134 "format": "time_series", 2135 "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values\nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 2136 "refId": "A" 2137 } 2138 ], 2139 "thresholds": [], 2140 "timeFrom": null, 2141 "timeShift": null, 2142 "title": "Multiple series without metric column - histogram", 2143 "tooltip": { 2144 "shared": true, 2145 "sort": 0, 2146 "value_type": "individual" 2147 }, 2148 "type": "graph", 2149 "xaxis": { 2150 "buckets": 100, 2151 "mode": "histogram", 2152 "name": null, 2153 "show": true, 2154 "values": ["total"] 2155 }, 2156 "yaxes": [ 2157 { 2158 "format": "short", 2159 "label": null, 2160 "logBase": 1, 2161 "max": null, 2162 "min": "0", 2163 "show": true 2164 }, 2165 { 2166 "format": "short", 2167 "label": null, 2168 "logBase": 1, 2169 "max": null, 2170 "min": null, 2171 "show": true 2172 } 2173 ], 2174 "yaxis": { 2175 "align": false, 2176 "alignLevel": null 2177 } 2178 }, 2179 { 2180 "aliasColors": {}, 2181 "bars": true, 2182 "dashLength": 10, 2183 "dashes": false, 2184 "datasource": "gdev-postgres-ds-tests", 2185 "fill": 1, 2186 "gridPos": { 2187 "h": 8, 2188 "w": 12, 2189 "x": 0, 2190 "y": 75 2191 }, 2192 "id": 21, 2193 "legend": { 2194 "alignAsTable": true, 2195 "avg": true, 2196 "current": true, 2197 "max": true, 2198 "min": true, 2199 "rightSide": true, 2200 "show": false, 2201 "total": true, 2202 "values": true 2203 }, 2204 "lines": false, 2205 "linewidth": 1, 2206 "links": [], 2207 "nullPointMode": "null", 2208 "percentage": false, 2209 "pointradius": 5, 2210 "points": false, 2211 "renderer": "flot", 2212 "seriesOverrides": [], 2213 "spaceLength": 10, 2214 "stack": true, 2215 "steppedLine": false, 2216 "targets": [ 2217 { 2218 "alias": "", 2219 "format": "time_series", 2220 "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 2221 "refId": "A" 2222 } 2223 ], 2224 "thresholds": [], 2225 "timeFrom": null, 2226 "timeShift": null, 2227 "title": "Multiple series with metric column - histogram stacked", 2228 "tooltip": { 2229 "shared": true, 2230 "sort": 0, 2231 "value_type": "individual" 2232 }, 2233 "type": "graph", 2234 "xaxis": { 2235 "buckets": 20, 2236 "mode": "histogram", 2237 "name": null, 2238 "show": true, 2239 "values": ["current"] 2240 }, 2241 "yaxes": [ 2242 { 2243 "decimals": null, 2244 "format": "short", 2245 "label": null, 2246 "logBase": 1, 2247 "max": null, 2248 "min": "0", 2249 "show": true 2250 }, 2251 { 2252 "format": "short", 2253 "label": null, 2254 "logBase": 1, 2255 "max": null, 2256 "min": null, 2257 "show": true 2258 } 2259 ], 2260 "yaxis": { 2261 "align": false, 2262 "alignLevel": null 2263 } 2264 }, 2265 { 2266 "aliasColors": {}, 2267 "bars": true, 2268 "dashLength": 10, 2269 "dashes": false, 2270 "datasource": "gdev-postgres-ds-tests", 2271 "fill": 1, 2272 "gridPos": { 2273 "h": 8, 2274 "w": 12, 2275 "x": 12, 2276 "y": 75 2277 }, 2278 "id": 26, 2279 "legend": { 2280 "alignAsTable": true, 2281 "avg": true, 2282 "current": true, 2283 "max": true, 2284 "min": true, 2285 "rightSide": true, 2286 "show": false, 2287 "total": true, 2288 "values": true 2289 }, 2290 "lines": false, 2291 "linewidth": 1, 2292 "links": [], 2293 "nullPointMode": "null", 2294 "percentage": false, 2295 "pointradius": 5, 2296 "points": false, 2297 "renderer": "flot", 2298 "seriesOverrides": [], 2299 "spaceLength": 10, 2300 "stack": true, 2301 "steppedLine": false, 2302 "targets": [ 2303 { 2304 "alias": "", 2305 "format": "time_series", 2306 "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 2307 "refId": "A" 2308 } 2309 ], 2310 "thresholds": [], 2311 "timeFrom": null, 2312 "timeShift": null, 2313 "title": "Multiple series without metric column - histogram stacked", 2314 "tooltip": { 2315 "shared": true, 2316 "sort": 0, 2317 "value_type": "individual" 2318 }, 2319 "type": "graph", 2320 "xaxis": { 2321 "buckets": 20, 2322 "mode": "histogram", 2323 "name": null, 2324 "show": true, 2325 "values": ["total"] 2326 }, 2327 "yaxes": [ 2328 { 2329 "format": "short", 2330 "label": null, 2331 "logBase": 1, 2332 "max": null, 2333 "min": "0", 2334 "show": true 2335 }, 2336 { 2337 "format": "short", 2338 "label": null, 2339 "logBase": 1, 2340 "max": null, 2341 "min": null, 2342 "show": true 2343 } 2344 ], 2345 "yaxis": { 2346 "align": false, 2347 "alignLevel": null 2348 } 2349 }, 2350 { 2351 "aliasColors": {}, 2352 "bars": true, 2353 "dashLength": 10, 2354 "dashes": false, 2355 "datasource": "gdev-postgres-ds-tests", 2356 "fill": 1, 2357 "gridPos": { 2358 "h": 8, 2359 "w": 12, 2360 "x": 0, 2361 "y": 83 2362 }, 2363 "id": 23, 2364 "legend": { 2365 "alignAsTable": true, 2366 "avg": true, 2367 "current": true, 2368 "max": true, 2369 "min": true, 2370 "rightSide": true, 2371 "show": false, 2372 "total": true, 2373 "values": true 2374 }, 2375 "lines": false, 2376 "linewidth": 1, 2377 "links": [], 2378 "nullPointMode": "null", 2379 "percentage": true, 2380 "pointradius": 5, 2381 "points": false, 2382 "renderer": "flot", 2383 "seriesOverrides": [], 2384 "spaceLength": 10, 2385 "stack": true, 2386 "steppedLine": false, 2387 "targets": [ 2388 { 2389 "alias": "", 2390 "format": "time_series", 2391 "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 2392 "refId": "A" 2393 } 2394 ], 2395 "thresholds": [], 2396 "timeFrom": null, 2397 "timeShift": null, 2398 "title": "Multiple series with metric column - histogram stacked percent", 2399 "tooltip": { 2400 "shared": true, 2401 "sort": 0, 2402 "value_type": "individual" 2403 }, 2404 "type": "graph", 2405 "xaxis": { 2406 "buckets": 20, 2407 "mode": "histogram", 2408 "name": null, 2409 "show": true, 2410 "values": ["current"] 2411 }, 2412 "yaxes": [ 2413 { 2414 "decimals": null, 2415 "format": "short", 2416 "label": null, 2417 "logBase": 1, 2418 "max": null, 2419 "min": "0", 2420 "show": true 2421 }, 2422 { 2423 "format": "short", 2424 "label": null, 2425 "logBase": 1, 2426 "max": null, 2427 "min": null, 2428 "show": true 2429 } 2430 ], 2431 "yaxis": { 2432 "align": false, 2433 "alignLevel": null 2434 } 2435 }, 2436 { 2437 "aliasColors": {}, 2438 "bars": true, 2439 "dashLength": 10, 2440 "dashes": false, 2441 "datasource": "gdev-postgres-ds-tests", 2442 "fill": 1, 2443 "gridPos": { 2444 "h": 8, 2445 "w": 12, 2446 "x": 12, 2447 "y": 83 2448 }, 2449 "id": 24, 2450 "legend": { 2451 "alignAsTable": true, 2452 "avg": true, 2453 "current": true, 2454 "max": true, 2455 "min": true, 2456 "rightSide": true, 2457 "show": false, 2458 "total": true, 2459 "values": true 2460 }, 2461 "lines": false, 2462 "linewidth": 1, 2463 "links": [], 2464 "nullPointMode": "null", 2465 "percentage": true, 2466 "pointradius": 5, 2467 "points": false, 2468 "renderer": "flot", 2469 "seriesOverrides": [], 2470 "spaceLength": 10, 2471 "stack": true, 2472 "steppedLine": false, 2473 "targets": [ 2474 { 2475 "alias": "", 2476 "format": "time_series", 2477 "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1", 2478 "refId": "A" 2479 } 2480 ], 2481 "thresholds": [], 2482 "timeFrom": null, 2483 "timeShift": null, 2484 "title": "Multiple series without metric column - histogram stacked percent", 2485 "tooltip": { 2486 "shared": true, 2487 "sort": 0, 2488 "value_type": "individual" 2489 }, 2490 "type": "graph", 2491 "xaxis": { 2492 "buckets": 20, 2493 "mode": "histogram", 2494 "name": null, 2495 "show": true, 2496 "values": ["total"] 2497 }, 2498 "yaxes": [ 2499 { 2500 "format": "short", 2501 "label": null, 2502 "logBase": 1, 2503 "max": null, 2504 "min": "0", 2505 "show": true 2506 }, 2507 { 2508 "format": "short", 2509 "label": null, 2510 "logBase": 1, 2511 "max": null, 2512 "min": null, 2513 "show": true 2514 } 2515 ], 2516 "yaxis": { 2517 "align": false, 2518 "alignLevel": null 2519 } 2520 } 2521 ], 2522 "refresh": false, 2523 "schemaVersion": 16, 2524 "style": "dark", 2525 "tags": ["gdev", "postgres", "datasource-test"], 2526 "templating": { 2527 "list": [ 2528 { 2529 "allValue": null, 2530 "current": { 2531 "selected": true, 2532 "tags": [], 2533 "text": "All", 2534 "value": ["$__all"] 2535 }, 2536 "datasource": "gdev-postgres-ds-tests", 2537 "hide": 0, 2538 "includeAll": true, 2539 "label": "Metric", 2540 "multi": true, 2541 "name": "metric", 2542 "options": [ 2543 { 2544 "selected": true, 2545 "text": "All", 2546 "value": "$__all" 2547 }, 2548 { 2549 "selected": false, 2550 "text": "Metric A", 2551 "value": "Metric A" 2552 }, 2553 { 2554 "selected": false, 2555 "text": "Metric B", 2556 "value": "Metric B" 2557 } 2558 ], 2559 "query": "SELECT DISTINCT measurement FROM metric_values", 2560 "refresh": 0, 2561 "regex": "", 2562 "skipUrlSync": false, 2563 "sort": 1, 2564 "tagValuesQuery": "", 2565 "tags": [], 2566 "tagsQuery": "", 2567 "type": "query", 2568 "useTags": false 2569 }, 2570 { 2571 "auto": false, 2572 "auto_count": 30, 2573 "auto_min": "10s", 2574 "current": { 2575 "text": "10m", 2576 "value": "10m" 2577 }, 2578 "hide": 0, 2579 "label": "Interval", 2580 "name": "summarize", 2581 "options": [ 2582 { 2583 "selected": false, 2584 "text": "1s", 2585 "value": "1s" 2586 }, 2587 { 2588 "selected": false, 2589 "text": "10s", 2590 "value": "10s" 2591 }, 2592 { 2593 "selected": false, 2594 "text": "30s", 2595 "value": "30s" 2596 }, 2597 { 2598 "selected": false, 2599 "text": "1m", 2600 "value": "1m" 2601 }, 2602 { 2603 "selected": false, 2604 "text": "5m", 2605 "value": "5m" 2606 }, 2607 { 2608 "selected": true, 2609 "text": "10m", 2610 "value": "10m" 2611 } 2612 ], 2613 "query": "1s,10s,30s,1m,5m,10m", 2614 "refresh": 2, 2615 "skipUrlSync": false, 2616 "type": "interval" 2617 } 2618 ] 2619 }, 2620 "time": { 2621 "from": "2018-03-15T12:30:00.000Z", 2622 "to": "2018-03-15T13:55:01.000Z" 2623 }, 2624 "timepicker": { 2625 "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"], 2626 "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"] 2627 }, 2628 "timezone": "", 2629 "title": "Datasource tests - Postgres (unittest)", 2630 "uid": "vHQdlVziz", 2631 "version": 1 2632} 2633