dns.json (41106B)
1 { 2 "annotations": { 3 "list": [ 4 { 5 "builtIn": 1, 6 "datasource": { 7 "type": "datasource", 8 "uid": "grafana" 9 }, 10 "enable": true, 11 "hide": true, 12 "iconColor": "rgba(0, 211, 255, 1)", 13 "name": "Annotations & Alerts", 14 "target": { 15 "limit": 100, 16 "matchAny": false, 17 "tags": [], 18 "type": "dashboard" 19 }, 20 "type": "dashboard" 21 } 22 ] 23 }, 24 "editable": true, 25 "fiscalYearStartMonth": 0, 26 "graphTooltip": 0, 27 "id": 8, 28 "links": [], 29 "panels": [ 30 { 31 "datasource": { 32 "type": "prometheus", 33 "uid": "prometheus" 34 }, 35 "description": "", 36 "fieldConfig": { 37 "defaults": { 38 "color": { 39 "mode": "thresholds" 40 }, 41 "mappings": [], 42 "thresholds": { 43 "mode": "absolute", 44 "steps": [ 45 { 46 "color": "light-purple", 47 "value": 0 48 } 49 ] 50 } 51 }, 52 "overrides": [] 53 }, 54 "gridPos": { 55 "h": 3, 56 "w": 2, 57 "x": 0, 58 "y": 0 59 }, 60 "id": 79, 61 "maxDataPoints": 100, 62 "options": { 63 "colorMode": "none", 64 "graphMode": "none", 65 "justifyMode": "center", 66 "orientation": "auto", 67 "percentChangeColorMode": "standard", 68 "reduceOptions": { 69 "calcs": ["lastNotNull"], 70 "fields": "/^version$/", 71 "values": false 72 }, 73 "showPercentChange": false, 74 "text": { 75 "valueSize": 15 76 }, 77 "textMode": "value", 78 "wideLayout": true 79 }, 80 "pluginVersion": "12.3.0", 81 "targets": [ 82 { 83 "datasource": { 84 "type": "prometheus", 85 "uid": "prometheus" 86 }, 87 "editorMode": "code", 88 "exemplar": false, 89 "expr": "dnscollector_exporter_build_info{job=~\"$job\"}", 90 "format": "table", 91 "hide": false, 92 "instant": false, 93 "interval": "", 94 "intervalFactor": 1, 95 "legendFormat": "__auto", 96 "range": true, 97 "refId": "A", 98 "step": 240 99 } 100 ], 101 "title": "DNScollector", 102 "type": "stat" 103 }, 104 { 105 "datasource": { 106 "type": "prometheus", 107 "uid": "prometheus" 108 }, 109 "description": "", 110 "fieldConfig": { 111 "defaults": { 112 "color": { 113 "mode": "thresholds" 114 }, 115 "decimals": 0, 116 "mappings": [], 117 "thresholds": { 118 "mode": "absolute", 119 "steps": [ 120 { 121 "color": "light-orange", 122 "value": 0 123 } 124 ] 125 }, 126 "unit": "none" 127 }, 128 "overrides": [] 129 }, 130 "gridPos": { 131 "h": 3, 132 "w": 2, 133 "x": 2, 134 "y": 0 135 }, 136 "id": 56, 137 "maxDataPoints": 100, 138 "options": { 139 "colorMode": "background", 140 "graphMode": "none", 141 "justifyMode": "center", 142 "orientation": "vertical", 143 "percentChangeColorMode": "standard", 144 "reduceOptions": { 145 "calcs": ["lastNotNull"], 146 "fields": "", 147 "values": false 148 }, 149 "showPercentChange": false, 150 "text": {}, 151 "textMode": "auto", 152 "wideLayout": true 153 }, 154 "pluginVersion": "12.3.0", 155 "targets": [ 156 { 157 "datasource": { 158 "type": "prometheus", 159 "uid": "prometheus" 160 }, 161 "editorMode": "code", 162 "exemplar": true, 163 "expr": "count(sum(dnscollector_exporter_dnsmessages_total{job=~\"$job\", stream_id=~\"$stream_id\"}) by (stream_id))", 164 "format": "time_series", 165 "hide": false, 166 "interval": "", 167 "intervalFactor": 1, 168 "legendFormat": " ", 169 "range": true, 170 "refId": "A", 171 "step": 240 172 } 173 ], 174 "title": "Total Streams", 175 "type": "stat" 176 }, 177 { 178 "datasource": { 179 "type": "prometheus", 180 "uid": "prometheus" 181 }, 182 "description": "", 183 "fieldConfig": { 184 "defaults": { 185 "color": { 186 "mode": "thresholds" 187 }, 188 "decimals": 0, 189 "mappings": [], 190 "thresholds": { 191 "mode": "absolute", 192 "steps": [ 193 { 194 "color": "dark-orange", 195 "value": 0 196 } 197 ] 198 }, 199 "unit": "ops" 200 }, 201 "overrides": [] 202 }, 203 "gridPos": { 204 "h": 3, 205 "w": 2, 206 "x": 4, 207 "y": 0 208 }, 209 "id": 40, 210 "maxDataPoints": 100, 211 "options": { 212 "colorMode": "background", 213 "graphMode": "area", 214 "justifyMode": "auto", 215 "orientation": "auto", 216 "percentChangeColorMode": "standard", 217 "reduceOptions": { 218 "calcs": ["lastNotNull"], 219 "fields": "", 220 "values": false 221 }, 222 "showPercentChange": false, 223 "text": {}, 224 "textMode": "value_and_name", 225 "wideLayout": true 226 }, 227 "pluginVersion": "12.3.0", 228 "targets": [ 229 { 230 "datasource": { 231 "type": "prometheus", 232 "uid": "prometheus" 233 }, 234 "editorMode": "code", 235 "exemplar": true, 236 "expr": "sum (dnscollector_exporter_throughput_ops{job=~\"$job\", stream_id=~\"$stream_id\"})", 237 "format": "time_series", 238 "hide": false, 239 "interval": "", 240 "intervalFactor": 1, 241 "legendFormat": " ", 242 "range": true, 243 "refId": "A", 244 "step": 240 245 } 246 ], 247 "title": "Throughput", 248 "type": "stat" 249 }, 250 { 251 "datasource": { 252 "type": "prometheus", 253 "uid": "prometheus" 254 }, 255 "description": "", 256 "fieldConfig": { 257 "defaults": { 258 "color": { 259 "mode": "thresholds" 260 }, 261 "decimals": 0, 262 "mappings": [], 263 "thresholds": { 264 "mode": "absolute", 265 "steps": [ 266 { 267 "color": "light-orange", 268 "value": 0 269 } 270 ] 271 }, 272 "unit": "ops" 273 }, 274 "overrides": [] 275 }, 276 "gridPos": { 277 "h": 3, 278 "w": 2, 279 "x": 6, 280 "y": 0 281 }, 282 "id": 78, 283 "maxDataPoints": 100, 284 "options": { 285 "colorMode": "background", 286 "graphMode": "none", 287 "justifyMode": "center", 288 "orientation": "auto", 289 "percentChangeColorMode": "standard", 290 "reduceOptions": { 291 "calcs": ["lastNotNull"], 292 "fields": "", 293 "values": false 294 }, 295 "showPercentChange": false, 296 "text": {}, 297 "textMode": "auto", 298 "wideLayout": true 299 }, 300 "pluginVersion": "12.3.0", 301 "targets": [ 302 { 303 "datasource": { 304 "type": "prometheus", 305 "uid": "prometheus" 306 }, 307 "editorMode": "code", 308 "exemplar": true, 309 "expr": "sum (dnscollector_exporter_throughput_ops_max{job=~\"$job\", stream_id=~\"$stream_id\"})", 310 "format": "time_series", 311 "hide": false, 312 "interval": "", 313 "intervalFactor": 1, 314 "legendFormat": "Maximum", 315 "range": true, 316 "refId": "A", 317 "step": 240 318 } 319 ], 320 "title": "Maximum", 321 "type": "stat" 322 }, 323 { 324 "datasource": { 325 "type": "prometheus", 326 "uid": "prometheus" 327 }, 328 "description": "", 329 "fieldConfig": { 330 "defaults": { 331 "color": { 332 "mode": "thresholds" 333 }, 334 "mappings": [], 335 "thresholds": { 336 "mode": "absolute", 337 "steps": [ 338 { 339 "color": "blue", 340 "value": 0 341 } 342 ] 343 }, 344 "unit": "short" 345 }, 346 "overrides": [] 347 }, 348 "gridPos": { 349 "h": 3, 350 "w": 3, 351 "x": 8, 352 "y": 0 353 }, 354 "id": 77, 355 "maxDataPoints": 100, 356 "options": { 357 "colorMode": "background", 358 "graphMode": "none", 359 "justifyMode": "center", 360 "orientation": "horizontal", 361 "percentChangeColorMode": "standard", 362 "reduceOptions": { 363 "calcs": ["lastNotNull"], 364 "fields": "", 365 "values": false 366 }, 367 "showPercentChange": false, 368 "text": {}, 369 "textMode": "auto", 370 "wideLayout": true 371 }, 372 "pluginVersion": "12.3.0", 373 "targets": [ 374 { 375 "datasource": { 376 "type": "prometheus", 377 "uid": "prometheus" 378 }, 379 "editorMode": "code", 380 "exemplar": true, 381 "expr": "sum (dnscollector_exporter_total_requesters_lru{job=~\"$job\", stream_id=~\"$stream_id\"})", 382 "format": "time_series", 383 "hide": false, 384 "interval": "", 385 "intervalFactor": 1, 386 "legendFormat": " ", 387 "range": true, 388 "refId": "A", 389 "step": 240 390 } 391 ], 392 "title": "Total Clients", 393 "type": "stat" 394 }, 395 { 396 "datasource": { 397 "type": "prometheus", 398 "uid": "prometheus" 399 }, 400 "description": "", 401 "fieldConfig": { 402 "defaults": { 403 "color": { 404 "mode": "thresholds" 405 }, 406 "mappings": [], 407 "thresholds": { 408 "mode": "absolute", 409 "steps": [ 410 { 411 "color": "blue", 412 "value": 0 413 } 414 ] 415 }, 416 "unit": "short" 417 }, 418 "overrides": [] 419 }, 420 "gridPos": { 421 "h": 3, 422 "w": 3, 423 "x": 11, 424 "y": 0 425 }, 426 "id": 27, 427 "maxDataPoints": 100, 428 "options": { 429 "colorMode": "background", 430 "graphMode": "none", 431 "justifyMode": "center", 432 "orientation": "horizontal", 433 "percentChangeColorMode": "standard", 434 "reduceOptions": { 435 "calcs": ["lastNotNull"], 436 "fields": "", 437 "values": false 438 }, 439 "showPercentChange": false, 440 "text": {}, 441 "textMode": "auto", 442 "wideLayout": true 443 }, 444 "pluginVersion": "12.3.0", 445 "targets": [ 446 { 447 "datasource": { 448 "type": "prometheus", 449 "uid": "prometheus" 450 }, 451 "editorMode": "code", 452 "exemplar": true, 453 "expr": "sum (dnscollector_exporter_total_domains_lru{job=~\"$job\", stream_id=~\"$stream_id\"})", 454 "format": "time_series", 455 "hide": false, 456 "interval": "", 457 "intervalFactor": 1, 458 "legendFormat": " ", 459 "range": true, 460 "refId": "A", 461 "step": 240 462 } 463 ], 464 "title": "Total Domains", 465 "type": "stat" 466 }, 467 { 468 "datasource": { 469 "type": "prometheus", 470 "uid": "prometheus" 471 }, 472 "description": "", 473 "fieldConfig": { 474 "defaults": { 475 "color": { 476 "mode": "thresholds" 477 }, 478 "mappings": [], 479 "thresholds": { 480 "mode": "absolute", 481 "steps": [ 482 { 483 "color": "blue", 484 "value": 0 485 } 486 ] 487 }, 488 "unit": "decbytes" 489 }, 490 "overrides": [] 491 }, 492 "gridPos": { 493 "h": 3, 494 "w": 2, 495 "x": 14, 496 "y": 0 497 }, 498 "id": 81, 499 "maxDataPoints": 100, 500 "options": { 501 "colorMode": "background", 502 "graphMode": "none", 503 "justifyMode": "center", 504 "orientation": "horizontal", 505 "percentChangeColorMode": "standard", 506 "reduceOptions": { 507 "calcs": ["lastNotNull"], 508 "fields": "", 509 "values": false 510 }, 511 "showPercentChange": false, 512 "text": {}, 513 "textMode": "auto", 514 "wideLayout": true 515 }, 516 "pluginVersion": "12.3.0", 517 "targets": [ 518 { 519 "datasource": { 520 "type": "prometheus", 521 "uid": "prometheus" 522 }, 523 "editorMode": "code", 524 "exemplar": true, 525 "expr": "sum (dnscollector_exporter_bytes_total{job=~\"$job\", stream_id=~\"$stream_id\"})", 526 "format": "time_series", 527 "hide": false, 528 "interval": "", 529 "intervalFactor": 1, 530 "legendFormat": " ", 531 "range": true, 532 "refId": "A", 533 "step": 240 534 } 535 ], 536 "title": "Total Bytes", 537 "type": "stat" 538 }, 539 { 540 "datasource": { 541 "type": "prometheus", 542 "uid": "prometheus" 543 }, 544 "fieldConfig": { 545 "defaults": { 546 "color": { 547 "mode": "palette-classic" 548 }, 549 "custom": { 550 "axisBorderShow": false, 551 "axisCenteredZero": false, 552 "axisColorMode": "text", 553 "axisLabel": "", 554 "axisPlacement": "auto", 555 "barAlignment": 0, 556 "barWidthFactor": 0.6, 557 "drawStyle": "line", 558 "fillOpacity": 10, 559 "gradientMode": "none", 560 "hideFrom": { 561 "legend": false, 562 "tooltip": false, 563 "viz": false 564 }, 565 "insertNulls": false, 566 "lineInterpolation": "linear", 567 "lineWidth": 1, 568 "pointSize": 5, 569 "scaleDistribution": { 570 "type": "linear" 571 }, 572 "showPoints": "never", 573 "showValues": false, 574 "spanNulls": true, 575 "stacking": { 576 "group": "A", 577 "mode": "none" 578 }, 579 "thresholdsStyle": { 580 "mode": "off" 581 } 582 }, 583 "mappings": [], 584 "thresholds": { 585 "mode": "absolute", 586 "steps": [ 587 { 588 "color": "green", 589 "value": 0 590 }, 591 { 592 "color": "red", 593 "value": 80 594 } 595 ] 596 }, 597 "unit": "short" 598 }, 599 "overrides": [] 600 }, 601 "gridPos": { 602 "h": 6, 603 "w": 8, 604 "x": 16, 605 "y": 0 606 }, 607 "id": 84, 608 "options": { 609 "legend": { 610 "calcs": ["mean", "min", "max"], 611 "displayMode": "list", 612 "placement": "bottom", 613 "showLegend": true 614 }, 615 "tooltip": { 616 "hideZeros": false, 617 "mode": "single", 618 "sort": "none" 619 } 620 }, 621 "pluginVersion": "12.3.0", 622 "targets": [ 623 { 624 "datasource": { 625 "type": "prometheus", 626 "uid": "prometheus" 627 }, 628 "editorMode": "code", 629 "exemplar": true, 630 "expr": "sum (increase(dnscollector_exporter_dnsmessages_total{job=~\"$job\",stream_id=~\"$stream_id\"}[5m]))", 631 "interval": "", 632 "legendFormat": "Pkts [5m] rate", 633 "range": true, 634 "refId": "A" 635 } 636 ], 637 "title": "Packets [rate-5m]", 638 "type": "timeseries" 639 }, 640 { 641 "datasource": { 642 "type": "prometheus", 643 "uid": "prometheus" 644 }, 645 "fieldConfig": { 646 "defaults": { 647 "color": { 648 "mode": "palette-classic" 649 }, 650 "custom": { 651 "hideFrom": { 652 "legend": false, 653 "tooltip": false, 654 "viz": false 655 } 656 }, 657 "mappings": [], 658 "unit": "short" 659 }, 660 "overrides": [] 661 }, 662 "gridPos": { 663 "h": 8, 664 "w": 4, 665 "x": 0, 666 "y": 3 667 }, 668 "id": 93, 669 "options": { 670 "displayLabels": ["percent"], 671 "legend": { 672 "displayMode": "list", 673 "placement": "bottom", 674 "showLegend": true, 675 "values": ["percent"] 676 }, 677 "pieType": "donut", 678 "reduceOptions": { 679 "calcs": ["lastNotNull"], 680 "fields": "", 681 "values": false 682 }, 683 "sort": "desc", 684 "tooltip": { 685 "hideZeros": false, 686 "mode": "single", 687 "sort": "none" 688 } 689 }, 690 "pluginVersion": "12.3.0", 691 "targets": [ 692 { 693 "datasource": { 694 "type": "prometheus", 695 "uid": "prometheus" 696 }, 697 "editorMode": "code", 698 "exemplar": true, 699 "expr": "sum by (operation) (increase(dnscollector_exporter_operations_total{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range])) != 0", 700 "format": "time_series", 701 "instant": false, 702 "interval": "", 703 "legendFormat": "__auto", 704 "refId": "A" 705 } 706 ], 707 "title": "DNS messages per operations", 708 "type": "piechart" 709 }, 710 { 711 "datasource": { 712 "type": "prometheus", 713 "uid": "prometheus" 714 }, 715 "fieldConfig": { 716 "defaults": { 717 "color": { 718 "mode": "palette-classic" 719 }, 720 "custom": { 721 "hideFrom": { 722 "legend": false, 723 "tooltip": false, 724 "viz": false 725 } 726 }, 727 "mappings": [], 728 "unit": "short" 729 }, 730 "overrides": [] 731 }, 732 "gridPos": { 733 "h": 8, 734 "w": 4, 735 "x": 4, 736 "y": 3 737 }, 738 "id": 74, 739 "options": { 740 "displayLabels": ["percent"], 741 "legend": { 742 "displayMode": "list", 743 "placement": "bottom", 744 "showLegend": true, 745 "values": ["percent"] 746 }, 747 "pieType": "donut", 748 "reduceOptions": { 749 "calcs": ["lastNotNull"], 750 "fields": "", 751 "values": false 752 }, 753 "sort": "desc", 754 "tooltip": { 755 "hideZeros": false, 756 "mode": "single", 757 "sort": "none" 758 } 759 }, 760 "pluginVersion": "12.3.0", 761 "targets": [ 762 { 763 "datasource": { 764 "type": "prometheus", 765 "uid": "prometheus" 766 }, 767 "editorMode": "code", 768 "exemplar": true, 769 "expr": "sum by (return_code) (increase(dnscollector_exporter_rcodes_total{job=~\"$job\", stream_id=~\"$stream_id\", return_code!=\"-\"}[$__range])) != 0", 770 "format": "time_series", 771 "instant": false, 772 "interval": "", 773 "legendFormat": "{{query_type}}", 774 "refId": "A" 775 } 776 ], 777 "title": "Replies per return code", 778 "type": "piechart" 779 }, 780 { 781 "datasource": { 782 "type": "prometheus", 783 "uid": "prometheus" 784 }, 785 "fieldConfig": { 786 "defaults": { 787 "color": { 788 "mode": "palette-classic" 789 }, 790 "custom": { 791 "hideFrom": { 792 "legend": false, 793 "tooltip": false, 794 "viz": false 795 } 796 }, 797 "mappings": [], 798 "unit": "short" 799 }, 800 "overrides": [] 801 }, 802 "gridPos": { 803 "h": 8, 804 "w": 5, 805 "x": 8, 806 "y": 3 807 }, 808 "id": 70, 809 "options": { 810 "displayLabels": ["percent"], 811 "legend": { 812 "displayMode": "table", 813 "placement": "right", 814 "showLegend": true, 815 "values": ["percent"] 816 }, 817 "pieType": "donut", 818 "reduceOptions": { 819 "calcs": ["lastNotNull"], 820 "fields": "", 821 "values": false 822 }, 823 "sort": "desc", 824 "tooltip": { 825 "hideZeros": false, 826 "mode": "single", 827 "sort": "none" 828 } 829 }, 830 "pluginVersion": "12.3.0", 831 "targets": [ 832 { 833 "datasource": { 834 "type": "prometheus", 835 "uid": "prometheus" 836 }, 837 "editorMode": "code", 838 "exemplar": true, 839 "expr": "sum by (query_type) (increase(dnscollector_exporter_qtypes_total{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range])) != 0", 840 "format": "time_series", 841 "instant": false, 842 "interval": "", 843 "legendFormat": "{{query_type}}", 844 "refId": "A" 845 } 846 ], 847 "title": "Queries per type", 848 "type": "piechart" 849 }, 850 { 851 "datasource": { 852 "type": "prometheus", 853 "uid": "prometheus" 854 }, 855 "fieldConfig": { 856 "defaults": { 857 "color": { 858 "mode": "palette-classic" 859 }, 860 "custom": { 861 "hideFrom": { 862 "legend": false, 863 "tooltip": false, 864 "viz": false 865 } 866 }, 867 "mappings": [] 868 }, 869 "overrides": [] 870 }, 871 "gridPos": { 872 "h": 4, 873 "w": 3, 874 "x": 13, 875 "y": 3 876 }, 877 "id": 76, 878 "options": { 879 "legend": { 880 "displayMode": "table", 881 "placement": "right", 882 "showLegend": true, 883 "values": ["percent"] 884 }, 885 "pieType": "donut", 886 "reduceOptions": { 887 "calcs": ["lastNotNull"], 888 "fields": "", 889 "values": false 890 }, 891 "sort": "desc", 892 "tooltip": { 893 "hideZeros": false, 894 "mode": "single", 895 "sort": "none" 896 } 897 }, 898 "pluginVersion": "12.3.0", 899 "targets": [ 900 { 901 "datasource": { 902 "type": "prometheus", 903 "uid": "prometheus" 904 }, 905 "editorMode": "code", 906 "exemplar": true, 907 "expr": "sum by (net_transport) (increase(dnscollector_exporter_ipprotocol_total{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range])) != 0", 908 "format": "time_series", 909 "hide": false, 910 "instant": false, 911 "interval": "", 912 "legendFormat": "{{net_transport}}", 913 "refId": "B" 914 } 915 ], 916 "title": "Transports", 917 "type": "piechart" 918 }, 919 { 920 "datasource": { 921 "type": "prometheus", 922 "uid": "prometheus" 923 }, 924 "description": "", 925 "fieldConfig": { 926 "defaults": { 927 "color": { 928 "mode": "palette-classic" 929 }, 930 "custom": { 931 "axisBorderShow": false, 932 "axisCenteredZero": false, 933 "axisColorMode": "text", 934 "axisLabel": "", 935 "axisPlacement": "auto", 936 "barAlignment": 0, 937 "barWidthFactor": 0.6, 938 "drawStyle": "line", 939 "fillOpacity": 10, 940 "gradientMode": "none", 941 "hideFrom": { 942 "legend": false, 943 "tooltip": false, 944 "viz": false 945 }, 946 "insertNulls": false, 947 "lineInterpolation": "linear", 948 "lineWidth": 1, 949 "pointSize": 5, 950 "scaleDistribution": { 951 "type": "linear" 952 }, 953 "showPoints": "never", 954 "showValues": false, 955 "spanNulls": true, 956 "stacking": { 957 "group": "A", 958 "mode": "none" 959 }, 960 "thresholdsStyle": { 961 "mode": "off" 962 } 963 }, 964 "decimals": 2, 965 "mappings": [], 966 "thresholds": { 967 "mode": "absolute", 968 "steps": [ 969 { 970 "color": "green", 971 "value": 0 972 }, 973 { 974 "color": "red", 975 "value": 80 976 } 977 ] 978 }, 979 "unit": "short" 980 }, 981 "overrides": [] 982 }, 983 "gridPos": { 984 "h": 5, 985 "w": 8, 986 "x": 16, 987 "y": 6 988 }, 989 "id": 92, 990 "options": { 991 "legend": { 992 "calcs": [], 993 "displayMode": "list", 994 "placement": "right", 995 "showLegend": true 996 }, 997 "tooltip": { 998 "hideZeros": false, 999 "mode": "single", 1000 "sort": "none" 1001 } 1002 }, 1003 "pluginVersion": "12.3.0", 1004 "targets": [ 1005 { 1006 "datasource": { 1007 "type": "prometheus", 1008 "uid": "prometheus" 1009 }, 1010 "editorMode": "code", 1011 "exemplar": true, 1012 "expr": "topk(20,sum(rate(dnscollector_exporter_top_requesters{job=~\"$job\", stream_id=~\"$stream_id\"}[5m])) by (ip))", 1013 "interval": "", 1014 "legendFormat": "{{ip}}", 1015 "range": true, 1016 "refId": "A" 1017 } 1018 ], 1019 "title": "Top Clients [rate-5m] ", 1020 "type": "timeseries" 1021 }, 1022 { 1023 "datasource": { 1024 "type": "prometheus", 1025 "uid": "prometheus" 1026 }, 1027 "fieldConfig": { 1028 "defaults": { 1029 "color": { 1030 "mode": "palette-classic" 1031 }, 1032 "custom": { 1033 "hideFrom": { 1034 "legend": false, 1035 "tooltip": false, 1036 "viz": false 1037 } 1038 }, 1039 "mappings": [] 1040 }, 1041 "overrides": [ 1042 { 1043 "matcher": { 1044 "id": "byName", 1045 "options": "INET" 1046 }, 1047 "properties": [ 1048 { 1049 "id": "displayName", 1050 "value": "IPv4" 1051 } 1052 ] 1053 } 1054 ] 1055 }, 1056 "gridPos": { 1057 "h": 4, 1058 "w": 3, 1059 "x": 13, 1060 "y": 7 1061 }, 1062 "id": 75, 1063 "options": { 1064 "legend": { 1065 "displayMode": "table", 1066 "placement": "right", 1067 "showLegend": true, 1068 "values": ["percent"] 1069 }, 1070 "pieType": "donut", 1071 "reduceOptions": { 1072 "calcs": ["lastNotNull"], 1073 "fields": "", 1074 "values": false 1075 }, 1076 "sort": "desc", 1077 "tooltip": { 1078 "hideZeros": false, 1079 "mode": "single", 1080 "sort": "none" 1081 } 1082 }, 1083 "pluginVersion": "12.3.0", 1084 "targets": [ 1085 { 1086 "datasource": { 1087 "type": "prometheus", 1088 "uid": "prometheus" 1089 }, 1090 "editorMode": "code", 1091 "exemplar": true, 1092 "expr": "sum by (net_family) (increase(dnscollector_exporter_ipversion_total{job=~\"$job\", stream_id=~\"$stream_id\", return_code != \"-\"}[$__range])) != 0", 1093 "format": "time_series", 1094 "hide": false, 1095 "instant": false, 1096 "interval": "", 1097 "legendFormat": "{{net_family}}", 1098 "refId": "B" 1099 } 1100 ], 1101 "title": "IP Protocols", 1102 "type": "piechart" 1103 }, 1104 { 1105 "datasource": { 1106 "type": "prometheus", 1107 "uid": "prometheus" 1108 }, 1109 "description": "", 1110 "fieldConfig": { 1111 "defaults": { 1112 "color": { 1113 "mode": "thresholds" 1114 }, 1115 "custom": { 1116 "align": "auto", 1117 "cellOptions": { 1118 "type": "auto" 1119 }, 1120 "filterable": true, 1121 "footer": { 1122 "reducers": [] 1123 }, 1124 "inspect": false 1125 }, 1126 "decimals": 0, 1127 "mappings": [], 1128 "thresholds": { 1129 "mode": "absolute", 1130 "steps": [ 1131 { 1132 "color": "green", 1133 "value": 0 1134 }, 1135 { 1136 "color": "red", 1137 "value": 80 1138 } 1139 ] 1140 }, 1141 "unit": "none" 1142 }, 1143 "overrides": [ 1144 { 1145 "matcher": { 1146 "id": "byName", 1147 "options": "Domains" 1148 }, 1149 "properties": [ 1150 { 1151 "id": "custom.width", 1152 "value": 1040 1153 } 1154 ] 1155 } 1156 ] 1157 }, 1158 "gridPos": { 1159 "h": 11, 1160 "w": 16, 1161 "x": 0, 1162 "y": 11 1163 }, 1164 "id": 62, 1165 "options": { 1166 "cellHeight": "sm", 1167 "enablePagination": false, 1168 "frameIndex": 0, 1169 "showHeader": true, 1170 "sortBy": [] 1171 }, 1172 "pluginVersion": "12.3.0", 1173 "targets": [ 1174 { 1175 "datasource": { 1176 "type": "prometheus", 1177 "uid": "prometheus" 1178 }, 1179 "editorMode": "code", 1180 "exemplar": false, 1181 "expr": "topk(20, sum by(domain) (increase(dnscollector_exporter_top_noerror_domains{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", 1182 "format": "table", 1183 "instant": true, 1184 "interval": "", 1185 "legendFormat": "", 1186 "range": false, 1187 "refId": "NOERROR" 1188 }, 1189 { 1190 "datasource": { 1191 "type": "prometheus", 1192 "uid": "prometheus" 1193 }, 1194 "editorMode": "code", 1195 "exemplar": true, 1196 "expr": "topk(20, sum by(domain) (increase(dnscollector_exporter_top_nonexistent_domains{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", 1197 "format": "table", 1198 "hide": false, 1199 "instant": true, 1200 "interval": "", 1201 "legendFormat": "__auto", 1202 "refId": "NXDOMAIN" 1203 }, 1204 { 1205 "datasource": { 1206 "type": "prometheus", 1207 "uid": "prometheus" 1208 }, 1209 "editorMode": "code", 1210 "exemplar": true, 1211 "expr": "topk(20, sum by(domain) (increase(dnscollector_exporter_top_servfail_domains{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", 1212 "format": "table", 1213 "hide": false, 1214 "instant": true, 1215 "interval": "", 1216 "legendFormat": "__auto", 1217 "refId": "SERVFAIL" 1218 }, 1219 { 1220 "datasource": { 1221 "type": "prometheus", 1222 "uid": "prometheus" 1223 }, 1224 "editorMode": "code", 1225 "exemplar": true, 1226 "expr": "topk(20, sum by(domain) (increase(dnscollector_exporter_top_suspicious{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", 1227 "format": "table", 1228 "hide": false, 1229 "instant": true, 1230 "interval": "", 1231 "legendFormat": "__auto", 1232 "refId": "Suspicious" 1233 }, 1234 { 1235 "datasource": { 1236 "type": "prometheus", 1237 "uid": "prometheus" 1238 }, 1239 "editorMode": "code", 1240 "exemplar": true, 1241 "expr": "topk(20, sum by(suffix) (increase(dnscollector_exporter_top_tlds{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", 1242 "format": "table", 1243 "hide": false, 1244 "instant": true, 1245 "interval": "", 1246 "legendFormat": "__auto", 1247 "refId": "TLDS" 1248 }, 1249 { 1250 "datasource": { 1251 "type": "prometheus", 1252 "uid": "prometheus" 1253 }, 1254 "editorMode": "code", 1255 "exemplar": true, 1256 "expr": "topk(20, sum by(ip) (increase(dnscollector_exporter_top_requesters{job=~\"$job\", stream_id=~\"$stream_id\"}[$__range]))) != 0", 1257 "format": "table", 1258 "hide": false, 1259 "instant": true, 1260 "interval": "", 1261 "legendFormat": "__auto", 1262 "refId": "CLIENTS" 1263 } 1264 ], 1265 "title": "Top", 1266 "transformations": [ 1267 { 1268 "id": "renameByRegex", 1269 "options": { 1270 "regex": "Value #NOERROR", 1271 "renamePattern": "NoError Hits" 1272 } 1273 }, 1274 { 1275 "id": "renameByRegex", 1276 "options": { 1277 "regex": "Value #NXDOMAIN", 1278 "renamePattern": "NonExistent Hits" 1279 } 1280 }, 1281 { 1282 "id": "renameByRegex", 1283 "options": { 1284 "regex": "Value #SERVFAIL", 1285 "renamePattern": "ServFail Hits" 1286 } 1287 }, 1288 { 1289 "id": "renameByRegex", 1290 "options": { 1291 "regex": "domain", 1292 "renamePattern": "Top Domains" 1293 } 1294 }, 1295 { 1296 "id": "renameByRegex", 1297 "options": { 1298 "regex": "Value #Suspicious", 1299 "renamePattern": "Suspicious Hits" 1300 } 1301 }, 1302 { 1303 "id": "renameByRegex", 1304 "options": { 1305 "regex": "Value #TLDS", 1306 "renamePattern": "TLDs Hits" 1307 } 1308 }, 1309 { 1310 "id": "renameByRegex", 1311 "options": { 1312 "regex": "Value #CLIENTS", 1313 "renamePattern": "Clients Hits" 1314 } 1315 }, 1316 { 1317 "id": "renameByRegex", 1318 "options": { 1319 "regex": "ip", 1320 "renamePattern": "Top Query IPs" 1321 } 1322 }, 1323 { 1324 "id": "renameByRegex", 1325 "options": { 1326 "regex": "suffix", 1327 "renamePattern": "Top TLDs" 1328 } 1329 }, 1330 { 1331 "id": "groupBy", 1332 "options": { 1333 "fields": { 1334 "Clients Hits": { 1335 "aggregations": [], 1336 "operation": "groupby" 1337 }, 1338 "NoError Hits": { 1339 "aggregations": [], 1340 "operation": "groupby" 1341 }, 1342 "NonExistent Hits": { 1343 "aggregations": [], 1344 "operation": "groupby" 1345 }, 1346 "ServFail Hits": { 1347 "aggregations": [], 1348 "operation": "groupby" 1349 }, 1350 "Suspicious Hits": { 1351 "aggregations": [], 1352 "operation": "groupby" 1353 }, 1354 "TLDs Hits": { 1355 "aggregations": [], 1356 "operation": "groupby" 1357 }, 1358 "Top Domains": { 1359 "aggregations": [], 1360 "operation": "groupby" 1361 }, 1362 "Top Query IPs": { 1363 "aggregations": [], 1364 "operation": "groupby" 1365 }, 1366 "Top TLDs": { 1367 "aggregations": [], 1368 "operation": "groupby" 1369 } 1370 } 1371 } 1372 } 1373 ], 1374 "type": "table" 1375 }, 1376 { 1377 "datasource": { 1378 "type": "prometheus", 1379 "uid": "prometheus" 1380 }, 1381 "description": "", 1382 "fieldConfig": { 1383 "defaults": { 1384 "color": { 1385 "mode": "palette-classic" 1386 }, 1387 "custom": { 1388 "axisBorderShow": false, 1389 "axisCenteredZero": false, 1390 "axisColorMode": "text", 1391 "axisLabel": "", 1392 "axisPlacement": "auto", 1393 "barAlignment": 0, 1394 "barWidthFactor": 0.6, 1395 "drawStyle": "line", 1396 "fillOpacity": 11, 1397 "gradientMode": "none", 1398 "hideFrom": { 1399 "legend": false, 1400 "tooltip": false, 1401 "viz": false 1402 }, 1403 "insertNulls": false, 1404 "lineInterpolation": "linear", 1405 "lineStyle": { 1406 "fill": "solid" 1407 }, 1408 "lineWidth": 1, 1409 "pointSize": 5, 1410 "scaleDistribution": { 1411 "type": "linear" 1412 }, 1413 "showPoints": "auto", 1414 "showValues": false, 1415 "spanNulls": false, 1416 "stacking": { 1417 "group": "A", 1418 "mode": "none" 1419 }, 1420 "thresholdsStyle": { 1421 "mode": "off" 1422 } 1423 }, 1424 "decimals": 2, 1425 "mappings": [], 1426 "thresholds": { 1427 "mode": "absolute", 1428 "steps": [ 1429 { 1430 "color": "green", 1431 "value": 0 1432 }, 1433 { 1434 "color": "red", 1435 "value": 80 1436 } 1437 ] 1438 } 1439 }, 1440 "overrides": [] 1441 }, 1442 "gridPos": { 1443 "h": 6, 1444 "w": 8, 1445 "x": 16, 1446 "y": 11 1447 }, 1448 "id": 88, 1449 "options": { 1450 "legend": { 1451 "calcs": [], 1452 "displayMode": "list", 1453 "placement": "right", 1454 "showLegend": true 1455 }, 1456 "tooltip": { 1457 "hideZeros": false, 1458 "mode": "single", 1459 "sort": "none" 1460 } 1461 }, 1462 "pluginVersion": "12.3.0", 1463 "targets": [ 1464 { 1465 "datasource": { 1466 "type": "prometheus", 1467 "uid": "prometheus" 1468 }, 1469 "editorMode": "code", 1470 "exemplar": true, 1471 "expr": "sum(rate(dnscollector_exporter_qtypes_total{job=~\"$job\",stream_id=~\"$stream_id\"}[5m])) by (query_type)", 1472 "interval": "", 1473 "legendFormat": "{{ query_type }}", 1474 "range": true, 1475 "refId": "A" 1476 } 1477 ], 1478 "title": "Packet by Qtype [rate-5m]", 1479 "type": "timeseries" 1480 }, 1481 { 1482 "datasource": { 1483 "type": "prometheus", 1484 "uid": "prometheus" 1485 }, 1486 "description": "", 1487 "fieldConfig": { 1488 "defaults": { 1489 "color": { 1490 "mode": "palette-classic" 1491 }, 1492 "custom": { 1493 "axisBorderShow": false, 1494 "axisCenteredZero": false, 1495 "axisColorMode": "text", 1496 "axisLabel": "", 1497 "axisPlacement": "auto", 1498 "barAlignment": 0, 1499 "barWidthFactor": 0.6, 1500 "drawStyle": "line", 1501 "fillOpacity": 11, 1502 "gradientMode": "none", 1503 "hideFrom": { 1504 "legend": false, 1505 "tooltip": false, 1506 "viz": false 1507 }, 1508 "insertNulls": false, 1509 "lineInterpolation": "linear", 1510 "lineStyle": { 1511 "fill": "solid" 1512 }, 1513 "lineWidth": 1, 1514 "pointSize": 5, 1515 "scaleDistribution": { 1516 "type": "linear" 1517 }, 1518 "showPoints": "auto", 1519 "showValues": false, 1520 "spanNulls": false, 1521 "stacking": { 1522 "group": "A", 1523 "mode": "none" 1524 }, 1525 "thresholdsStyle": { 1526 "mode": "off" 1527 } 1528 }, 1529 "decimals": 2, 1530 "mappings": [], 1531 "thresholds": { 1532 "mode": "absolute", 1533 "steps": [ 1534 { 1535 "color": "green", 1536 "value": 0 1537 }, 1538 { 1539 "color": "red", 1540 "value": 80 1541 } 1542 ] 1543 } 1544 }, 1545 "overrides": [] 1546 }, 1547 "gridPos": { 1548 "h": 5, 1549 "w": 8, 1550 "x": 16, 1551 "y": 17 1552 }, 1553 "id": 90, 1554 "options": { 1555 "legend": { 1556 "calcs": [], 1557 "displayMode": "list", 1558 "placement": "right", 1559 "showLegend": true 1560 }, 1561 "tooltip": { 1562 "hideZeros": false, 1563 "mode": "single", 1564 "sort": "none" 1565 } 1566 }, 1567 "pluginVersion": "12.3.0", 1568 "targets": [ 1569 { 1570 "datasource": { 1571 "type": "prometheus", 1572 "uid": "prometheus" 1573 }, 1574 "editorMode": "code", 1575 "exemplar": true, 1576 "expr": "sum(rate(dnscollector_exporter_rcodes_total{job=~\"$job\", stream_id=~\"$stream_id\", return_code!=\"-\"}[5m])) by ( return_code )", 1577 "interval": "", 1578 "legendFormat": "{{ return_code }}", 1579 "range": true, 1580 "refId": "A" 1581 } 1582 ], 1583 "title": "Packet by Return Code [rate-5m]", 1584 "type": "timeseries" 1585 } 1586 ], 1587 "preload": false, 1588 "refresh": "5s", 1589 "schemaVersion": 42, 1590 "tags": [], 1591 "templating": { 1592 "list": [ 1593 { 1594 "current": { 1595 "text": "static", 1596 "value": "static" 1597 }, 1598 "datasource": { 1599 "type": "prometheus", 1600 "uid": "prometheus" 1601 }, 1602 "definition": "label_values(job)", 1603 "includeAll": false, 1604 "label": "Job", 1605 "name": "job", 1606 "options": [], 1607 "query": { 1608 "query": "label_values(job)", 1609 "refId": "StandardVariableQuery" 1610 }, 1611 "refresh": 1, 1612 "regex": "/dnscollector.*/", 1613 "type": "query" 1614 }, 1615 { 1616 "current": { 1617 "text": ["All"], 1618 "value": ["$__all"] 1619 }, 1620 "datasource": { 1621 "type": "prometheus", 1622 "uid": "prometheus" 1623 }, 1624 "definition": "label_values({job=\"$job\"},stream_id)", 1625 "includeAll": true, 1626 "label": "Stream", 1627 "multi": true, 1628 "name": "stream_id", 1629 "options": [], 1630 "query": { 1631 "query": "label_values({job=\"$job\"},stream_id)", 1632 "refId": "StandardVariableQuery" 1633 }, 1634 "refresh": 1, 1635 "regex": "", 1636 "type": "query" 1637 } 1638 ] 1639 }, 1640 "time": { 1641 "from": "now-5m", 1642 "to": "now" 1643 }, 1644 "timepicker": {}, 1645 "timezone": "", 1646 "title": "DNScollector - Dashboard for Prometheus", 1647 "uid": "6uPErf6nz", 1648 "version": 1 1649 }