├── LICENSE ├── README.md ├── dashboards_v1 ├── Crowdsec_Details_per_Machine.json ├── Crowdsec_Insight.json └── Crowdsec_Overview.json ├── dashboards_v2 ├── Crowdsec_Details_per_Machine.json ├── Crowdsec_Insight.json └── Crowdsec_Overview.json ├── dashboards_v3 ├── Crowdsec_Details_per_Machine.json ├── Crowdsec_Insight.json └── Crowdsec_Overview.json ├── dashboards_v4 ├── Crowdsec Details per Machine.json ├── Crowdsec Insight.json ├── Crowdsec Overview.json └── LAPI Metrics.json └── dashboards_v5 ├── Crowdsec Details per Machine.json ├── Crowdsec Insight.json ├── Crowdsec Overview.json └── LAPI Metrics.json /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 crowdsecurity 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # grafana-dashboards 2 | 3 | Grafana dashboards for Crowdsec monitoring using Prometheus 4 | 5 | - `./dashboards_v4` are compatible with releases `v1.4.X` 6 | 7 | - `./dashboards_v5` are compatible with releases `v1.5.X` (tested with Grafana 10.0 and Grafana cloud) 8 | 9 | ![](https://doc.crowdsec.net/Crowdsec/v0/assets/images/grafana_overview.png) 10 | 11 | ![](https://doc.crowdsec.net/Crowdsec/v0/assets/images/grafana_insight.png) 12 | 13 | ![](https://doc.crowdsec.net/Crowdsec/v0/assets/images/grafana_details.png) 14 | 15 | 16 | ## Legacy dashboards 17 | 18 | - `./dashboards_v1` are compatible for releases `v0.3.0-rc0` and below. 19 | 20 | - `./dashboards_v2` are compatible for releases `v0.3.0-rc1`, up to `v1.0.X`. 21 | 22 | - `./dashboards_v3` are compatible for releases `v1.1.X` and up. 23 | 24 | ## Prometheus config (for v4 and earlier versions) 25 | 26 | For dashboards v4 and earlier, label is used to filter on individual machines. It's recommended to follow this config example: 27 | 28 | ```yaml 29 | - job_name: 'crowdsec_myMachine' 30 | static_configs: 31 | - targets: ['1.2.3.4:6060'] 32 | labels: 33 | machine: 'my_machine' 34 | ``` 35 | -------------------------------------------------------------------------------- /dashboards_v1/Crowdsec_Details_per_Machine.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "grafana", 15 | "id": "grafana", 16 | "name": "Grafana", 17 | "version": "6.7.3" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "graph", 22 | "name": "Graph", 23 | "version": "" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | }, 31 | { 32 | "type": "panel", 33 | "id": "singlestat", 34 | "name": "Singlestat", 35 | "version": "" 36 | } 37 | ], 38 | "annotations": { 39 | "list": [ 40 | { 41 | "builtIn": 1, 42 | "datasource": "-- Grafana --", 43 | "enable": true, 44 | "hide": true, 45 | "iconColor": "rgba(0, 211, 255, 1)", 46 | "name": "Annotations & Alerts", 47 | "type": "dashboard" 48 | } 49 | ] 50 | }, 51 | "editable": true, 52 | "gnetId": null, 53 | "graphTooltip": 0, 54 | "id": null, 55 | "iteration": 1597756553957, 56 | "links": [], 57 | "panels": [ 58 | { 59 | "aliasColors": {}, 60 | "bars": false, 61 | "cacheTimeout": null, 62 | "dashLength": 10, 63 | "dashes": false, 64 | "datasource": "${DS_PROMETHEUS}", 65 | "fill": 1, 66 | "fillGradient": 0, 67 | "gridPos": { 68 | "h": 11, 69 | "w": 12, 70 | "x": 0, 71 | "y": 0 72 | }, 73 | "hiddenSeries": false, 74 | "id": 18, 75 | "legend": { 76 | "alignAsTable": false, 77 | "avg": false, 78 | "current": false, 79 | "max": false, 80 | "min": false, 81 | "rightSide": false, 82 | "show": false, 83 | "total": false, 84 | "values": false 85 | }, 86 | "lines": true, 87 | "linewidth": 1, 88 | "links": [], 89 | "nullPointMode": "null", 90 | "options": { 91 | "dataLinks": [] 92 | }, 93 | "percentage": false, 94 | "pointradius": 2, 95 | "points": false, 96 | "renderer": "flot", 97 | "seriesOverrides": [], 98 | "spaceLength": 10, 99 | "stack": false, 100 | "steppedLine": false, 101 | "targets": [ 102 | { 103 | "expr": "process_resident_memory_bytes{machine=\"$machine\"}", 104 | "interval": "", 105 | "intervalFactor": 1, 106 | "legendFormat": "", 107 | "refId": "A" 108 | } 109 | ], 110 | "thresholds": [], 111 | "timeFrom": null, 112 | "timeRegions": [], 113 | "timeShift": null, 114 | "title": "Process Mem Usage", 115 | "tooltip": { 116 | "shared": true, 117 | "sort": 0, 118 | "value_type": "individual" 119 | }, 120 | "transparent": true, 121 | "type": "graph", 122 | "xaxis": { 123 | "buckets": null, 124 | "mode": "time", 125 | "name": null, 126 | "show": true, 127 | "values": [] 128 | }, 129 | "yaxes": [ 130 | { 131 | "format": "decbytes", 132 | "label": null, 133 | "logBase": 1, 134 | "max": null, 135 | "min": null, 136 | "show": true 137 | }, 138 | { 139 | "format": "short", 140 | "label": null, 141 | "logBase": 1, 142 | "max": null, 143 | "min": null, 144 | "show": true 145 | } 146 | ], 147 | "yaxis": { 148 | "align": false, 149 | "alignLevel": null 150 | } 151 | }, 152 | { 153 | "aliasColors": {}, 154 | "bars": false, 155 | "dashLength": 10, 156 | "dashes": false, 157 | "datasource": "${DS_PROMETHEUS}", 158 | "fill": 1, 159 | "fillGradient": 0, 160 | "gridPos": { 161 | "h": 11, 162 | "w": 12, 163 | "x": 12, 164 | "y": 0 165 | }, 166 | "hiddenSeries": false, 167 | "id": 20, 168 | "legend": { 169 | "avg": false, 170 | "current": false, 171 | "max": false, 172 | "min": false, 173 | "show": false, 174 | "total": false, 175 | "values": false 176 | }, 177 | "lines": true, 178 | "linewidth": 1, 179 | "nullPointMode": "null", 180 | "options": { 181 | "dataLinks": [] 182 | }, 183 | "percentage": false, 184 | "pointradius": 2, 185 | "points": false, 186 | "renderer": "flot", 187 | "seriesOverrides": [], 188 | "spaceLength": 10, 189 | "stack": false, 190 | "steppedLine": false, 191 | "targets": [ 192 | { 193 | "expr": "rate(process_cpu_seconds_total{machine=\"$machine\"}[$__interval])*100", 194 | "interval": "", 195 | "intervalFactor": 2, 196 | "legendFormat": "", 197 | "refId": "A" 198 | } 199 | ], 200 | "thresholds": [], 201 | "timeFrom": null, 202 | "timeRegions": [], 203 | "timeShift": null, 204 | "title": "Process CPU Usage", 205 | "tooltip": { 206 | "shared": true, 207 | "sort": 0, 208 | "value_type": "individual" 209 | }, 210 | "transparent": true, 211 | "type": "graph", 212 | "xaxis": { 213 | "buckets": null, 214 | "mode": "time", 215 | "name": null, 216 | "show": true, 217 | "values": [] 218 | }, 219 | "yaxes": [ 220 | { 221 | "format": "percent", 222 | "label": null, 223 | "logBase": 1, 224 | "max": null, 225 | "min": null, 226 | "show": true 227 | }, 228 | { 229 | "format": "short", 230 | "label": null, 231 | "logBase": 1, 232 | "max": null, 233 | "min": null, 234 | "show": true 235 | } 236 | ], 237 | "yaxis": { 238 | "align": false, 239 | "alignLevel": null 240 | } 241 | }, 242 | { 243 | "cacheTimeout": null, 244 | "colorBackground": false, 245 | "colorValue": false, 246 | "colors": [ 247 | "#299c46", 248 | "rgba(237, 129, 40, 0.89)", 249 | "#d44a3a" 250 | ], 251 | "datasource": "${DS_PROMETHEUS}", 252 | "format": "dateTimeAsIso", 253 | "gauge": { 254 | "maxValue": 100, 255 | "minValue": 0, 256 | "show": false, 257 | "thresholdLabels": false, 258 | "thresholdMarkers": true 259 | }, 260 | "gridPos": { 261 | "h": 9, 262 | "w": 5, 263 | "x": 0, 264 | "y": 11 265 | }, 266 | "id": 16, 267 | "interval": null, 268 | "links": [], 269 | "mappingType": 1, 270 | "mappingTypes": [ 271 | { 272 | "name": "value to text", 273 | "value": 1 274 | }, 275 | { 276 | "name": "range to text", 277 | "value": 2 278 | } 279 | ], 280 | "maxDataPoints": 100, 281 | "nullPointMode": "connected", 282 | "nullText": null, 283 | "pluginVersion": "6.7.3", 284 | "postfix": "", 285 | "postfixFontSize": "50%", 286 | "prefix": "", 287 | "prefixFontSize": "50%", 288 | "rangeMaps": [ 289 | { 290 | "from": "null", 291 | "text": "N/A", 292 | "to": "null" 293 | } 294 | ], 295 | "sparkline": { 296 | "fillColor": "rgba(31, 118, 189, 0.18)", 297 | "full": false, 298 | "lineColor": "rgb(31, 120, 193)", 299 | "show": false, 300 | "ymax": null, 301 | "ymin": null 302 | }, 303 | "tableColumn": "", 304 | "targets": [ 305 | { 306 | "expr": "(process_start_time_seconds{machine=\"$machine\"})*1000", 307 | "instant": false, 308 | "interval": "", 309 | "intervalFactor": 1, 310 | "legendFormat": "", 311 | "refId": "A" 312 | } 313 | ], 314 | "thresholds": "", 315 | "timeFrom": null, 316 | "timeShift": null, 317 | "title": "Up Since", 318 | "transparent": true, 319 | "type": "singlestat", 320 | "valueFontSize": "120%", 321 | "valueMaps": [ 322 | { 323 | "op": "=", 324 | "text": "N/A", 325 | "value": "null" 326 | } 327 | ], 328 | "valueName": "current" 329 | }, 330 | { 331 | "aliasColors": {}, 332 | "bars": false, 333 | "dashLength": 10, 334 | "dashes": false, 335 | "datasource": "${DS_PROMETHEUS}", 336 | "decimals": 1, 337 | "fill": 1, 338 | "fillGradient": 0, 339 | "gridPos": { 340 | "h": 9, 341 | "w": 19, 342 | "x": 5, 343 | "y": 11 344 | }, 345 | "hiddenSeries": false, 346 | "id": 2, 347 | "legend": { 348 | "alignAsTable": true, 349 | "avg": false, 350 | "current": false, 351 | "max": false, 352 | "min": false, 353 | "rightSide": true, 354 | "show": true, 355 | "sort": "total", 356 | "sortDesc": true, 357 | "total": true, 358 | "values": true 359 | }, 360 | "lines": true, 361 | "linewidth": 1, 362 | "nullPointMode": "null", 363 | "options": { 364 | "dataLinks": [] 365 | }, 366 | "percentage": false, 367 | "pointradius": 2, 368 | "points": false, 369 | "renderer": "flot", 370 | "seriesOverrides": [], 371 | "spaceLength": 10, 372 | "stack": false, 373 | "steppedLine": false, 374 | "targets": [ 375 | { 376 | "expr": "sum(increase(cs_reader_hits{machine=\"$machine\"}[$__interval])) by (source)", 377 | "interval": "", 378 | "intervalFactor": 2, 379 | "legendFormat": "{{source}}", 380 | "refId": "A" 381 | } 382 | ], 383 | "thresholds": [], 384 | "timeFrom": null, 385 | "timeRegions": [], 386 | "timeShift": null, 387 | "title": "Acquisition", 388 | "tooltip": { 389 | "shared": true, 390 | "sort": 0, 391 | "value_type": "individual" 392 | }, 393 | "transparent": true, 394 | "type": "graph", 395 | "xaxis": { 396 | "buckets": null, 397 | "mode": "time", 398 | "name": null, 399 | "show": true, 400 | "values": [] 401 | }, 402 | "yaxes": [ 403 | { 404 | "format": "short", 405 | "label": null, 406 | "logBase": 1, 407 | "max": null, 408 | "min": null, 409 | "show": true 410 | }, 411 | { 412 | "format": "short", 413 | "label": null, 414 | "logBase": 1, 415 | "max": null, 416 | "min": null, 417 | "show": true 418 | } 419 | ], 420 | "yaxis": { 421 | "align": false, 422 | "alignLevel": null 423 | } 424 | }, 425 | { 426 | "aliasColors": {}, 427 | "bars": false, 428 | "dashLength": 10, 429 | "dashes": false, 430 | "datasource": "${DS_PROMETHEUS}", 431 | "decimals": 1, 432 | "fill": 1, 433 | "fillGradient": 0, 434 | "gridPos": { 435 | "h": 8, 436 | "w": 24, 437 | "x": 0, 438 | "y": 20 439 | }, 440 | "hiddenSeries": false, 441 | "id": 4, 442 | "legend": { 443 | "alignAsTable": true, 444 | "avg": false, 445 | "current": false, 446 | "max": false, 447 | "min": false, 448 | "rightSide": true, 449 | "show": true, 450 | "sort": "total", 451 | "sortDesc": true, 452 | "total": true, 453 | "values": true 454 | }, 455 | "lines": true, 456 | "linewidth": 1, 457 | "nullPointMode": "null", 458 | "options": { 459 | "dataLinks": [] 460 | }, 461 | "percentage": false, 462 | "pointradius": 2, 463 | "points": false, 464 | "renderer": "flot", 465 | "seriesOverrides": [], 466 | "spaceLength": 10, 467 | "stack": false, 468 | "steppedLine": false, 469 | "targets": [ 470 | { 471 | "expr": "sum(increase(cs_parser_hits_ok{machine=\"$machine\"}[$__interval])) by (source)", 472 | "interval": "", 473 | "intervalFactor": 2, 474 | "legendFormat": "{{source}}", 475 | "refId": "A" 476 | } 477 | ], 478 | "thresholds": [], 479 | "timeFrom": null, 480 | "timeRegions": [], 481 | "timeShift": null, 482 | "title": "Parsed lines", 483 | "tooltip": { 484 | "shared": true, 485 | "sort": 0, 486 | "value_type": "individual" 487 | }, 488 | "transparent": true, 489 | "type": "graph", 490 | "xaxis": { 491 | "buckets": null, 492 | "mode": "time", 493 | "name": null, 494 | "show": true, 495 | "values": [] 496 | }, 497 | "yaxes": [ 498 | { 499 | "format": "short", 500 | "label": null, 501 | "logBase": 1, 502 | "max": null, 503 | "min": null, 504 | "show": true 505 | }, 506 | { 507 | "format": "short", 508 | "label": null, 509 | "logBase": 1, 510 | "max": null, 511 | "min": null, 512 | "show": true 513 | } 514 | ], 515 | "yaxis": { 516 | "align": false, 517 | "alignLevel": null 518 | } 519 | }, 520 | { 521 | "aliasColors": {}, 522 | "bars": false, 523 | "dashLength": 10, 524 | "dashes": false, 525 | "datasource": "${DS_PROMETHEUS}", 526 | "decimals": 1, 527 | "fill": 1, 528 | "fillGradient": 0, 529 | "gridPos": { 530 | "h": 8, 531 | "w": 24, 532 | "x": 0, 533 | "y": 28 534 | }, 535 | "hiddenSeries": false, 536 | "id": 6, 537 | "legend": { 538 | "alignAsTable": true, 539 | "avg": false, 540 | "current": false, 541 | "max": false, 542 | "min": false, 543 | "rightSide": true, 544 | "show": true, 545 | "sort": "total", 546 | "sortDesc": true, 547 | "total": true, 548 | "values": true 549 | }, 550 | "lines": true, 551 | "linewidth": 1, 552 | "nullPointMode": "null", 553 | "options": { 554 | "dataLinks": [] 555 | }, 556 | "percentage": false, 557 | "pointradius": 2, 558 | "points": false, 559 | "renderer": "flot", 560 | "seriesOverrides": [], 561 | "spaceLength": 10, 562 | "stack": false, 563 | "steppedLine": false, 564 | "targets": [ 565 | { 566 | "expr": "sum(increase(cs_parser_hits_ko{machine=\"$machine\"}[$__interval])) by (source)", 567 | "interval": "", 568 | "intervalFactor": 2, 569 | "legendFormat": "{{source}}", 570 | "refId": "A" 571 | } 572 | ], 573 | "thresholds": [], 574 | "timeFrom": null, 575 | "timeRegions": [], 576 | "timeShift": null, 577 | "title": "Unparsed lines", 578 | "tooltip": { 579 | "shared": true, 580 | "sort": 0, 581 | "value_type": "individual" 582 | }, 583 | "transparent": true, 584 | "type": "graph", 585 | "xaxis": { 586 | "buckets": null, 587 | "mode": "time", 588 | "name": null, 589 | "show": true, 590 | "values": [] 591 | }, 592 | "yaxes": [ 593 | { 594 | "format": "short", 595 | "label": null, 596 | "logBase": 1, 597 | "max": null, 598 | "min": null, 599 | "show": true 600 | }, 601 | { 602 | "format": "short", 603 | "label": null, 604 | "logBase": 1, 605 | "max": null, 606 | "min": null, 607 | "show": true 608 | } 609 | ], 610 | "yaxis": { 611 | "align": false, 612 | "alignLevel": null 613 | } 614 | }, 615 | { 616 | "aliasColors": {}, 617 | "bars": false, 618 | "dashLength": 10, 619 | "dashes": false, 620 | "datasource": "${DS_PROMETHEUS}", 621 | "decimals": 1, 622 | "fill": 1, 623 | "fillGradient": 0, 624 | "gridPos": { 625 | "h": 8, 626 | "w": 24, 627 | "x": 0, 628 | "y": 36 629 | }, 630 | "hiddenSeries": false, 631 | "id": 8, 632 | "legend": { 633 | "alignAsTable": true, 634 | "avg": false, 635 | "current": false, 636 | "max": false, 637 | "min": false, 638 | "rightSide": true, 639 | "show": true, 640 | "sort": "total", 641 | "sortDesc": true, 642 | "total": true, 643 | "values": true 644 | }, 645 | "lines": true, 646 | "linewidth": 1, 647 | "nullPointMode": "null", 648 | "options": { 649 | "dataLinks": [] 650 | }, 651 | "percentage": false, 652 | "pointradius": 2, 653 | "points": false, 654 | "renderer": "flot", 655 | "seriesOverrides": [], 656 | "spaceLength": 10, 657 | "stack": false, 658 | "steppedLine": false, 659 | "targets": [ 660 | { 661 | "expr": "sum(cs_bucket_count{machine=\"$machine\"}) by (name)", 662 | "interval": "", 663 | "legendFormat": "{{name}}", 664 | "refId": "A" 665 | } 666 | ], 667 | "thresholds": [], 668 | "timeFrom": null, 669 | "timeRegions": [], 670 | "timeShift": null, 671 | "title": "Bucket Timeline", 672 | "tooltip": { 673 | "shared": true, 674 | "sort": 0, 675 | "value_type": "individual" 676 | }, 677 | "transparent": true, 678 | "type": "graph", 679 | "xaxis": { 680 | "buckets": null, 681 | "mode": "time", 682 | "name": null, 683 | "show": true, 684 | "values": [] 685 | }, 686 | "yaxes": [ 687 | { 688 | "format": "short", 689 | "label": null, 690 | "logBase": 1, 691 | "max": null, 692 | "min": null, 693 | "show": true 694 | }, 695 | { 696 | "format": "short", 697 | "label": null, 698 | "logBase": 1, 699 | "max": null, 700 | "min": null, 701 | "show": true 702 | } 703 | ], 704 | "yaxis": { 705 | "align": false, 706 | "alignLevel": null 707 | } 708 | }, 709 | { 710 | "aliasColors": {}, 711 | "bars": false, 712 | "dashLength": 10, 713 | "dashes": false, 714 | "datasource": "${DS_PROMETHEUS}", 715 | "decimals": 1, 716 | "fill": 1, 717 | "fillGradient": 0, 718 | "gridPos": { 719 | "h": 9, 720 | "w": 24, 721 | "x": 0, 722 | "y": 44 723 | }, 724 | "hiddenSeries": false, 725 | "id": 12, 726 | "legend": { 727 | "alignAsTable": true, 728 | "avg": false, 729 | "current": false, 730 | "max": false, 731 | "min": false, 732 | "rightSide": true, 733 | "show": true, 734 | "sort": "total", 735 | "sortDesc": true, 736 | "total": true, 737 | "values": true 738 | }, 739 | "lines": true, 740 | "linewidth": 1, 741 | "nullPointMode": "null", 742 | "options": { 743 | "dataLinks": [] 744 | }, 745 | "percentage": false, 746 | "pointradius": 2, 747 | "points": false, 748 | "renderer": "flot", 749 | "seriesOverrides": [], 750 | "spaceLength": 10, 751 | "stack": false, 752 | "steppedLine": false, 753 | "targets": [ 754 | { 755 | "expr": "sum(increase(cs_bucket_create{machine=\"$machine\"}[$__interval])) by (name)", 756 | "interval": "", 757 | "intervalFactor": 2, 758 | "legendFormat": "{{name}}", 759 | "refId": "A" 760 | } 761 | ], 762 | "thresholds": [], 763 | "timeFrom": null, 764 | "timeRegions": [], 765 | "timeShift": null, 766 | "title": "Buckets creation", 767 | "tooltip": { 768 | "shared": true, 769 | "sort": 0, 770 | "value_type": "individual" 771 | }, 772 | "type": "graph", 773 | "xaxis": { 774 | "buckets": null, 775 | "mode": "time", 776 | "name": null, 777 | "show": true, 778 | "values": [] 779 | }, 780 | "yaxes": [ 781 | { 782 | "format": "short", 783 | "label": null, 784 | "logBase": 1, 785 | "max": null, 786 | "min": null, 787 | "show": true 788 | }, 789 | { 790 | "format": "short", 791 | "label": null, 792 | "logBase": 1, 793 | "max": null, 794 | "min": null, 795 | "show": true 796 | } 797 | ], 798 | "yaxis": { 799 | "align": false, 800 | "alignLevel": null 801 | } 802 | }, 803 | { 804 | "aliasColors": {}, 805 | "bars": false, 806 | "dashLength": 10, 807 | "dashes": false, 808 | "datasource": "${DS_PROMETHEUS}", 809 | "decimals": 1, 810 | "fill": 1, 811 | "fillGradient": 0, 812 | "gridPos": { 813 | "h": 8, 814 | "w": 24, 815 | "x": 0, 816 | "y": 53 817 | }, 818 | "hiddenSeries": false, 819 | "id": 11, 820 | "legend": { 821 | "alignAsTable": true, 822 | "avg": false, 823 | "current": false, 824 | "max": false, 825 | "min": false, 826 | "rightSide": true, 827 | "show": true, 828 | "sort": "total", 829 | "sortDesc": true, 830 | "total": true, 831 | "values": true 832 | }, 833 | "lines": true, 834 | "linewidth": 1, 835 | "nullPointMode": "null", 836 | "options": { 837 | "dataLinks": [] 838 | }, 839 | "percentage": false, 840 | "pointradius": 2, 841 | "points": false, 842 | "renderer": "flot", 843 | "seriesOverrides": [], 844 | "spaceLength": 10, 845 | "stack": false, 846 | "steppedLine": false, 847 | "targets": [ 848 | { 849 | "expr": "sum(increase(cs_bucket_overflow{machine=\"$machine\"}[$__interval])) by (name)", 850 | "interval": "", 851 | "intervalFactor": 2, 852 | "legendFormat": "{{name}}", 853 | "refId": "A" 854 | } 855 | ], 856 | "thresholds": [], 857 | "timeFrom": null, 858 | "timeRegions": [], 859 | "timeShift": null, 860 | "title": "Buckets overflow", 861 | "tooltip": { 862 | "shared": true, 863 | "sort": 0, 864 | "value_type": "individual" 865 | }, 866 | "transparent": true, 867 | "type": "graph", 868 | "xaxis": { 869 | "buckets": null, 870 | "mode": "time", 871 | "name": null, 872 | "show": true, 873 | "values": [] 874 | }, 875 | "yaxes": [ 876 | { 877 | "format": "short", 878 | "label": null, 879 | "logBase": 1, 880 | "max": null, 881 | "min": null, 882 | "show": true 883 | }, 884 | { 885 | "format": "short", 886 | "label": null, 887 | "logBase": 1, 888 | "max": null, 889 | "min": null, 890 | "show": true 891 | } 892 | ], 893 | "yaxis": { 894 | "align": false, 895 | "alignLevel": null 896 | } 897 | }, 898 | { 899 | "aliasColors": {}, 900 | "bars": false, 901 | "dashLength": 10, 902 | "dashes": false, 903 | "datasource": "${DS_PROMETHEUS}", 904 | "decimals": 1, 905 | "fill": 1, 906 | "fillGradient": 0, 907 | "gridPos": { 908 | "h": 8, 909 | "w": 24, 910 | "x": 0, 911 | "y": 61 912 | }, 913 | "hiddenSeries": false, 914 | "id": 14, 915 | "legend": { 916 | "alignAsTable": true, 917 | "avg": false, 918 | "current": false, 919 | "max": false, 920 | "min": false, 921 | "rightSide": true, 922 | "show": true, 923 | "sort": "total", 924 | "sortDesc": true, 925 | "total": true, 926 | "values": true 927 | }, 928 | "lines": true, 929 | "linewidth": 1, 930 | "nullPointMode": "null", 931 | "options": { 932 | "dataLinks": [] 933 | }, 934 | "percentage": false, 935 | "pointradius": 2, 936 | "points": false, 937 | "renderer": "flot", 938 | "seriesOverrides": [], 939 | "spaceLength": 10, 940 | "stack": false, 941 | "steppedLine": false, 942 | "targets": [ 943 | { 944 | "expr": "sum(increase(cs_bucket_underflow{machine=\"$machine\"}[$__interval])) by (name)", 945 | "interval": "", 946 | "intervalFactor": 2, 947 | "legendFormat": "{{name}}", 948 | "refId": "A" 949 | } 950 | ], 951 | "thresholds": [], 952 | "timeFrom": null, 953 | "timeRegions": [], 954 | "timeShift": null, 955 | "title": "Buckets underflow", 956 | "tooltip": { 957 | "shared": true, 958 | "sort": 0, 959 | "value_type": "individual" 960 | }, 961 | "transparent": true, 962 | "type": "graph", 963 | "xaxis": { 964 | "buckets": null, 965 | "mode": "time", 966 | "name": null, 967 | "show": true, 968 | "values": [] 969 | }, 970 | "yaxes": [ 971 | { 972 | "format": "short", 973 | "label": null, 974 | "logBase": 1, 975 | "max": null, 976 | "min": null, 977 | "show": true 978 | }, 979 | { 980 | "format": "short", 981 | "label": null, 982 | "logBase": 1, 983 | "max": null, 984 | "min": null, 985 | "show": true 986 | } 987 | ], 988 | "yaxis": { 989 | "align": false, 990 | "alignLevel": null 991 | } 992 | } 993 | ], 994 | "refresh": false, 995 | "schemaVersion": 22, 996 | "style": "dark", 997 | "tags": [], 998 | "templating": { 999 | "list": [ 1000 | { 1001 | "allValue": null, 1002 | "current": {}, 1003 | "datasource": "${DS_PROMETHEUS}", 1004 | "definition": "label_values(up, machine)", 1005 | "hide": 0, 1006 | "includeAll": false, 1007 | "index": -1, 1008 | "label": "machine", 1009 | "multi": false, 1010 | "name": "machine", 1011 | "options": [], 1012 | "query": "label_values(up, machine)", 1013 | "refresh": 1, 1014 | "regex": "", 1015 | "skipUrlSync": false, 1016 | "sort": 1, 1017 | "tagValuesQuery": "", 1018 | "tags": [], 1019 | "tagsQuery": "", 1020 | "type": "query", 1021 | "useTags": false 1022 | } 1023 | ] 1024 | }, 1025 | "time": { 1026 | "from": "now-24h", 1027 | "to": "now" 1028 | }, 1029 | "timepicker": { 1030 | "refresh_intervals": [ 1031 | "5s", 1032 | "10s", 1033 | "30s", 1034 | "1m", 1035 | "5m", 1036 | "15m", 1037 | "30m", 1038 | "1h", 1039 | "2h", 1040 | "1d" 1041 | ] 1042 | }, 1043 | "timezone": "", 1044 | "title": "Crowdsec Details per Machine", 1045 | "uid": "fSmQjO4Gk", 1046 | "variables": { 1047 | "list": [] 1048 | }, 1049 | "version": 21 1050 | } -------------------------------------------------------------------------------- /dashboards_v1/Crowdsec_Insight.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar Gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "gauge", 22 | "name": "Gauge", 23 | "version": "" 24 | }, 25 | { 26 | "type": "grafana", 27 | "id": "grafana", 28 | "name": "Grafana", 29 | "version": "6.7.3" 30 | }, 31 | { 32 | "type": "datasource", 33 | "id": "prometheus", 34 | "name": "Prometheus", 35 | "version": "1.0.0" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "singlestat", 40 | "name": "Singlestat", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "type": "dashboard" 54 | } 55 | ] 56 | }, 57 | "editable": true, 58 | "gnetId": null, 59 | "graphTooltip": 0, 60 | "id": null, 61 | "iteration": 1597756614544, 62 | "links": [], 63 | "panels": [ 64 | { 65 | "cacheTimeout": null, 66 | "colorBackground": false, 67 | "colorValue": false, 68 | "colors": [ 69 | "#299c46", 70 | "rgba(237, 129, 40, 0.89)", 71 | "#d44a3a" 72 | ], 73 | "datasource": "${DS_PROMETHEUS}", 74 | "format": "dateTimeAsIso", 75 | "gauge": { 76 | "maxValue": 100, 77 | "minValue": 0, 78 | "show": false, 79 | "thresholdLabels": false, 80 | "thresholdMarkers": true 81 | }, 82 | "gridPos": { 83 | "h": 9, 84 | "w": 5, 85 | "x": 2, 86 | "y": 0 87 | }, 88 | "id": 2, 89 | "interval": null, 90 | "links": [], 91 | "mappingType": 1, 92 | "mappingTypes": [ 93 | { 94 | "name": "value to text", 95 | "value": 1 96 | }, 97 | { 98 | "name": "range to text", 99 | "value": 2 100 | } 101 | ], 102 | "maxDataPoints": 100, 103 | "nullPointMode": "connected", 104 | "nullText": null, 105 | "postfix": "", 106 | "postfixFontSize": "50%", 107 | "prefix": "", 108 | "prefixFontSize": "50%", 109 | "rangeMaps": [ 110 | { 111 | "from": "null", 112 | "text": "N/A", 113 | "to": "null" 114 | } 115 | ], 116 | "sparkline": { 117 | "fillColor": "rgba(31, 118, 189, 0.18)", 118 | "full": false, 119 | "lineColor": "rgb(31, 120, 193)", 120 | "show": false, 121 | "ymax": null, 122 | "ymin": null 123 | }, 124 | "tableColumn": "", 125 | "targets": [ 126 | { 127 | "expr": "(process_start_time_seconds{machine=\"$machine\"})*1000", 128 | "interval": "", 129 | "legendFormat": "", 130 | "refId": "A" 131 | } 132 | ], 133 | "thresholds": "", 134 | "timeFrom": null, 135 | "timeShift": null, 136 | "title": "Up since", 137 | "type": "singlestat", 138 | "valueFontSize": "120%", 139 | "valueMaps": [ 140 | { 141 | "op": "=", 142 | "text": "N/A", 143 | "value": "null" 144 | } 145 | ], 146 | "valueName": "current" 147 | }, 148 | { 149 | "datasource": "${DS_PROMETHEUS}", 150 | "gridPos": { 151 | "h": 9, 152 | "w": 5, 153 | "x": 7, 154 | "y": 0 155 | }, 156 | "id": 4, 157 | "options": { 158 | "fieldOptions": { 159 | "calcs": [ 160 | "mean" 161 | ], 162 | "defaults": { 163 | "mappings": [], 164 | "thresholds": { 165 | "mode": "absolute", 166 | "steps": [ 167 | { 168 | "color": "green", 169 | "value": null 170 | } 171 | ] 172 | }, 173 | "title": "", 174 | "unit": "decbytes" 175 | }, 176 | "overrides": [], 177 | "values": false 178 | }, 179 | "orientation": "auto", 180 | "showThresholdLabels": false, 181 | "showThresholdMarkers": false 182 | }, 183 | "pluginVersion": "6.7.3", 184 | "targets": [ 185 | { 186 | "expr": "process_resident_memory_bytes{machine=\"$machine\"}", 187 | "format": "time_series", 188 | "interval": "", 189 | "intervalFactor": 3, 190 | "legendFormat": "", 191 | "refId": "A" 192 | } 193 | ], 194 | "timeFrom": null, 195 | "timeShift": null, 196 | "title": "Average Mem Usage", 197 | "transparent": true, 198 | "type": "gauge" 199 | }, 200 | { 201 | "datasource": "${DS_PROMETHEUS}", 202 | "gridPos": { 203 | "h": 9, 204 | "w": 5, 205 | "x": 12, 206 | "y": 0 207 | }, 208 | "id": 6, 209 | "options": { 210 | "fieldOptions": { 211 | "calcs": [ 212 | "mean" 213 | ], 214 | "defaults": { 215 | "mappings": [], 216 | "thresholds": { 217 | "mode": "absolute", 218 | "steps": [ 219 | { 220 | "color": "green", 221 | "value": null 222 | }, 223 | { 224 | "color": "red", 225 | "value": 50 226 | } 227 | ] 228 | }, 229 | "unit": "percent" 230 | }, 231 | "overrides": [], 232 | "values": false 233 | }, 234 | "orientation": "auto", 235 | "showThresholdLabels": false, 236 | "showThresholdMarkers": true 237 | }, 238 | "pluginVersion": "6.7.3", 239 | "targets": [ 240 | { 241 | "expr": "rate(process_cpu_seconds_total{machine=\"$machine\"}[$__interval])*100", 242 | "interval": "", 243 | "intervalFactor": 2, 244 | "legendFormat": "", 245 | "refId": "A" 246 | } 247 | ], 248 | "timeFrom": null, 249 | "timeShift": null, 250 | "title": "Average CPU Usage", 251 | "transparent": true, 252 | "type": "gauge" 253 | }, 254 | { 255 | "cacheTimeout": null, 256 | "colorBackground": true, 257 | "colorValue": false, 258 | "colors": [ 259 | "#A352CC", 260 | "rgba(237, 129, 40, 0.89)", 261 | "#d44a3a" 262 | ], 263 | "datasource": "${DS_PROMETHEUS}", 264 | "format": "none", 265 | "gauge": { 266 | "maxValue": 100, 267 | "minValue": 0, 268 | "show": false, 269 | "thresholdLabels": false, 270 | "thresholdMarkers": true 271 | }, 272 | "gridPos": { 273 | "h": 9, 274 | "w": 5, 275 | "x": 17, 276 | "y": 0 277 | }, 278 | "id": 20, 279 | "interval": null, 280 | "links": [], 281 | "mappingType": 1, 282 | "mappingTypes": [ 283 | { 284 | "name": "value to text", 285 | "value": 1 286 | }, 287 | { 288 | "name": "range to text", 289 | "value": 2 290 | } 291 | ], 292 | "maxDataPoints": 100, 293 | "nullPointMode": "connected", 294 | "nullText": null, 295 | "postfix": "", 296 | "postfixFontSize": "50%", 297 | "prefix": "", 298 | "prefixFontSize": "50%", 299 | "rangeMaps": [ 300 | { 301 | "from": "null", 302 | "text": "N/A", 303 | "to": "null" 304 | } 305 | ], 306 | "sparkline": { 307 | "fillColor": "rgba(31, 118, 189, 0.18)", 308 | "full": false, 309 | "lineColor": "rgb(31, 120, 193)", 310 | "show": false, 311 | "ymax": null, 312 | "ymin": null 313 | }, 314 | "tableColumn": "", 315 | "targets": [ 316 | { 317 | "expr": "process_max_fds{machine=\"$machine\"}", 318 | "interval": "", 319 | "legendFormat": "", 320 | "refId": "A" 321 | } 322 | ], 323 | "thresholds": "", 324 | "timeFrom": null, 325 | "timeShift": null, 326 | "title": "Process Max FDs", 327 | "type": "singlestat", 328 | "valueFontSize": "200%", 329 | "valueMaps": [ 330 | { 331 | "op": "=", 332 | "text": "N/A", 333 | "value": "null" 334 | } 335 | ], 336 | "valueName": "current" 337 | }, 338 | { 339 | "cacheTimeout": null, 340 | "colorBackground": true, 341 | "colorValue": false, 342 | "colors": [ 343 | "#3274D9", 344 | "rgba(237, 129, 40, 0.89)", 345 | "#d44a3a" 346 | ], 347 | "datasource": "${DS_PROMETHEUS}", 348 | "format": "none", 349 | "gauge": { 350 | "maxValue": 100, 351 | "minValue": 0, 352 | "show": false, 353 | "thresholdLabels": false, 354 | "thresholdMarkers": true 355 | }, 356 | "gridPos": { 357 | "h": 9, 358 | "w": 5, 359 | "x": 2, 360 | "y": 9 361 | }, 362 | "id": 11, 363 | "interval": null, 364 | "links": [], 365 | "mappingType": 1, 366 | "mappingTypes": [ 367 | { 368 | "name": "value to text", 369 | "value": 1 370 | }, 371 | { 372 | "name": "range to text", 373 | "value": 2 374 | } 375 | ], 376 | "maxDataPoints": 100, 377 | "nullPointMode": "connected", 378 | "nullText": null, 379 | "postfix": "", 380 | "postfixFontSize": "50%", 381 | "prefix": "", 382 | "prefixFontSize": "50%", 383 | "rangeMaps": [ 384 | { 385 | "from": "null", 386 | "text": "N/A", 387 | "to": "null" 388 | } 389 | ], 390 | "sparkline": { 391 | "fillColor": "rgba(31, 118, 189, 0.18)", 392 | "full": false, 393 | "lineColor": "rgb(31, 120, 193)", 394 | "show": false, 395 | "ymax": null, 396 | "ymin": null 397 | }, 398 | "tableColumn": "", 399 | "targets": [ 400 | { 401 | "expr": "sum(increase(cs_reader_hits{machine=\"$machine\"}[$__interval]))", 402 | "interval": "", 403 | "intervalFactor": 2, 404 | "legendFormat": "", 405 | "refId": "A" 406 | } 407 | ], 408 | "thresholds": "", 409 | "timeFrom": null, 410 | "timeShift": null, 411 | "title": "Total raw lines", 412 | "type": "singlestat", 413 | "valueFontSize": "200%", 414 | "valueMaps": [ 415 | { 416 | "op": "=", 417 | "text": "N/A", 418 | "value": "null" 419 | } 420 | ], 421 | "valueName": "total" 422 | }, 423 | { 424 | "cacheTimeout": null, 425 | "colorBackground": true, 426 | "colorValue": false, 427 | "colors": [ 428 | "#56A64B", 429 | "rgba(237, 129, 40, 0.89)", 430 | "#d44a3a" 431 | ], 432 | "datasource": "${DS_PROMETHEUS}", 433 | "format": "none", 434 | "gauge": { 435 | "maxValue": 100, 436 | "minValue": 0, 437 | "show": false, 438 | "thresholdLabels": false, 439 | "thresholdMarkers": true 440 | }, 441 | "gridPos": { 442 | "h": 9, 443 | "w": 5, 444 | "x": 7, 445 | "y": 9 446 | }, 447 | "id": 12, 448 | "interval": null, 449 | "links": [], 450 | "mappingType": 1, 451 | "mappingTypes": [ 452 | { 453 | "name": "value to text", 454 | "value": 1 455 | }, 456 | { 457 | "name": "range to text", 458 | "value": 2 459 | } 460 | ], 461 | "maxDataPoints": 100, 462 | "nullPointMode": "connected", 463 | "nullText": null, 464 | "postfix": "", 465 | "postfixFontSize": "50%", 466 | "prefix": "", 467 | "prefixFontSize": "50%", 468 | "rangeMaps": [ 469 | { 470 | "from": "null", 471 | "text": "N/A", 472 | "to": "null" 473 | } 474 | ], 475 | "sparkline": { 476 | "fillColor": "rgba(31, 118, 189, 0.18)", 477 | "full": false, 478 | "lineColor": "rgb(31, 120, 193)", 479 | "show": false, 480 | "ymax": null, 481 | "ymin": null 482 | }, 483 | "tableColumn": "", 484 | "targets": [ 485 | { 486 | "expr": "sum(increase(cs_parser_hits_ok{machine=\"$machine\"}[$__interval]))", 487 | "interval": "", 488 | "intervalFactor": 2, 489 | "legendFormat": "", 490 | "refId": "A" 491 | } 492 | ], 493 | "thresholds": "", 494 | "timeFrom": null, 495 | "timeShift": null, 496 | "title": "Total parsed lines", 497 | "type": "singlestat", 498 | "valueFontSize": "200%", 499 | "valueMaps": [ 500 | { 501 | "op": "=", 502 | "text": "N/A", 503 | "value": "null" 504 | } 505 | ], 506 | "valueName": "total" 507 | }, 508 | { 509 | "cacheTimeout": null, 510 | "colorBackground": true, 511 | "colorValue": false, 512 | "colors": [ 513 | "#FF780A", 514 | "rgba(237, 129, 40, 0.89)", 515 | "#d44a3a" 516 | ], 517 | "datasource": "${DS_PROMETHEUS}", 518 | "format": "short", 519 | "gauge": { 520 | "maxValue": 100, 521 | "minValue": 0, 522 | "show": false, 523 | "thresholdLabels": false, 524 | "thresholdMarkers": true 525 | }, 526 | "gridPos": { 527 | "h": 9, 528 | "w": 5, 529 | "x": 12, 530 | "y": 9 531 | }, 532 | "id": 8, 533 | "interval": null, 534 | "links": [], 535 | "mappingType": 1, 536 | "mappingTypes": [ 537 | { 538 | "name": "value to text", 539 | "value": 1 540 | }, 541 | { 542 | "name": "range to text", 543 | "value": 2 544 | } 545 | ], 546 | "maxDataPoints": 100, 547 | "nullPointMode": "connected", 548 | "nullText": null, 549 | "postfix": "", 550 | "postfixFontSize": "50%", 551 | "prefix": "", 552 | "prefixFontSize": "50%", 553 | "rangeMaps": [ 554 | { 555 | "from": "null", 556 | "text": "N/A", 557 | "to": "null" 558 | } 559 | ], 560 | "sparkline": { 561 | "fillColor": "rgba(31, 118, 189, 0.18)", 562 | "full": false, 563 | "lineColor": "rgb(31, 120, 193)", 564 | "show": false, 565 | "ymax": null, 566 | "ymin": null 567 | }, 568 | "tableColumn": "", 569 | "targets": [ 570 | { 571 | "expr": "sum(increase(cs_bucket_overflow{machine=\"$machine\"}[$__interval]))", 572 | "interval": "", 573 | "intervalFactor": 2, 574 | "legendFormat": "", 575 | "refId": "A" 576 | } 577 | ], 578 | "thresholds": "", 579 | "timeFrom": null, 580 | "timeShift": null, 581 | "title": "Total Overflows", 582 | "type": "singlestat", 583 | "valueFontSize": "200%", 584 | "valueMaps": [ 585 | { 586 | "op": "=", 587 | "text": "N/A", 588 | "value": "null" 589 | } 590 | ], 591 | "valueName": "total" 592 | }, 593 | { 594 | "cacheTimeout": null, 595 | "colorBackground": true, 596 | "colorValue": false, 597 | "colors": [ 598 | "#A352CC", 599 | "rgba(237, 129, 40, 0.89)", 600 | "#d44a3a" 601 | ], 602 | "datasource": "${DS_PROMETHEUS}", 603 | "format": "none", 604 | "gauge": { 605 | "maxValue": 100, 606 | "minValue": 0, 607 | "show": false, 608 | "thresholdLabels": false, 609 | "thresholdMarkers": true 610 | }, 611 | "gridPos": { 612 | "h": 9, 613 | "w": 5, 614 | "x": 17, 615 | "y": 9 616 | }, 617 | "id": 18, 618 | "interval": null, 619 | "links": [], 620 | "mappingType": 1, 621 | "mappingTypes": [ 622 | { 623 | "name": "value to text", 624 | "value": 1 625 | }, 626 | { 627 | "name": "range to text", 628 | "value": 2 629 | } 630 | ], 631 | "maxDataPoints": 100, 632 | "nullPointMode": "connected", 633 | "nullText": null, 634 | "pluginVersion": "6.7.3", 635 | "postfix": "", 636 | "postfixFontSize": "50%", 637 | "prefix": "", 638 | "prefixFontSize": "50%", 639 | "rangeMaps": [ 640 | { 641 | "from": "null", 642 | "text": "N/A", 643 | "to": "null" 644 | } 645 | ], 646 | "sparkline": { 647 | "fillColor": "rgba(31, 118, 189, 0.18)", 648 | "full": false, 649 | "lineColor": "rgb(31, 120, 193)", 650 | "show": false, 651 | "ymax": null, 652 | "ymin": null 653 | }, 654 | "tableColumn": "", 655 | "targets": [ 656 | { 657 | "expr": "process_open_fds{machine=\"$machine\"}", 658 | "interval": "", 659 | "legendFormat": "", 660 | "refId": "A" 661 | } 662 | ], 663 | "thresholds": "", 664 | "timeFrom": null, 665 | "timeShift": null, 666 | "title": "Process Open FDs", 667 | "type": "singlestat", 668 | "valueFontSize": "200%", 669 | "valueMaps": [ 670 | { 671 | "op": "=", 672 | "text": "N/A", 673 | "value": "null" 674 | } 675 | ], 676 | "valueName": "current" 677 | }, 678 | { 679 | "cacheTimeout": null, 680 | "colorBackground": true, 681 | "colorValue": false, 682 | "colors": [ 683 | "#E02F44", 684 | "rgba(237, 129, 40, 0.89)", 685 | "#d44a3a" 686 | ], 687 | "datasource": "${DS_PROMETHEUS}", 688 | "format": "none", 689 | "gauge": { 690 | "maxValue": 100, 691 | "minValue": 0, 692 | "show": false, 693 | "thresholdLabels": false, 694 | "thresholdMarkers": true 695 | }, 696 | "gridPos": { 697 | "h": 9, 698 | "w": 5, 699 | "x": 4, 700 | "y": 18 701 | }, 702 | "id": 14, 703 | "interval": null, 704 | "links": [], 705 | "mappingType": 1, 706 | "mappingTypes": [ 707 | { 708 | "name": "value to text", 709 | "value": 1 710 | }, 711 | { 712 | "name": "range to text", 713 | "value": 2 714 | } 715 | ], 716 | "maxDataPoints": 100, 717 | "nullPointMode": "connected", 718 | "nullText": null, 719 | "postfix": "", 720 | "postfixFontSize": "50%", 721 | "prefix": "", 722 | "prefixFontSize": "50%", 723 | "rangeMaps": [ 724 | { 725 | "from": "null", 726 | "text": "N/A", 727 | "to": "null" 728 | } 729 | ], 730 | "sparkline": { 731 | "fillColor": "rgba(31, 118, 189, 0.18)", 732 | "full": false, 733 | "lineColor": "rgb(31, 120, 193)", 734 | "show": false, 735 | "ymax": null, 736 | "ymin": null 737 | }, 738 | "tableColumn": "", 739 | "targets": [ 740 | { 741 | "expr": "sum(increase(cs_parser_hits_ko{machine=\"$machine\"}[$__interval]))", 742 | "interval": "", 743 | "intervalFactor": 2, 744 | "legendFormat": "", 745 | "refId": "A" 746 | } 747 | ], 748 | "thresholds": "", 749 | "timeFrom": null, 750 | "timeShift": null, 751 | "title": "Total unparsed lines", 752 | "type": "singlestat", 753 | "valueFontSize": "200%", 754 | "valueMaps": [ 755 | { 756 | "op": "=", 757 | "text": "N/A", 758 | "value": "null" 759 | } 760 | ], 761 | "valueName": "total" 762 | }, 763 | { 764 | "datasource": "${DS_PROMETHEUS}", 765 | "gridPos": { 766 | "h": 9, 767 | "w": 10, 768 | "x": 9, 769 | "y": 18 770 | }, 771 | "id": 16, 772 | "options": { 773 | "displayMode": "gradient", 774 | "fieldOptions": { 775 | "calcs": [ 776 | "sum" 777 | ], 778 | "defaults": { 779 | "mappings": [], 780 | "thresholds": { 781 | "mode": "absolute", 782 | "steps": [ 783 | { 784 | "color": "green", 785 | "value": null 786 | } 787 | ] 788 | } 789 | }, 790 | "overrides": [], 791 | "values": false 792 | }, 793 | "orientation": "horizontal", 794 | "showUnfilled": false 795 | }, 796 | "pluginVersion": "6.7.3", 797 | "repeat": null, 798 | "repeatDirection": "v", 799 | "targets": [ 800 | { 801 | "expr": "sum(increase(cs_bucket_overflow{machine=\"$machine\"}[$__interval])) by (name)", 802 | "format": "time_series", 803 | "instant": false, 804 | "interval": "", 805 | "intervalFactor": 2, 806 | "legendFormat": "{{name}}", 807 | "refId": "A" 808 | } 809 | ], 810 | "timeFrom": null, 811 | "timeShift": null, 812 | "title": "Top scenarios", 813 | "transparent": true, 814 | "type": "bargauge" 815 | } 816 | ], 817 | "schemaVersion": 22, 818 | "style": "dark", 819 | "tags": [], 820 | "templating": { 821 | "list": [ 822 | { 823 | "allValue": null, 824 | "current": {}, 825 | "datasource": "${DS_PROMETHEUS}", 826 | "definition": "label_values(up, machine)", 827 | "hide": 0, 828 | "includeAll": false, 829 | "index": -1, 830 | "label": "machine", 831 | "multi": false, 832 | "name": "machine", 833 | "options": [], 834 | "query": "label_values(up, machine)", 835 | "refresh": 1, 836 | "regex": "", 837 | "skipUrlSync": false, 838 | "sort": 1, 839 | "tagValuesQuery": "", 840 | "tags": [], 841 | "tagsQuery": "", 842 | "type": "query", 843 | "useTags": false 844 | } 845 | ] 846 | }, 847 | "time": { 848 | "from": "now-24h", 849 | "to": "now" 850 | }, 851 | "timepicker": { 852 | "refresh_intervals": [ 853 | "5s", 854 | "10s", 855 | "30s", 856 | "1m", 857 | "5m", 858 | "15m", 859 | "30m", 860 | "1h", 861 | "2h", 862 | "1d" 863 | ] 864 | }, 865 | "timezone": "", 866 | "title": "Crowdsec Insight", 867 | "uid": "oSC49pVGk", 868 | "variables": { 869 | "list": [] 870 | }, 871 | "version": 8 872 | } -------------------------------------------------------------------------------- /dashboards_v1/Crowdsec_Overview.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "grafana", 15 | "id": "grafana", 16 | "name": "Grafana", 17 | "version": "6.7.3" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "graph", 22 | "name": "Graph", 23 | "version": "" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | }, 31 | { 32 | "type": "panel", 33 | "id": "singlestat", 34 | "name": "Singlestat", 35 | "version": "" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "text", 40 | "name": "Text", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "type": "dashboard" 54 | } 55 | ] 56 | }, 57 | "editable": true, 58 | "gnetId": null, 59 | "graphTooltip": 0, 60 | "id": null, 61 | "links": [], 62 | "panels": [ 63 | { 64 | "content": "\n# Summary\n\n\n\n", 65 | "datasource": "${DS_WATCHERS}", 66 | "gridPos": { 67 | "h": 2, 68 | "w": 9, 69 | "x": 0, 70 | "y": 0 71 | }, 72 | "id": 14, 73 | "mode": "markdown", 74 | "timeFrom": null, 75 | "timeShift": null, 76 | "title": "", 77 | "transparent": true, 78 | "type": "text" 79 | }, 80 | { 81 | "cacheTimeout": null, 82 | "colorBackground": true, 83 | "colorPostfix": false, 84 | "colorPrefix": false, 85 | "colorValue": false, 86 | "colors": [ 87 | "#E02F44", 88 | "#E02F44", 89 | "#299c46" 90 | ], 91 | "datasource": "${DS_PROMETHEUS}", 92 | "format": "none", 93 | "gauge": { 94 | "maxValue": 100, 95 | "minValue": 0, 96 | "show": false, 97 | "thresholdLabels": false, 98 | "thresholdMarkers": true 99 | }, 100 | "gridPos": { 101 | "h": 8, 102 | "w": 6, 103 | "x": 0, 104 | "y": 2 105 | }, 106 | "id": 2, 107 | "interval": null, 108 | "links": [], 109 | "mappingType": 1, 110 | "mappingTypes": [ 111 | { 112 | "name": "value to text", 113 | "value": 1 114 | }, 115 | { 116 | "name": "range to text", 117 | "value": 2 118 | } 119 | ], 120 | "maxDataPoints": 100, 121 | "nullPointMode": "connected", 122 | "nullText": null, 123 | "pluginVersion": "6.7.3", 124 | "postfix": "", 125 | "postfixFontSize": "50%", 126 | "prefix": "", 127 | "prefixFontSize": "50%", 128 | "rangeMaps": [ 129 | { 130 | "from": "null", 131 | "text": "N/A", 132 | "to": "null" 133 | } 134 | ], 135 | "sparkline": { 136 | "fillColor": "rgba(255, 255, 255, 0.5)", 137 | "full": false, 138 | "lineColor": "rgba(255, 255, 255, 0.5)", 139 | "show": false, 140 | "ymax": null, 141 | "ymin": null 142 | }, 143 | "tableColumn": "", 144 | "targets": [ 145 | { 146 | "expr": "sum(up{job=~\"crowdsec_.*\"})", 147 | "interval": "", 148 | "legendFormat": "", 149 | "refId": "A" 150 | } 151 | ], 152 | "thresholds": "10,10", 153 | "timeFrom": null, 154 | "timeShift": null, 155 | "title": "Running Crowdsec", 156 | "transparent": true, 157 | "type": "singlestat", 158 | "valueFontSize": "200%", 159 | "valueMaps": [ 160 | { 161 | "op": "=", 162 | "text": "N/A", 163 | "value": "null" 164 | } 165 | ], 166 | "valueName": "current" 167 | }, 168 | { 169 | "aliasColors": {}, 170 | "bars": false, 171 | "dashLength": 10, 172 | "dashes": false, 173 | "datasource": "${DS_PROMETHEUS}", 174 | "decimals": 1, 175 | "fill": 1, 176 | "fillGradient": 0, 177 | "gridPos": { 178 | "h": 8, 179 | "w": 18, 180 | "x": 6, 181 | "y": 2 182 | }, 183 | "hiddenSeries": false, 184 | "id": 8, 185 | "legend": { 186 | "alignAsTable": true, 187 | "avg": false, 188 | "current": false, 189 | "max": false, 190 | "min": false, 191 | "rightSide": true, 192 | "show": true, 193 | "sort": "total", 194 | "sortDesc": true, 195 | "total": true, 196 | "values": true 197 | }, 198 | "lines": true, 199 | "linewidth": 1, 200 | "nullPointMode": "null", 201 | "options": { 202 | "dataLinks": [] 203 | }, 204 | "percentage": false, 205 | "pointradius": 2, 206 | "points": false, 207 | "renderer": "flot", 208 | "seriesOverrides": [], 209 | "spaceLength": 10, 210 | "stack": false, 211 | "steppedLine": false, 212 | "targets": [ 213 | { 214 | "expr": "sum(increase(cs_reader_hits[$__interval])) by (machine)", 215 | "interval": "", 216 | "intervalFactor": 2, 217 | "legendFormat": "{{machine}}", 218 | "refId": "A" 219 | } 220 | ], 221 | "thresholds": [], 222 | "timeFrom": null, 223 | "timeRegions": [], 224 | "timeShift": null, 225 | "title": "Acquisitions", 226 | "tooltip": { 227 | "shared": true, 228 | "sort": 0, 229 | "value_type": "individual" 230 | }, 231 | "transparent": true, 232 | "type": "graph", 233 | "xaxis": { 234 | "buckets": null, 235 | "mode": "time", 236 | "name": null, 237 | "show": true, 238 | "values": [] 239 | }, 240 | "yaxes": [ 241 | { 242 | "format": "short", 243 | "label": null, 244 | "logBase": 1, 245 | "max": null, 246 | "min": null, 247 | "show": true 248 | }, 249 | { 250 | "format": "short", 251 | "label": null, 252 | "logBase": 1, 253 | "max": null, 254 | "min": null, 255 | "show": true 256 | } 257 | ], 258 | "yaxis": { 259 | "align": false, 260 | "alignLevel": null 261 | } 262 | }, 263 | { 264 | "aliasColors": {}, 265 | "bars": false, 266 | "dashLength": 10, 267 | "dashes": false, 268 | "datasource": "${DS_PROMETHEUS}", 269 | "decimals": 1, 270 | "fill": 1, 271 | "fillGradient": 0, 272 | "gridPos": { 273 | "h": 8, 274 | "w": 12, 275 | "x": 0, 276 | "y": 10 277 | }, 278 | "hiddenSeries": false, 279 | "id": 10, 280 | "legend": { 281 | "alignAsTable": true, 282 | "avg": false, 283 | "current": false, 284 | "max": false, 285 | "min": false, 286 | "rightSide": true, 287 | "show": true, 288 | "sort": "total", 289 | "sortDesc": true, 290 | "total": true, 291 | "values": true 292 | }, 293 | "lines": true, 294 | "linewidth": 1, 295 | "nullPointMode": "null", 296 | "options": { 297 | "dataLinks": [] 298 | }, 299 | "percentage": false, 300 | "pointradius": 2, 301 | "points": false, 302 | "renderer": "flot", 303 | "seriesOverrides": [], 304 | "spaceLength": 10, 305 | "stack": false, 306 | "steppedLine": false, 307 | "targets": [ 308 | { 309 | "expr": "sum(increase(cs_parser_hits[$__interval])) by (machine)", 310 | "interval": "", 311 | "intervalFactor": 2, 312 | "legendFormat": "{{machine}}", 313 | "refId": "A" 314 | } 315 | ], 316 | "thresholds": [], 317 | "timeFrom": null, 318 | "timeRegions": [], 319 | "timeShift": null, 320 | "title": "Parsers", 321 | "tooltip": { 322 | "shared": true, 323 | "sort": 0, 324 | "value_type": "individual" 325 | }, 326 | "transparent": true, 327 | "type": "graph", 328 | "xaxis": { 329 | "buckets": null, 330 | "mode": "time", 331 | "name": null, 332 | "show": true, 333 | "values": [] 334 | }, 335 | "yaxes": [ 336 | { 337 | "format": "short", 338 | "label": null, 339 | "logBase": 1, 340 | "max": null, 341 | "min": null, 342 | "show": true 343 | }, 344 | { 345 | "format": "short", 346 | "label": null, 347 | "logBase": 1, 348 | "max": null, 349 | "min": null, 350 | "show": true 351 | } 352 | ], 353 | "yaxis": { 354 | "align": false, 355 | "alignLevel": null 356 | } 357 | }, 358 | { 359 | "aliasColors": {}, 360 | "bars": false, 361 | "dashLength": 10, 362 | "dashes": false, 363 | "datasource": "${DS_PROMETHEUS}", 364 | "decimals": 1, 365 | "fill": 1, 366 | "fillGradient": 0, 367 | "gridPos": { 368 | "h": 8, 369 | "w": 12, 370 | "x": 12, 371 | "y": 10 372 | }, 373 | "hiddenSeries": false, 374 | "id": 12, 375 | "legend": { 376 | "alignAsTable": true, 377 | "avg": false, 378 | "current": false, 379 | "max": false, 380 | "min": false, 381 | "rightSide": true, 382 | "show": true, 383 | "sort": "total", 384 | "sortDesc": true, 385 | "total": true, 386 | "values": true 387 | }, 388 | "lines": true, 389 | "linewidth": 1, 390 | "nullPointMode": "null", 391 | "options": { 392 | "dataLinks": [] 393 | }, 394 | "percentage": false, 395 | "pointradius": 2, 396 | "points": false, 397 | "renderer": "flot", 398 | "seriesOverrides": [], 399 | "spaceLength": 10, 400 | "stack": false, 401 | "steppedLine": false, 402 | "targets": [ 403 | { 404 | "expr": "sum(increase(cs_bucket_overflow[$__interval])) by (machine)", 405 | "interval": "", 406 | "intervalFactor": 2, 407 | "legendFormat": "{{machine}}", 408 | "refId": "A" 409 | } 410 | ], 411 | "thresholds": [], 412 | "timeFrom": null, 413 | "timeRegions": [], 414 | "timeShift": null, 415 | "title": "Buckets overflow", 416 | "tooltip": { 417 | "shared": true, 418 | "sort": 0, 419 | "value_type": "individual" 420 | }, 421 | "transparent": true, 422 | "type": "graph", 423 | "xaxis": { 424 | "buckets": null, 425 | "mode": "time", 426 | "name": null, 427 | "show": true, 428 | "values": [] 429 | }, 430 | "yaxes": [ 431 | { 432 | "format": "short", 433 | "label": null, 434 | "logBase": 1, 435 | "max": null, 436 | "min": null, 437 | "show": true 438 | }, 439 | { 440 | "format": "short", 441 | "label": null, 442 | "logBase": 1, 443 | "max": null, 444 | "min": null, 445 | "show": true 446 | } 447 | ], 448 | "yaxis": { 449 | "align": false, 450 | "alignLevel": null 451 | } 452 | }, 453 | { 454 | "content": "\n# Details\n\n\n\n", 455 | "datasource": "${DS_WATCHERS}", 456 | "gridPos": { 457 | "h": 2, 458 | "w": 13, 459 | "x": 0, 460 | "y": 18 461 | }, 462 | "id": 16, 463 | "mode": "markdown", 464 | "timeFrom": null, 465 | "timeShift": null, 466 | "title": "", 467 | "transparent": true, 468 | "type": "text" 469 | }, 470 | { 471 | "aliasColors": {}, 472 | "bars": false, 473 | "dashLength": 10, 474 | "dashes": false, 475 | "datasource": "${DS_PROMETHEUS}", 476 | "decimals": 1, 477 | "fill": 1, 478 | "fillGradient": 0, 479 | "gridPos": { 480 | "h": 9, 481 | "w": 12, 482 | "x": 0, 483 | "y": 20 484 | }, 485 | "hiddenSeries": false, 486 | "id": 4, 487 | "interval": "", 488 | "legend": { 489 | "alignAsTable": true, 490 | "avg": false, 491 | "current": false, 492 | "max": false, 493 | "min": false, 494 | "rightSide": true, 495 | "show": true, 496 | "sort": "total", 497 | "sortDesc": true, 498 | "total": true, 499 | "values": true 500 | }, 501 | "lines": true, 502 | "linewidth": 1, 503 | "nullPointMode": "null", 504 | "options": { 505 | "dataLinks": [] 506 | }, 507 | "percentage": false, 508 | "pointradius": 2, 509 | "points": false, 510 | "renderer": "flot", 511 | "seriesOverrides": [], 512 | "spaceLength": 10, 513 | "stack": false, 514 | "steppedLine": false, 515 | "targets": [ 516 | { 517 | "expr": "sum(increase(cs_node_hits_ok[$__interval])) by (name)", 518 | "format": "time_series", 519 | "instant": false, 520 | "interval": "", 521 | "intervalFactor": 2, 522 | "legendFormat": "{{name}}", 523 | "refId": "A" 524 | } 525 | ], 526 | "thresholds": [], 527 | "timeFrom": null, 528 | "timeRegions": [], 529 | "timeShift": null, 530 | "title": "Parsers ok", 531 | "tooltip": { 532 | "shared": true, 533 | "sort": 0, 534 | "value_type": "individual" 535 | }, 536 | "transparent": true, 537 | "type": "graph", 538 | "xaxis": { 539 | "buckets": null, 540 | "mode": "time", 541 | "name": null, 542 | "show": true, 543 | "values": [] 544 | }, 545 | "yaxes": [ 546 | { 547 | "format": "short", 548 | "label": null, 549 | "logBase": 1, 550 | "max": null, 551 | "min": null, 552 | "show": true 553 | }, 554 | { 555 | "format": "short", 556 | "label": null, 557 | "logBase": 1, 558 | "max": null, 559 | "min": null, 560 | "show": true 561 | } 562 | ], 563 | "yaxis": { 564 | "align": false, 565 | "alignLevel": null 566 | } 567 | }, 568 | { 569 | "aliasColors": {}, 570 | "bars": false, 571 | "dashLength": 10, 572 | "dashes": false, 573 | "datasource": "${DS_PROMETHEUS}", 574 | "decimals": 1, 575 | "fill": 1, 576 | "fillGradient": 0, 577 | "gridPos": { 578 | "h": 9, 579 | "w": 12, 580 | "x": 12, 581 | "y": 20 582 | }, 583 | "hiddenSeries": false, 584 | "id": 18, 585 | "legend": { 586 | "alignAsTable": true, 587 | "avg": false, 588 | "current": false, 589 | "max": false, 590 | "min": false, 591 | "rightSide": true, 592 | "show": true, 593 | "sort": "total", 594 | "sortDesc": true, 595 | "total": true, 596 | "values": true 597 | }, 598 | "lines": true, 599 | "linewidth": 1, 600 | "nullPointMode": "null", 601 | "options": { 602 | "dataLinks": [] 603 | }, 604 | "percentage": false, 605 | "pointradius": 2, 606 | "points": false, 607 | "renderer": "flot", 608 | "seriesOverrides": [], 609 | "spaceLength": 10, 610 | "stack": false, 611 | "steppedLine": false, 612 | "targets": [ 613 | { 614 | "expr": "sum(increase(cs_bucket_create[$__interval])) by (name)", 615 | "interval": "", 616 | "intervalFactor": 2, 617 | "legendFormat": "{{name}}", 618 | "refId": "A" 619 | } 620 | ], 621 | "thresholds": [], 622 | "timeFrom": null, 623 | "timeRegions": [], 624 | "timeShift": null, 625 | "title": "Buckets created", 626 | "tooltip": { 627 | "shared": true, 628 | "sort": 0, 629 | "value_type": "individual" 630 | }, 631 | "transparent": true, 632 | "type": "graph", 633 | "xaxis": { 634 | "buckets": null, 635 | "mode": "time", 636 | "name": null, 637 | "show": true, 638 | "values": [] 639 | }, 640 | "yaxes": [ 641 | { 642 | "format": "short", 643 | "label": null, 644 | "logBase": 1, 645 | "max": null, 646 | "min": null, 647 | "show": true 648 | }, 649 | { 650 | "format": "short", 651 | "label": null, 652 | "logBase": 1, 653 | "max": null, 654 | "min": null, 655 | "show": true 656 | } 657 | ], 658 | "yaxis": { 659 | "align": false, 660 | "alignLevel": null 661 | } 662 | }, 663 | { 664 | "aliasColors": {}, 665 | "bars": false, 666 | "dashLength": 10, 667 | "dashes": false, 668 | "datasource": "${DS_PROMETHEUS}", 669 | "decimals": 1, 670 | "fill": 1, 671 | "fillGradient": 0, 672 | "gridPos": { 673 | "h": 9, 674 | "w": 12, 675 | "x": 0, 676 | "y": 29 677 | }, 678 | "hiddenSeries": false, 679 | "id": 6, 680 | "legend": { 681 | "alignAsTable": true, 682 | "avg": false, 683 | "current": false, 684 | "max": false, 685 | "min": false, 686 | "rightSide": true, 687 | "show": true, 688 | "sideWidth": null, 689 | "sort": "total", 690 | "sortDesc": true, 691 | "total": true, 692 | "values": true 693 | }, 694 | "lines": true, 695 | "linewidth": 1, 696 | "nullPointMode": "null", 697 | "options": { 698 | "dataLinks": [] 699 | }, 700 | "percentage": false, 701 | "pointradius": 2, 702 | "points": false, 703 | "renderer": "flot", 704 | "seriesOverrides": [], 705 | "spaceLength": 10, 706 | "stack": false, 707 | "steppedLine": false, 708 | "targets": [ 709 | { 710 | "expr": "sum(increase(cs_node_hits_ko[$__interval])) by (name)", 711 | "interval": "", 712 | "intervalFactor": 2, 713 | "legendFormat": "{{name}}", 714 | "refId": "A" 715 | } 716 | ], 717 | "thresholds": [], 718 | "timeFrom": null, 719 | "timeRegions": [], 720 | "timeShift": null, 721 | "title": "Parsers nok", 722 | "tooltip": { 723 | "shared": true, 724 | "sort": 0, 725 | "value_type": "individual" 726 | }, 727 | "transparent": true, 728 | "type": "graph", 729 | "xaxis": { 730 | "buckets": null, 731 | "mode": "time", 732 | "name": null, 733 | "show": true, 734 | "values": [] 735 | }, 736 | "yaxes": [ 737 | { 738 | "format": "short", 739 | "label": null, 740 | "logBase": 1, 741 | "max": null, 742 | "min": null, 743 | "show": true 744 | }, 745 | { 746 | "format": "short", 747 | "label": null, 748 | "logBase": 1, 749 | "max": null, 750 | "min": null, 751 | "show": true 752 | } 753 | ], 754 | "yaxis": { 755 | "align": false, 756 | "alignLevel": null 757 | } 758 | }, 759 | { 760 | "aliasColors": {}, 761 | "bars": false, 762 | "dashLength": 10, 763 | "dashes": false, 764 | "datasource": "${DS_PROMETHEUS}", 765 | "decimals": 1, 766 | "fill": 1, 767 | "fillGradient": 0, 768 | "gridPos": { 769 | "h": 8, 770 | "w": 12, 771 | "x": 12, 772 | "y": 29 773 | }, 774 | "hiddenSeries": false, 775 | "id": 20, 776 | "legend": { 777 | "alignAsTable": true, 778 | "avg": false, 779 | "current": false, 780 | "max": false, 781 | "min": false, 782 | "rightSide": true, 783 | "show": true, 784 | "sort": "total", 785 | "sortDesc": true, 786 | "total": true, 787 | "values": true 788 | }, 789 | "lines": true, 790 | "linewidth": 1, 791 | "nullPointMode": "null", 792 | "options": { 793 | "dataLinks": [] 794 | }, 795 | "percentage": false, 796 | "pointradius": 2, 797 | "points": false, 798 | "renderer": "flot", 799 | "seriesOverrides": [], 800 | "spaceLength": 10, 801 | "stack": false, 802 | "steppedLine": false, 803 | "targets": [ 804 | { 805 | "expr": "sum(increase(cs_bucket_overflow[$__interval])) by (name)", 806 | "interval": "", 807 | "intervalFactor": 2, 808 | "legendFormat": "{{name}}", 809 | "refId": "A" 810 | } 811 | ], 812 | "thresholds": [], 813 | "timeFrom": null, 814 | "timeRegions": [], 815 | "timeShift": null, 816 | "title": "Buckets overflow", 817 | "tooltip": { 818 | "shared": true, 819 | "sort": 0, 820 | "value_type": "individual" 821 | }, 822 | "transparent": true, 823 | "type": "graph", 824 | "xaxis": { 825 | "buckets": null, 826 | "mode": "time", 827 | "name": null, 828 | "show": true, 829 | "values": [] 830 | }, 831 | "yaxes": [ 832 | { 833 | "format": "short", 834 | "label": null, 835 | "logBase": 1, 836 | "max": null, 837 | "min": null, 838 | "show": true 839 | }, 840 | { 841 | "format": "short", 842 | "label": null, 843 | "logBase": 1, 844 | "max": null, 845 | "min": null, 846 | "show": true 847 | } 848 | ], 849 | "yaxis": { 850 | "align": false, 851 | "alignLevel": null 852 | } 853 | }, 854 | { 855 | "aliasColors": {}, 856 | "bars": false, 857 | "dashLength": 10, 858 | "dashes": false, 859 | "datasource": "${DS_PROMETHEUS}", 860 | "decimals": 1, 861 | "fill": 1, 862 | "fillGradient": 0, 863 | "gridPos": { 864 | "h": 9, 865 | "w": 24, 866 | "x": 0, 867 | "y": 38 868 | }, 869 | "hiddenSeries": false, 870 | "id": 22, 871 | "legend": { 872 | "alignAsTable": true, 873 | "avg": false, 874 | "current": false, 875 | "max": false, 876 | "min": false, 877 | "rightSide": true, 878 | "show": true, 879 | "sort": "total", 880 | "sortDesc": true, 881 | "total": true, 882 | "values": true 883 | }, 884 | "lines": true, 885 | "linewidth": 1, 886 | "nullPointMode": "null", 887 | "options": { 888 | "dataLinks": [] 889 | }, 890 | "percentage": false, 891 | "pointradius": 2, 892 | "points": false, 893 | "renderer": "flot", 894 | "seriesOverrides": [], 895 | "spaceLength": 10, 896 | "stack": false, 897 | "steppedLine": false, 898 | "targets": [ 899 | { 900 | "expr": "sum(cs_bucket_count) by (name)", 901 | "interval": "", 902 | "intervalFactor": 1, 903 | "legendFormat": "{{name}}", 904 | "refId": "A" 905 | } 906 | ], 907 | "thresholds": [], 908 | "timeFrom": null, 909 | "timeRegions": [], 910 | "timeShift": null, 911 | "title": "Buckets Timeline", 912 | "tooltip": { 913 | "shared": true, 914 | "sort": 0, 915 | "value_type": "individual" 916 | }, 917 | "transparent": true, 918 | "type": "graph", 919 | "xaxis": { 920 | "buckets": null, 921 | "mode": "time", 922 | "name": null, 923 | "show": true, 924 | "values": [] 925 | }, 926 | "yaxes": [ 927 | { 928 | "format": "short", 929 | "label": null, 930 | "logBase": 1, 931 | "max": null, 932 | "min": null, 933 | "show": true 934 | }, 935 | { 936 | "format": "short", 937 | "label": null, 938 | "logBase": 1, 939 | "max": null, 940 | "min": null, 941 | "show": true 942 | } 943 | ], 944 | "yaxis": { 945 | "align": false, 946 | "alignLevel": null 947 | } 948 | } 949 | ], 950 | "refresh": false, 951 | "schemaVersion": 22, 952 | "style": "dark", 953 | "tags": [], 954 | "templating": { 955 | "list": [] 956 | }, 957 | "time": { 958 | "from": "now-24h", 959 | "to": "now" 960 | }, 961 | "timepicker": { 962 | "refresh_intervals": [ 963 | "5s", 964 | "10s", 965 | "30s", 966 | "1m", 967 | "5m", 968 | "15m", 969 | "30m", 970 | "1h", 971 | "2h", 972 | "1d" 973 | ] 974 | }, 975 | "timezone": "", 976 | "title": "Crowdsec Overview", 977 | "uid": "0RX-YW4Gz", 978 | "variables": { 979 | "list": [] 980 | }, 981 | "version": 14 982 | } -------------------------------------------------------------------------------- /dashboards_v2/Crowdsec_Insight.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar Gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "gauge", 22 | "name": "Gauge", 23 | "version": "" 24 | }, 25 | { 26 | "type": "grafana", 27 | "id": "grafana", 28 | "name": "Grafana", 29 | "version": "6.7.3" 30 | }, 31 | { 32 | "type": "datasource", 33 | "id": "prometheus", 34 | "name": "Prometheus", 35 | "version": "1.0.0" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "singlestat", 40 | "name": "Singlestat", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "type": "dashboard" 54 | } 55 | ] 56 | }, 57 | "editable": true, 58 | "gnetId": null, 59 | "graphTooltip": 0, 60 | "id": null, 61 | "iteration": 1597762043357, 62 | "links": [], 63 | "panels": [ 64 | { 65 | "cacheTimeout": null, 66 | "colorBackground": false, 67 | "colorValue": false, 68 | "colors": [ 69 | "#299c46", 70 | "rgba(237, 129, 40, 0.89)", 71 | "#d44a3a" 72 | ], 73 | "datasource": "${DS_PROMETHEUS}", 74 | "format": "dateTimeAsIso", 75 | "gauge": { 76 | "maxValue": 100, 77 | "minValue": 0, 78 | "show": false, 79 | "thresholdLabels": false, 80 | "thresholdMarkers": true 81 | }, 82 | "gridPos": { 83 | "h": 9, 84 | "w": 5, 85 | "x": 2, 86 | "y": 0 87 | }, 88 | "id": 2, 89 | "interval": null, 90 | "links": [], 91 | "mappingType": 1, 92 | "mappingTypes": [ 93 | { 94 | "name": "value to text", 95 | "value": 1 96 | }, 97 | { 98 | "name": "range to text", 99 | "value": 2 100 | } 101 | ], 102 | "maxDataPoints": 100, 103 | "nullPointMode": "connected", 104 | "nullText": null, 105 | "postfix": "", 106 | "postfixFontSize": "50%", 107 | "prefix": "", 108 | "prefixFontSize": "50%", 109 | "rangeMaps": [ 110 | { 111 | "from": "null", 112 | "text": "N/A", 113 | "to": "null" 114 | } 115 | ], 116 | "sparkline": { 117 | "fillColor": "rgba(31, 118, 189, 0.18)", 118 | "full": false, 119 | "lineColor": "rgb(31, 120, 193)", 120 | "show": false, 121 | "ymax": null, 122 | "ymin": null 123 | }, 124 | "tableColumn": "", 125 | "targets": [ 126 | { 127 | "expr": "(process_start_time_seconds{machine=\"$machine\"})*1000", 128 | "interval": "", 129 | "legendFormat": "", 130 | "refId": "A" 131 | } 132 | ], 133 | "thresholds": "", 134 | "timeFrom": null, 135 | "timeShift": null, 136 | "title": "Up since", 137 | "type": "singlestat", 138 | "valueFontSize": "120%", 139 | "valueMaps": [ 140 | { 141 | "op": "=", 142 | "text": "N/A", 143 | "value": "null" 144 | } 145 | ], 146 | "valueName": "current" 147 | }, 148 | { 149 | "datasource": "${DS_PROMETHEUS}", 150 | "gridPos": { 151 | "h": 9, 152 | "w": 5, 153 | "x": 7, 154 | "y": 0 155 | }, 156 | "id": 4, 157 | "options": { 158 | "fieldOptions": { 159 | "calcs": [ 160 | "mean" 161 | ], 162 | "defaults": { 163 | "mappings": [], 164 | "thresholds": { 165 | "mode": "absolute", 166 | "steps": [ 167 | { 168 | "color": "green", 169 | "value": null 170 | } 171 | ] 172 | }, 173 | "title": "", 174 | "unit": "decbytes" 175 | }, 176 | "overrides": [], 177 | "values": false 178 | }, 179 | "orientation": "auto", 180 | "showThresholdLabels": false, 181 | "showThresholdMarkers": false 182 | }, 183 | "pluginVersion": "6.7.3", 184 | "targets": [ 185 | { 186 | "expr": "process_resident_memory_bytes{machine=\"$machine\"}", 187 | "format": "time_series", 188 | "interval": "", 189 | "intervalFactor": 3, 190 | "legendFormat": "", 191 | "refId": "A" 192 | } 193 | ], 194 | "timeFrom": null, 195 | "timeShift": null, 196 | "title": "Average Mem Usage", 197 | "transparent": true, 198 | "type": "gauge" 199 | }, 200 | { 201 | "datasource": "${DS_PROMETHEUS}", 202 | "gridPos": { 203 | "h": 9, 204 | "w": 5, 205 | "x": 12, 206 | "y": 0 207 | }, 208 | "id": 6, 209 | "options": { 210 | "fieldOptions": { 211 | "calcs": [ 212 | "mean" 213 | ], 214 | "defaults": { 215 | "mappings": [], 216 | "thresholds": { 217 | "mode": "absolute", 218 | "steps": [ 219 | { 220 | "color": "green", 221 | "value": null 222 | }, 223 | { 224 | "color": "red", 225 | "value": 50 226 | } 227 | ] 228 | }, 229 | "unit": "percent" 230 | }, 231 | "overrides": [], 232 | "values": false 233 | }, 234 | "orientation": "auto", 235 | "showThresholdLabels": false, 236 | "showThresholdMarkers": true 237 | }, 238 | "pluginVersion": "6.7.3", 239 | "targets": [ 240 | { 241 | "expr": "rate(process_cpu_seconds_total{machine=\"$machine\"}[$__interval])*100", 242 | "interval": "", 243 | "intervalFactor": 2, 244 | "legendFormat": "", 245 | "refId": "A" 246 | } 247 | ], 248 | "timeFrom": null, 249 | "timeShift": null, 250 | "title": "Average CPU Usage", 251 | "transparent": true, 252 | "type": "gauge" 253 | }, 254 | { 255 | "cacheTimeout": null, 256 | "colorBackground": true, 257 | "colorValue": false, 258 | "colors": [ 259 | "#A352CC", 260 | "rgba(237, 129, 40, 0.89)", 261 | "#d44a3a" 262 | ], 263 | "datasource": "${DS_PROMETHEUS}", 264 | "format": "none", 265 | "gauge": { 266 | "maxValue": 100, 267 | "minValue": 0, 268 | "show": false, 269 | "thresholdLabels": false, 270 | "thresholdMarkers": true 271 | }, 272 | "gridPos": { 273 | "h": 9, 274 | "w": 5, 275 | "x": 17, 276 | "y": 0 277 | }, 278 | "id": 20, 279 | "interval": null, 280 | "links": [], 281 | "mappingType": 1, 282 | "mappingTypes": [ 283 | { 284 | "name": "value to text", 285 | "value": 1 286 | }, 287 | { 288 | "name": "range to text", 289 | "value": 2 290 | } 291 | ], 292 | "maxDataPoints": 100, 293 | "nullPointMode": "connected", 294 | "nullText": null, 295 | "postfix": "", 296 | "postfixFontSize": "50%", 297 | "prefix": "", 298 | "prefixFontSize": "50%", 299 | "rangeMaps": [ 300 | { 301 | "from": "null", 302 | "text": "N/A", 303 | "to": "null" 304 | } 305 | ], 306 | "sparkline": { 307 | "fillColor": "rgba(31, 118, 189, 0.18)", 308 | "full": false, 309 | "lineColor": "rgb(31, 120, 193)", 310 | "show": false, 311 | "ymax": null, 312 | "ymin": null 313 | }, 314 | "tableColumn": "", 315 | "targets": [ 316 | { 317 | "expr": "process_max_fds{machine=\"$machine\"}", 318 | "interval": "", 319 | "legendFormat": "", 320 | "refId": "A" 321 | } 322 | ], 323 | "thresholds": "", 324 | "timeFrom": null, 325 | "timeShift": null, 326 | "title": "Process Max FDs", 327 | "type": "singlestat", 328 | "valueFontSize": "200%", 329 | "valueMaps": [ 330 | { 331 | "op": "=", 332 | "text": "N/A", 333 | "value": "null" 334 | } 335 | ], 336 | "valueName": "current" 337 | }, 338 | { 339 | "cacheTimeout": null, 340 | "colorBackground": true, 341 | "colorValue": false, 342 | "colors": [ 343 | "#3274D9", 344 | "rgba(237, 129, 40, 0.89)", 345 | "#d44a3a" 346 | ], 347 | "datasource": "${DS_PROMETHEUS}", 348 | "format": "none", 349 | "gauge": { 350 | "maxValue": 100, 351 | "minValue": 0, 352 | "show": false, 353 | "thresholdLabels": false, 354 | "thresholdMarkers": true 355 | }, 356 | "gridPos": { 357 | "h": 9, 358 | "w": 5, 359 | "x": 2, 360 | "y": 9 361 | }, 362 | "id": 11, 363 | "interval": null, 364 | "links": [], 365 | "mappingType": 1, 366 | "mappingTypes": [ 367 | { 368 | "name": "value to text", 369 | "value": 1 370 | }, 371 | { 372 | "name": "range to text", 373 | "value": 2 374 | } 375 | ], 376 | "maxDataPoints": 100, 377 | "nullPointMode": "connected", 378 | "nullText": null, 379 | "postfix": "", 380 | "postfixFontSize": "50%", 381 | "prefix": "", 382 | "prefixFontSize": "50%", 383 | "rangeMaps": [ 384 | { 385 | "from": "null", 386 | "text": "N/A", 387 | "to": "null" 388 | } 389 | ], 390 | "sparkline": { 391 | "fillColor": "rgba(31, 118, 189, 0.18)", 392 | "full": false, 393 | "lineColor": "rgb(31, 120, 193)", 394 | "show": false, 395 | "ymax": null, 396 | "ymin": null 397 | }, 398 | "tableColumn": "", 399 | "targets": [ 400 | { 401 | "expr": "sum(increase(cs_reader_hits_total{machine=\"$machine\"}[$__interval]))", 402 | "interval": "", 403 | "intervalFactor": 2, 404 | "legendFormat": "", 405 | "refId": "A" 406 | } 407 | ], 408 | "thresholds": "", 409 | "timeFrom": null, 410 | "timeShift": null, 411 | "title": "Total raw lines", 412 | "type": "singlestat", 413 | "valueFontSize": "200%", 414 | "valueMaps": [ 415 | { 416 | "op": "=", 417 | "text": "N/A", 418 | "value": "null" 419 | } 420 | ], 421 | "valueName": "total" 422 | }, 423 | { 424 | "cacheTimeout": null, 425 | "colorBackground": true, 426 | "colorValue": false, 427 | "colors": [ 428 | "#56A64B", 429 | "rgba(237, 129, 40, 0.89)", 430 | "#d44a3a" 431 | ], 432 | "datasource": "${DS_PROMETHEUS}", 433 | "format": "none", 434 | "gauge": { 435 | "maxValue": 100, 436 | "minValue": 0, 437 | "show": false, 438 | "thresholdLabels": false, 439 | "thresholdMarkers": true 440 | }, 441 | "gridPos": { 442 | "h": 9, 443 | "w": 5, 444 | "x": 7, 445 | "y": 9 446 | }, 447 | "id": 12, 448 | "interval": null, 449 | "links": [], 450 | "mappingType": 1, 451 | "mappingTypes": [ 452 | { 453 | "name": "value to text", 454 | "value": 1 455 | }, 456 | { 457 | "name": "range to text", 458 | "value": 2 459 | } 460 | ], 461 | "maxDataPoints": 100, 462 | "nullPointMode": "connected", 463 | "nullText": null, 464 | "postfix": "", 465 | "postfixFontSize": "50%", 466 | "prefix": "", 467 | "prefixFontSize": "50%", 468 | "rangeMaps": [ 469 | { 470 | "from": "null", 471 | "text": "N/A", 472 | "to": "null" 473 | } 474 | ], 475 | "sparkline": { 476 | "fillColor": "rgba(31, 118, 189, 0.18)", 477 | "full": false, 478 | "lineColor": "rgb(31, 120, 193)", 479 | "show": false, 480 | "ymax": null, 481 | "ymin": null 482 | }, 483 | "tableColumn": "", 484 | "targets": [ 485 | { 486 | "expr": "sum(increase(cs_parser_hits_ok_total{machine=\"$machine\"}[$__interval]))", 487 | "interval": "", 488 | "intervalFactor": 2, 489 | "legendFormat": "", 490 | "refId": "A" 491 | } 492 | ], 493 | "thresholds": "", 494 | "timeFrom": null, 495 | "timeShift": null, 496 | "title": "Total parsed lines", 497 | "type": "singlestat", 498 | "valueFontSize": "200%", 499 | "valueMaps": [ 500 | { 501 | "op": "=", 502 | "text": "N/A", 503 | "value": "null" 504 | } 505 | ], 506 | "valueName": "total" 507 | }, 508 | { 509 | "cacheTimeout": null, 510 | "colorBackground": true, 511 | "colorValue": false, 512 | "colors": [ 513 | "#FF780A", 514 | "rgba(237, 129, 40, 0.89)", 515 | "#d44a3a" 516 | ], 517 | "datasource": "${DS_PROMETHEUS}", 518 | "format": "short", 519 | "gauge": { 520 | "maxValue": 100, 521 | "minValue": 0, 522 | "show": false, 523 | "thresholdLabels": false, 524 | "thresholdMarkers": true 525 | }, 526 | "gridPos": { 527 | "h": 9, 528 | "w": 5, 529 | "x": 12, 530 | "y": 9 531 | }, 532 | "id": 8, 533 | "interval": null, 534 | "links": [], 535 | "mappingType": 1, 536 | "mappingTypes": [ 537 | { 538 | "name": "value to text", 539 | "value": 1 540 | }, 541 | { 542 | "name": "range to text", 543 | "value": 2 544 | } 545 | ], 546 | "maxDataPoints": 100, 547 | "nullPointMode": "connected", 548 | "nullText": null, 549 | "postfix": "", 550 | "postfixFontSize": "50%", 551 | "prefix": "", 552 | "prefixFontSize": "50%", 553 | "rangeMaps": [ 554 | { 555 | "from": "null", 556 | "text": "N/A", 557 | "to": "null" 558 | } 559 | ], 560 | "sparkline": { 561 | "fillColor": "rgba(31, 118, 189, 0.18)", 562 | "full": false, 563 | "lineColor": "rgb(31, 120, 193)", 564 | "show": false, 565 | "ymax": null, 566 | "ymin": null 567 | }, 568 | "tableColumn": "", 569 | "targets": [ 570 | { 571 | "expr": "sum(increase(cs_bucket_overflowed_total{machine=\"$machine\"}[$__interval]))", 572 | "interval": "", 573 | "intervalFactor": 2, 574 | "legendFormat": "", 575 | "refId": "A" 576 | } 577 | ], 578 | "thresholds": "", 579 | "timeFrom": null, 580 | "timeShift": null, 581 | "title": "Total Overflows", 582 | "type": "singlestat", 583 | "valueFontSize": "200%", 584 | "valueMaps": [ 585 | { 586 | "op": "=", 587 | "text": "N/A", 588 | "value": "null" 589 | } 590 | ], 591 | "valueName": "total" 592 | }, 593 | { 594 | "cacheTimeout": null, 595 | "colorBackground": true, 596 | "colorValue": false, 597 | "colors": [ 598 | "#A352CC", 599 | "rgba(237, 129, 40, 0.89)", 600 | "#d44a3a" 601 | ], 602 | "datasource": "${DS_PROMETHEUS}", 603 | "format": "none", 604 | "gauge": { 605 | "maxValue": 100, 606 | "minValue": 0, 607 | "show": false, 608 | "thresholdLabels": false, 609 | "thresholdMarkers": true 610 | }, 611 | "gridPos": { 612 | "h": 9, 613 | "w": 5, 614 | "x": 17, 615 | "y": 9 616 | }, 617 | "id": 18, 618 | "interval": null, 619 | "links": [], 620 | "mappingType": 1, 621 | "mappingTypes": [ 622 | { 623 | "name": "value to text", 624 | "value": 1 625 | }, 626 | { 627 | "name": "range to text", 628 | "value": 2 629 | } 630 | ], 631 | "maxDataPoints": 100, 632 | "nullPointMode": "connected", 633 | "nullText": null, 634 | "pluginVersion": "6.7.3", 635 | "postfix": "", 636 | "postfixFontSize": "50%", 637 | "prefix": "", 638 | "prefixFontSize": "50%", 639 | "rangeMaps": [ 640 | { 641 | "from": "null", 642 | "text": "N/A", 643 | "to": "null" 644 | } 645 | ], 646 | "sparkline": { 647 | "fillColor": "rgba(31, 118, 189, 0.18)", 648 | "full": false, 649 | "lineColor": "rgb(31, 120, 193)", 650 | "show": false, 651 | "ymax": null, 652 | "ymin": null 653 | }, 654 | "tableColumn": "", 655 | "targets": [ 656 | { 657 | "expr": "process_open_fds{machine=\"$machine\"}", 658 | "interval": "", 659 | "legendFormat": "", 660 | "refId": "A" 661 | } 662 | ], 663 | "thresholds": "", 664 | "timeFrom": null, 665 | "timeShift": null, 666 | "title": "Process Open FDs", 667 | "type": "singlestat", 668 | "valueFontSize": "200%", 669 | "valueMaps": [ 670 | { 671 | "op": "=", 672 | "text": "N/A", 673 | "value": "null" 674 | } 675 | ], 676 | "valueName": "current" 677 | }, 678 | { 679 | "cacheTimeout": null, 680 | "colorBackground": true, 681 | "colorValue": false, 682 | "colors": [ 683 | "#E02F44", 684 | "rgba(237, 129, 40, 0.89)", 685 | "#d44a3a" 686 | ], 687 | "datasource": "${DS_PROMETHEUS}", 688 | "format": "none", 689 | "gauge": { 690 | "maxValue": 100, 691 | "minValue": 0, 692 | "show": false, 693 | "thresholdLabels": false, 694 | "thresholdMarkers": true 695 | }, 696 | "gridPos": { 697 | "h": 9, 698 | "w": 5, 699 | "x": 4, 700 | "y": 18 701 | }, 702 | "id": 14, 703 | "interval": null, 704 | "links": [], 705 | "mappingType": 1, 706 | "mappingTypes": [ 707 | { 708 | "name": "value to text", 709 | "value": 1 710 | }, 711 | { 712 | "name": "range to text", 713 | "value": 2 714 | } 715 | ], 716 | "maxDataPoints": 100, 717 | "nullPointMode": "connected", 718 | "nullText": null, 719 | "postfix": "", 720 | "postfixFontSize": "50%", 721 | "prefix": "", 722 | "prefixFontSize": "50%", 723 | "rangeMaps": [ 724 | { 725 | "from": "null", 726 | "text": "N/A", 727 | "to": "null" 728 | } 729 | ], 730 | "sparkline": { 731 | "fillColor": "rgba(31, 118, 189, 0.18)", 732 | "full": false, 733 | "lineColor": "rgb(31, 120, 193)", 734 | "show": false, 735 | "ymax": null, 736 | "ymin": null 737 | }, 738 | "tableColumn": "", 739 | "targets": [ 740 | { 741 | "expr": "sum(increase(cs_parser_hits_ko_total{machine=\"$machine\"}[$__interval]))", 742 | "interval": "", 743 | "intervalFactor": 2, 744 | "legendFormat": "", 745 | "refId": "A" 746 | } 747 | ], 748 | "thresholds": "", 749 | "timeFrom": null, 750 | "timeShift": null, 751 | "title": "Total unparsed lines", 752 | "type": "singlestat", 753 | "valueFontSize": "200%", 754 | "valueMaps": [ 755 | { 756 | "op": "=", 757 | "text": "N/A", 758 | "value": "null" 759 | } 760 | ], 761 | "valueName": "total" 762 | }, 763 | { 764 | "datasource": "${DS_PROMETHEUS}", 765 | "gridPos": { 766 | "h": 9, 767 | "w": 10, 768 | "x": 9, 769 | "y": 18 770 | }, 771 | "id": 16, 772 | "options": { 773 | "displayMode": "gradient", 774 | "fieldOptions": { 775 | "calcs": [ 776 | "sum" 777 | ], 778 | "defaults": { 779 | "mappings": [], 780 | "thresholds": { 781 | "mode": "absolute", 782 | "steps": [ 783 | { 784 | "color": "green", 785 | "value": null 786 | } 787 | ] 788 | } 789 | }, 790 | "overrides": [], 791 | "values": false 792 | }, 793 | "orientation": "horizontal", 794 | "showUnfilled": false 795 | }, 796 | "pluginVersion": "6.7.3", 797 | "repeat": null, 798 | "repeatDirection": "v", 799 | "targets": [ 800 | { 801 | "expr": "sum(increase(cs_bucket_overflowed_total{machine=\"$machine\"}[$__interval])) by (name)", 802 | "format": "time_series", 803 | "instant": false, 804 | "interval": "", 805 | "intervalFactor": 2, 806 | "legendFormat": "{{name}}", 807 | "refId": "A" 808 | } 809 | ], 810 | "timeFrom": null, 811 | "timeShift": null, 812 | "title": "Top scenarios", 813 | "transparent": true, 814 | "type": "bargauge" 815 | } 816 | ], 817 | "schemaVersion": 22, 818 | "style": "dark", 819 | "tags": [], 820 | "templating": { 821 | "list": [ 822 | { 823 | "allValue": null, 824 | "current": {}, 825 | "datasource": "${DS_PROMETHEUS}", 826 | "definition": "label_values(up, machine)", 827 | "hide": 0, 828 | "includeAll": false, 829 | "index": -1, 830 | "label": "machine", 831 | "multi": false, 832 | "name": "machine", 833 | "options": [], 834 | "query": "label_values(up, machine)", 835 | "refresh": 1, 836 | "regex": "", 837 | "skipUrlSync": false, 838 | "sort": 1, 839 | "tagValuesQuery": "", 840 | "tags": [], 841 | "tagsQuery": "", 842 | "type": "query", 843 | "useTags": false 844 | } 845 | ] 846 | }, 847 | "time": { 848 | "from": "now-24h", 849 | "to": "now" 850 | }, 851 | "timepicker": { 852 | "refresh_intervals": [ 853 | "5s", 854 | "10s", 855 | "30s", 856 | "1m", 857 | "5m", 858 | "15m", 859 | "30m", 860 | "1h", 861 | "2h", 862 | "1d" 863 | ] 864 | }, 865 | "timezone": "", 866 | "title": "Crowdsec Insight", 867 | "uid": "oSC49pVGk", 868 | "variables": { 869 | "list": [] 870 | }, 871 | "version": 10 872 | } -------------------------------------------------------------------------------- /dashboards_v2/Crowdsec_Overview.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "grafana", 15 | "id": "grafana", 16 | "name": "Grafana", 17 | "version": "6.7.3" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "graph", 22 | "name": "Graph", 23 | "version": "" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | }, 31 | { 32 | "type": "panel", 33 | "id": "singlestat", 34 | "name": "Singlestat", 35 | "version": "" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "text", 40 | "name": "Text", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "type": "dashboard" 54 | } 55 | ] 56 | }, 57 | "editable": true, 58 | "gnetId": null, 59 | "graphTooltip": 0, 60 | "id": null, 61 | "links": [], 62 | "panels": [ 63 | { 64 | "content": "\n# Summary\n\n\n\n", 65 | "datasource": "${DS_WATCHERS}", 66 | "gridPos": { 67 | "h": 2, 68 | "w": 9, 69 | "x": 0, 70 | "y": 0 71 | }, 72 | "id": 14, 73 | "mode": "markdown", 74 | "timeFrom": null, 75 | "timeShift": null, 76 | "title": "", 77 | "transparent": true, 78 | "type": "text" 79 | }, 80 | { 81 | "cacheTimeout": null, 82 | "colorBackground": true, 83 | "colorPostfix": false, 84 | "colorPrefix": false, 85 | "colorValue": false, 86 | "colors": [ 87 | "#E02F44", 88 | "#E02F44", 89 | "#299c46" 90 | ], 91 | "datasource": "${DS_PROMETHEUS}", 92 | "format": "none", 93 | "gauge": { 94 | "maxValue": 100, 95 | "minValue": 0, 96 | "show": false, 97 | "thresholdLabels": false, 98 | "thresholdMarkers": true 99 | }, 100 | "gridPos": { 101 | "h": 8, 102 | "w": 6, 103 | "x": 0, 104 | "y": 2 105 | }, 106 | "id": 2, 107 | "interval": null, 108 | "links": [], 109 | "mappingType": 1, 110 | "mappingTypes": [ 111 | { 112 | "name": "value to text", 113 | "value": 1 114 | }, 115 | { 116 | "name": "range to text", 117 | "value": 2 118 | } 119 | ], 120 | "maxDataPoints": 100, 121 | "nullPointMode": "connected", 122 | "nullText": null, 123 | "pluginVersion": "6.7.3", 124 | "postfix": "", 125 | "postfixFontSize": "50%", 126 | "prefix": "", 127 | "prefixFontSize": "50%", 128 | "rangeMaps": [ 129 | { 130 | "from": "null", 131 | "text": "N/A", 132 | "to": "null" 133 | } 134 | ], 135 | "sparkline": { 136 | "fillColor": "rgba(255, 255, 255, 0.5)", 137 | "full": false, 138 | "lineColor": "rgba(255, 255, 255, 0.5)", 139 | "show": false, 140 | "ymax": null, 141 | "ymin": null 142 | }, 143 | "tableColumn": "", 144 | "targets": [ 145 | { 146 | "expr": "sum(up{job=~\"crowdsec_.*\"})", 147 | "interval": "", 148 | "legendFormat": "", 149 | "refId": "A" 150 | } 151 | ], 152 | "thresholds": "10,10", 153 | "timeFrom": null, 154 | "timeShift": null, 155 | "title": "Running Crowdsec", 156 | "transparent": true, 157 | "type": "singlestat", 158 | "valueFontSize": "200%", 159 | "valueMaps": [ 160 | { 161 | "op": "=", 162 | "text": "N/A", 163 | "value": "null" 164 | } 165 | ], 166 | "valueName": "current" 167 | }, 168 | { 169 | "aliasColors": {}, 170 | "bars": false, 171 | "dashLength": 10, 172 | "dashes": false, 173 | "datasource": "${DS_PROMETHEUS}", 174 | "decimals": 1, 175 | "fill": 1, 176 | "fillGradient": 0, 177 | "gridPos": { 178 | "h": 8, 179 | "w": 18, 180 | "x": 6, 181 | "y": 2 182 | }, 183 | "hiddenSeries": false, 184 | "id": 8, 185 | "legend": { 186 | "alignAsTable": true, 187 | "avg": false, 188 | "current": false, 189 | "max": false, 190 | "min": false, 191 | "rightSide": true, 192 | "show": true, 193 | "sort": "total", 194 | "sortDesc": true, 195 | "total": true, 196 | "values": true 197 | }, 198 | "lines": true, 199 | "linewidth": 1, 200 | "nullPointMode": "null", 201 | "options": { 202 | "dataLinks": [] 203 | }, 204 | "percentage": false, 205 | "pointradius": 2, 206 | "points": false, 207 | "renderer": "flot", 208 | "seriesOverrides": [], 209 | "spaceLength": 10, 210 | "stack": false, 211 | "steppedLine": false, 212 | "targets": [ 213 | { 214 | "expr": "sum(increase(cs_reader_hits_total[$__interval])) by (machine)", 215 | "interval": "", 216 | "intervalFactor": 2, 217 | "legendFormat": "{{machine}}", 218 | "refId": "A" 219 | } 220 | ], 221 | "thresholds": [], 222 | "timeFrom": null, 223 | "timeRegions": [], 224 | "timeShift": null, 225 | "title": "Acquisitions", 226 | "tooltip": { 227 | "shared": true, 228 | "sort": 0, 229 | "value_type": "individual" 230 | }, 231 | "transparent": true, 232 | "type": "graph", 233 | "xaxis": { 234 | "buckets": null, 235 | "mode": "time", 236 | "name": null, 237 | "show": true, 238 | "values": [] 239 | }, 240 | "yaxes": [ 241 | { 242 | "format": "short", 243 | "label": null, 244 | "logBase": 1, 245 | "max": null, 246 | "min": null, 247 | "show": true 248 | }, 249 | { 250 | "format": "short", 251 | "label": null, 252 | "logBase": 1, 253 | "max": null, 254 | "min": null, 255 | "show": true 256 | } 257 | ], 258 | "yaxis": { 259 | "align": false, 260 | "alignLevel": null 261 | } 262 | }, 263 | { 264 | "aliasColors": {}, 265 | "bars": false, 266 | "dashLength": 10, 267 | "dashes": false, 268 | "datasource": "${DS_PROMETHEUS}", 269 | "decimals": 1, 270 | "fill": 1, 271 | "fillGradient": 0, 272 | "gridPos": { 273 | "h": 8, 274 | "w": 12, 275 | "x": 0, 276 | "y": 10 277 | }, 278 | "hiddenSeries": false, 279 | "id": 10, 280 | "legend": { 281 | "alignAsTable": true, 282 | "avg": false, 283 | "current": false, 284 | "max": false, 285 | "min": false, 286 | "rightSide": true, 287 | "show": true, 288 | "sort": "total", 289 | "sortDesc": true, 290 | "total": true, 291 | "values": true 292 | }, 293 | "lines": true, 294 | "linewidth": 1, 295 | "nullPointMode": "null", 296 | "options": { 297 | "dataLinks": [] 298 | }, 299 | "percentage": false, 300 | "pointradius": 2, 301 | "points": false, 302 | "renderer": "flot", 303 | "seriesOverrides": [], 304 | "spaceLength": 10, 305 | "stack": false, 306 | "steppedLine": false, 307 | "targets": [ 308 | { 309 | "expr": "sum(increase(cs_parser_hits_total[$__interval])) by (machine)", 310 | "interval": "", 311 | "intervalFactor": 2, 312 | "legendFormat": "{{machine}}", 313 | "refId": "A" 314 | } 315 | ], 316 | "thresholds": [], 317 | "timeFrom": null, 318 | "timeRegions": [], 319 | "timeShift": null, 320 | "title": "Parsers", 321 | "tooltip": { 322 | "shared": true, 323 | "sort": 0, 324 | "value_type": "individual" 325 | }, 326 | "transparent": true, 327 | "type": "graph", 328 | "xaxis": { 329 | "buckets": null, 330 | "mode": "time", 331 | "name": null, 332 | "show": true, 333 | "values": [] 334 | }, 335 | "yaxes": [ 336 | { 337 | "format": "short", 338 | "label": null, 339 | "logBase": 1, 340 | "max": null, 341 | "min": null, 342 | "show": true 343 | }, 344 | { 345 | "format": "short", 346 | "label": null, 347 | "logBase": 1, 348 | "max": null, 349 | "min": null, 350 | "show": true 351 | } 352 | ], 353 | "yaxis": { 354 | "align": false, 355 | "alignLevel": null 356 | } 357 | }, 358 | { 359 | "aliasColors": {}, 360 | "bars": false, 361 | "dashLength": 10, 362 | "dashes": false, 363 | "datasource": "${DS_PROMETHEUS}", 364 | "decimals": 1, 365 | "fill": 1, 366 | "fillGradient": 0, 367 | "gridPos": { 368 | "h": 8, 369 | "w": 12, 370 | "x": 12, 371 | "y": 10 372 | }, 373 | "hiddenSeries": false, 374 | "id": 12, 375 | "legend": { 376 | "alignAsTable": true, 377 | "avg": false, 378 | "current": false, 379 | "max": false, 380 | "min": false, 381 | "rightSide": true, 382 | "show": true, 383 | "sort": "total", 384 | "sortDesc": true, 385 | "total": true, 386 | "values": true 387 | }, 388 | "lines": true, 389 | "linewidth": 1, 390 | "nullPointMode": "null", 391 | "options": { 392 | "dataLinks": [] 393 | }, 394 | "percentage": false, 395 | "pointradius": 2, 396 | "points": false, 397 | "renderer": "flot", 398 | "seriesOverrides": [], 399 | "spaceLength": 10, 400 | "stack": false, 401 | "steppedLine": false, 402 | "targets": [ 403 | { 404 | "expr": "sum(increase(cs_bucket_overflowed_total[$__interval])) by (machine)", 405 | "interval": "", 406 | "intervalFactor": 2, 407 | "legendFormat": "{{machine}}", 408 | "refId": "A" 409 | } 410 | ], 411 | "thresholds": [], 412 | "timeFrom": null, 413 | "timeRegions": [], 414 | "timeShift": null, 415 | "title": "Buckets overflow", 416 | "tooltip": { 417 | "shared": true, 418 | "sort": 0, 419 | "value_type": "individual" 420 | }, 421 | "transparent": true, 422 | "type": "graph", 423 | "xaxis": { 424 | "buckets": null, 425 | "mode": "time", 426 | "name": null, 427 | "show": true, 428 | "values": [] 429 | }, 430 | "yaxes": [ 431 | { 432 | "format": "short", 433 | "label": null, 434 | "logBase": 1, 435 | "max": null, 436 | "min": null, 437 | "show": true 438 | }, 439 | { 440 | "format": "short", 441 | "label": null, 442 | "logBase": 1, 443 | "max": null, 444 | "min": null, 445 | "show": true 446 | } 447 | ], 448 | "yaxis": { 449 | "align": false, 450 | "alignLevel": null 451 | } 452 | }, 453 | { 454 | "content": "\n# Details\n\n\n\n", 455 | "datasource": "${DS_WATCHERS}", 456 | "gridPos": { 457 | "h": 2, 458 | "w": 13, 459 | "x": 0, 460 | "y": 18 461 | }, 462 | "id": 16, 463 | "mode": "markdown", 464 | "timeFrom": null, 465 | "timeShift": null, 466 | "title": "", 467 | "transparent": true, 468 | "type": "text" 469 | }, 470 | { 471 | "aliasColors": {}, 472 | "bars": false, 473 | "dashLength": 10, 474 | "dashes": false, 475 | "datasource": "${DS_PROMETHEUS}", 476 | "decimals": 1, 477 | "fill": 1, 478 | "fillGradient": 0, 479 | "gridPos": { 480 | "h": 9, 481 | "w": 12, 482 | "x": 0, 483 | "y": 20 484 | }, 485 | "hiddenSeries": false, 486 | "id": 4, 487 | "interval": "", 488 | "legend": { 489 | "alignAsTable": true, 490 | "avg": false, 491 | "current": false, 492 | "max": false, 493 | "min": false, 494 | "rightSide": true, 495 | "show": true, 496 | "sort": "total", 497 | "sortDesc": true, 498 | "total": true, 499 | "values": true 500 | }, 501 | "lines": true, 502 | "linewidth": 1, 503 | "nullPointMode": "null", 504 | "options": { 505 | "dataLinks": [] 506 | }, 507 | "percentage": false, 508 | "pointradius": 2, 509 | "points": false, 510 | "renderer": "flot", 511 | "seriesOverrides": [], 512 | "spaceLength": 10, 513 | "stack": false, 514 | "steppedLine": false, 515 | "targets": [ 516 | { 517 | "expr": "sum(increase(cs_node_hits_ok_total[$__interval])) by (name)", 518 | "format": "time_series", 519 | "instant": false, 520 | "interval": "", 521 | "intervalFactor": 2, 522 | "legendFormat": "{{name}}", 523 | "refId": "A" 524 | } 525 | ], 526 | "thresholds": [], 527 | "timeFrom": null, 528 | "timeRegions": [], 529 | "timeShift": null, 530 | "title": "Parsers ok", 531 | "tooltip": { 532 | "shared": true, 533 | "sort": 0, 534 | "value_type": "individual" 535 | }, 536 | "transparent": true, 537 | "type": "graph", 538 | "xaxis": { 539 | "buckets": null, 540 | "mode": "time", 541 | "name": null, 542 | "show": true, 543 | "values": [] 544 | }, 545 | "yaxes": [ 546 | { 547 | "format": "short", 548 | "label": null, 549 | "logBase": 1, 550 | "max": null, 551 | "min": null, 552 | "show": true 553 | }, 554 | { 555 | "format": "short", 556 | "label": null, 557 | "logBase": 1, 558 | "max": null, 559 | "min": null, 560 | "show": true 561 | } 562 | ], 563 | "yaxis": { 564 | "align": false, 565 | "alignLevel": null 566 | } 567 | }, 568 | { 569 | "aliasColors": {}, 570 | "bars": false, 571 | "dashLength": 10, 572 | "dashes": false, 573 | "datasource": "${DS_PROMETHEUS}", 574 | "decimals": 1, 575 | "fill": 1, 576 | "fillGradient": 0, 577 | "gridPos": { 578 | "h": 9, 579 | "w": 12, 580 | "x": 12, 581 | "y": 20 582 | }, 583 | "hiddenSeries": false, 584 | "id": 18, 585 | "legend": { 586 | "alignAsTable": true, 587 | "avg": false, 588 | "current": false, 589 | "max": false, 590 | "min": false, 591 | "rightSide": true, 592 | "show": true, 593 | "sort": "total", 594 | "sortDesc": true, 595 | "total": true, 596 | "values": true 597 | }, 598 | "lines": true, 599 | "linewidth": 1, 600 | "nullPointMode": "null", 601 | "options": { 602 | "dataLinks": [] 603 | }, 604 | "percentage": false, 605 | "pointradius": 2, 606 | "points": false, 607 | "renderer": "flot", 608 | "seriesOverrides": [], 609 | "spaceLength": 10, 610 | "stack": false, 611 | "steppedLine": false, 612 | "targets": [ 613 | { 614 | "expr": "sum(increase(cs_bucket_created_total[$__interval])) by (name)", 615 | "interval": "", 616 | "intervalFactor": 2, 617 | "legendFormat": "{{name}}", 618 | "refId": "A" 619 | } 620 | ], 621 | "thresholds": [], 622 | "timeFrom": null, 623 | "timeRegions": [], 624 | "timeShift": null, 625 | "title": "Buckets created", 626 | "tooltip": { 627 | "shared": true, 628 | "sort": 0, 629 | "value_type": "individual" 630 | }, 631 | "transparent": true, 632 | "type": "graph", 633 | "xaxis": { 634 | "buckets": null, 635 | "mode": "time", 636 | "name": null, 637 | "show": true, 638 | "values": [] 639 | }, 640 | "yaxes": [ 641 | { 642 | "format": "short", 643 | "label": null, 644 | "logBase": 1, 645 | "max": null, 646 | "min": null, 647 | "show": true 648 | }, 649 | { 650 | "format": "short", 651 | "label": null, 652 | "logBase": 1, 653 | "max": null, 654 | "min": null, 655 | "show": true 656 | } 657 | ], 658 | "yaxis": { 659 | "align": false, 660 | "alignLevel": null 661 | } 662 | }, 663 | { 664 | "aliasColors": {}, 665 | "bars": false, 666 | "dashLength": 10, 667 | "dashes": false, 668 | "datasource": "${DS_PROMETHEUS}", 669 | "decimals": 1, 670 | "fill": 1, 671 | "fillGradient": 0, 672 | "gridPos": { 673 | "h": 9, 674 | "w": 12, 675 | "x": 0, 676 | "y": 29 677 | }, 678 | "hiddenSeries": false, 679 | "id": 6, 680 | "legend": { 681 | "alignAsTable": true, 682 | "avg": false, 683 | "current": false, 684 | "max": false, 685 | "min": false, 686 | "rightSide": true, 687 | "show": true, 688 | "sideWidth": null, 689 | "sort": "total", 690 | "sortDesc": true, 691 | "total": true, 692 | "values": true 693 | }, 694 | "lines": true, 695 | "linewidth": 1, 696 | "nullPointMode": "null", 697 | "options": { 698 | "dataLinks": [] 699 | }, 700 | "percentage": false, 701 | "pointradius": 2, 702 | "points": false, 703 | "renderer": "flot", 704 | "seriesOverrides": [], 705 | "spaceLength": 10, 706 | "stack": false, 707 | "steppedLine": false, 708 | "targets": [ 709 | { 710 | "expr": "sum(increase(cs_node_hits_ko_total[$__interval])) by (name)", 711 | "interval": "", 712 | "intervalFactor": 2, 713 | "legendFormat": "{{name}}", 714 | "refId": "A" 715 | } 716 | ], 717 | "thresholds": [], 718 | "timeFrom": null, 719 | "timeRegions": [], 720 | "timeShift": null, 721 | "title": "Parsers nok", 722 | "tooltip": { 723 | "shared": true, 724 | "sort": 0, 725 | "value_type": "individual" 726 | }, 727 | "transparent": true, 728 | "type": "graph", 729 | "xaxis": { 730 | "buckets": null, 731 | "mode": "time", 732 | "name": null, 733 | "show": true, 734 | "values": [] 735 | }, 736 | "yaxes": [ 737 | { 738 | "format": "short", 739 | "label": null, 740 | "logBase": 1, 741 | "max": null, 742 | "min": null, 743 | "show": true 744 | }, 745 | { 746 | "format": "short", 747 | "label": null, 748 | "logBase": 1, 749 | "max": null, 750 | "min": null, 751 | "show": true 752 | } 753 | ], 754 | "yaxis": { 755 | "align": false, 756 | "alignLevel": null 757 | } 758 | }, 759 | { 760 | "aliasColors": {}, 761 | "bars": false, 762 | "dashLength": 10, 763 | "dashes": false, 764 | "datasource": "${DS_PROMETHEUS}", 765 | "decimals": 1, 766 | "fill": 1, 767 | "fillGradient": 0, 768 | "gridPos": { 769 | "h": 8, 770 | "w": 12, 771 | "x": 12, 772 | "y": 29 773 | }, 774 | "hiddenSeries": false, 775 | "id": 20, 776 | "legend": { 777 | "alignAsTable": true, 778 | "avg": false, 779 | "current": false, 780 | "max": false, 781 | "min": false, 782 | "rightSide": true, 783 | "show": true, 784 | "sort": "total", 785 | "sortDesc": true, 786 | "total": true, 787 | "values": true 788 | }, 789 | "lines": true, 790 | "linewidth": 1, 791 | "nullPointMode": "null", 792 | "options": { 793 | "dataLinks": [] 794 | }, 795 | "percentage": false, 796 | "pointradius": 2, 797 | "points": false, 798 | "renderer": "flot", 799 | "seriesOverrides": [], 800 | "spaceLength": 10, 801 | "stack": false, 802 | "steppedLine": false, 803 | "targets": [ 804 | { 805 | "expr": "sum(increase(cs_bucket_overflowed_total[$__interval])) by (name)", 806 | "interval": "", 807 | "intervalFactor": 2, 808 | "legendFormat": "{{name}}", 809 | "refId": "A" 810 | } 811 | ], 812 | "thresholds": [], 813 | "timeFrom": null, 814 | "timeRegions": [], 815 | "timeShift": null, 816 | "title": "Buckets overflow", 817 | "tooltip": { 818 | "shared": true, 819 | "sort": 0, 820 | "value_type": "individual" 821 | }, 822 | "transparent": true, 823 | "type": "graph", 824 | "xaxis": { 825 | "buckets": null, 826 | "mode": "time", 827 | "name": null, 828 | "show": true, 829 | "values": [] 830 | }, 831 | "yaxes": [ 832 | { 833 | "format": "short", 834 | "label": null, 835 | "logBase": 1, 836 | "max": null, 837 | "min": null, 838 | "show": true 839 | }, 840 | { 841 | "format": "short", 842 | "label": null, 843 | "logBase": 1, 844 | "max": null, 845 | "min": null, 846 | "show": true 847 | } 848 | ], 849 | "yaxis": { 850 | "align": false, 851 | "alignLevel": null 852 | } 853 | }, 854 | { 855 | "aliasColors": {}, 856 | "bars": false, 857 | "dashLength": 10, 858 | "dashes": false, 859 | "datasource": "${DS_PROMETHEUS}", 860 | "decimals": 1, 861 | "fill": 1, 862 | "fillGradient": 0, 863 | "gridPos": { 864 | "h": 9, 865 | "w": 24, 866 | "x": 0, 867 | "y": 38 868 | }, 869 | "hiddenSeries": false, 870 | "id": 22, 871 | "legend": { 872 | "alignAsTable": true, 873 | "avg": false, 874 | "current": false, 875 | "max": false, 876 | "min": false, 877 | "rightSide": true, 878 | "show": true, 879 | "sort": "total", 880 | "sortDesc": true, 881 | "total": true, 882 | "values": true 883 | }, 884 | "lines": true, 885 | "linewidth": 1, 886 | "nullPointMode": "null", 887 | "options": { 888 | "dataLinks": [] 889 | }, 890 | "percentage": false, 891 | "pointradius": 2, 892 | "points": false, 893 | "renderer": "flot", 894 | "seriesOverrides": [], 895 | "spaceLength": 10, 896 | "stack": false, 897 | "steppedLine": false, 898 | "targets": [ 899 | { 900 | "expr": "sum(cs_buckets) by (name)", 901 | "interval": "", 902 | "intervalFactor": 1, 903 | "legendFormat": "{{name}}", 904 | "refId": "A" 905 | } 906 | ], 907 | "thresholds": [], 908 | "timeFrom": null, 909 | "timeRegions": [], 910 | "timeShift": null, 911 | "title": "Buckets Timeline", 912 | "tooltip": { 913 | "shared": true, 914 | "sort": 0, 915 | "value_type": "individual" 916 | }, 917 | "transparent": true, 918 | "type": "graph", 919 | "xaxis": { 920 | "buckets": null, 921 | "mode": "time", 922 | "name": null, 923 | "show": true, 924 | "values": [] 925 | }, 926 | "yaxes": [ 927 | { 928 | "format": "short", 929 | "label": null, 930 | "logBase": 1, 931 | "max": null, 932 | "min": null, 933 | "show": true 934 | }, 935 | { 936 | "format": "short", 937 | "label": null, 938 | "logBase": 1, 939 | "max": null, 940 | "min": null, 941 | "show": true 942 | } 943 | ], 944 | "yaxis": { 945 | "align": false, 946 | "alignLevel": null 947 | } 948 | } 949 | ], 950 | "refresh": false, 951 | "schemaVersion": 22, 952 | "style": "dark", 953 | "tags": [], 954 | "templating": { 955 | "list": [] 956 | }, 957 | "time": { 958 | "from": "now-24h", 959 | "to": "now" 960 | }, 961 | "timepicker": { 962 | "refresh_intervals": [ 963 | "5s", 964 | "10s", 965 | "30s", 966 | "1m", 967 | "5m", 968 | "15m", 969 | "30m", 970 | "1h", 971 | "2h", 972 | "1d" 973 | ] 974 | }, 975 | "timezone": "", 976 | "title": "Crowdsec Overview", 977 | "uid": "0RX-YW4Gz", 978 | "variables": { 979 | "list": [] 980 | }, 981 | "version": 15 982 | } -------------------------------------------------------------------------------- /dashboards_v3/Crowdsec_Insight.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "gauge", 22 | "name": "Gauge", 23 | "version": "" 24 | }, 25 | { 26 | "type": "grafana", 27 | "id": "grafana", 28 | "name": "Grafana", 29 | "version": "8.1.2" 30 | }, 31 | { 32 | "type": "datasource", 33 | "id": "prometheus", 34 | "name": "Prometheus", 35 | "version": "1.0.0" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "stat", 40 | "name": "Stat", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "target": { 54 | "limit": 100, 55 | "matchAny": false, 56 | "tags": [], 57 | "type": "dashboard" 58 | }, 59 | "type": "dashboard" 60 | } 61 | ] 62 | }, 63 | "editable": true, 64 | "gnetId": null, 65 | "graphTooltip": 0, 66 | "id": null, 67 | "iteration": 1630569673411, 68 | "links": [], 69 | "panels": [ 70 | { 71 | "cacheTimeout": null, 72 | "datasource": "${DS_PROMETHEUS}", 73 | "fieldConfig": { 74 | "defaults": { 75 | "color": { 76 | "mode": "thresholds" 77 | }, 78 | "mappings": [ 79 | { 80 | "options": { 81 | "match": "null", 82 | "result": { 83 | "text": "N/A" 84 | } 85 | }, 86 | "type": "special" 87 | } 88 | ], 89 | "thresholds": { 90 | "mode": "absolute", 91 | "steps": [ 92 | { 93 | "color": "green", 94 | "value": null 95 | }, 96 | { 97 | "color": "red", 98 | "value": 80 99 | } 100 | ] 101 | }, 102 | "unit": "dateTimeAsIso" 103 | }, 104 | "overrides": [] 105 | }, 106 | "gridPos": { 107 | "h": 9, 108 | "w": 5, 109 | "x": 2, 110 | "y": 0 111 | }, 112 | "id": 2, 113 | "interval": null, 114 | "links": [], 115 | "maxDataPoints": 100, 116 | "options": { 117 | "colorMode": "none", 118 | "graphMode": "none", 119 | "justifyMode": "auto", 120 | "orientation": "horizontal", 121 | "reduceOptions": { 122 | "calcs": [ 123 | "lastNotNull" 124 | ], 125 | "fields": "", 126 | "values": false 127 | }, 128 | "text": {}, 129 | "textMode": "auto" 130 | }, 131 | "pluginVersion": "8.1.2", 132 | "targets": [ 133 | { 134 | "expr": "(process_start_time_seconds{machine=\"$machine\"})*1000", 135 | "interval": "", 136 | "legendFormat": "", 137 | "refId": "A" 138 | } 139 | ], 140 | "timeFrom": null, 141 | "timeShift": null, 142 | "title": "Up since", 143 | "type": "stat" 144 | }, 145 | { 146 | "datasource": "${DS_PROMETHEUS}", 147 | "fieldConfig": { 148 | "defaults": { 149 | "displayName": "", 150 | "mappings": [], 151 | "thresholds": { 152 | "mode": "absolute", 153 | "steps": [ 154 | { 155 | "color": "green", 156 | "value": null 157 | } 158 | ] 159 | }, 160 | "unit": "decbytes" 161 | }, 162 | "overrides": [] 163 | }, 164 | "gridPos": { 165 | "h": 9, 166 | "w": 5, 167 | "x": 7, 168 | "y": 0 169 | }, 170 | "id": 4, 171 | "options": { 172 | "orientation": "auto", 173 | "reduceOptions": { 174 | "calcs": [ 175 | "mean" 176 | ], 177 | "fields": "", 178 | "values": false 179 | }, 180 | "showThresholdLabels": false, 181 | "showThresholdMarkers": false, 182 | "text": {} 183 | }, 184 | "pluginVersion": "8.1.2", 185 | "targets": [ 186 | { 187 | "expr": "process_resident_memory_bytes{machine=\"$machine\"}", 188 | "format": "time_series", 189 | "interval": "", 190 | "intervalFactor": 3, 191 | "legendFormat": "", 192 | "refId": "A" 193 | } 194 | ], 195 | "timeFrom": null, 196 | "timeShift": null, 197 | "title": "Average Mem Usage", 198 | "transparent": true, 199 | "type": "gauge" 200 | }, 201 | { 202 | "datasource": "${DS_PROMETHEUS}", 203 | "fieldConfig": { 204 | "defaults": { 205 | "mappings": [], 206 | "max": 100, 207 | "min": 0, 208 | "thresholds": { 209 | "mode": "absolute", 210 | "steps": [ 211 | { 212 | "color": "green", 213 | "value": null 214 | }, 215 | { 216 | "color": "red", 217 | "value": 50 218 | } 219 | ] 220 | }, 221 | "unit": "percent" 222 | }, 223 | "overrides": [] 224 | }, 225 | "gridPos": { 226 | "h": 9, 227 | "w": 5, 228 | "x": 12, 229 | "y": 0 230 | }, 231 | "id": 6, 232 | "options": { 233 | "orientation": "auto", 234 | "reduceOptions": { 235 | "calcs": [ 236 | "mean" 237 | ], 238 | "fields": "", 239 | "values": false 240 | }, 241 | "showThresholdLabels": false, 242 | "showThresholdMarkers": true, 243 | "text": {} 244 | }, 245 | "pluginVersion": "8.1.2", 246 | "targets": [ 247 | { 248 | "expr": "rate(process_cpu_seconds_total{machine=\"$machine\"}[$__interval])*100", 249 | "interval": "", 250 | "intervalFactor": 2, 251 | "legendFormat": "", 252 | "refId": "A" 253 | } 254 | ], 255 | "timeFrom": null, 256 | "timeShift": null, 257 | "title": "Average CPU Usage", 258 | "transparent": true, 259 | "type": "gauge" 260 | }, 261 | { 262 | "cacheTimeout": null, 263 | "datasource": "${DS_PROMETHEUS}", 264 | "fieldConfig": { 265 | "defaults": { 266 | "color": { 267 | "mode": "thresholds" 268 | }, 269 | "mappings": [ 270 | { 271 | "options": { 272 | "match": "null", 273 | "result": { 274 | "text": "N/A" 275 | } 276 | }, 277 | "type": "special" 278 | } 279 | ], 280 | "thresholds": { 281 | "mode": "absolute", 282 | "steps": [ 283 | { 284 | "color": "green", 285 | "value": null 286 | }, 287 | { 288 | "color": "red", 289 | "value": 80 290 | } 291 | ] 292 | }, 293 | "unit": "none" 294 | }, 295 | "overrides": [] 296 | }, 297 | "gridPos": { 298 | "h": 9, 299 | "w": 5, 300 | "x": 17, 301 | "y": 0 302 | }, 303 | "id": 20, 304 | "interval": null, 305 | "links": [], 306 | "maxDataPoints": 100, 307 | "options": { 308 | "colorMode": "background", 309 | "graphMode": "none", 310 | "justifyMode": "auto", 311 | "orientation": "horizontal", 312 | "reduceOptions": { 313 | "calcs": [ 314 | "lastNotNull" 315 | ], 316 | "fields": "", 317 | "values": false 318 | }, 319 | "text": {}, 320 | "textMode": "auto" 321 | }, 322 | "pluginVersion": "8.1.2", 323 | "targets": [ 324 | { 325 | "expr": "process_max_fds{machine=\"$machine\"}", 326 | "interval": "", 327 | "legendFormat": "", 328 | "refId": "A" 329 | } 330 | ], 331 | "timeFrom": null, 332 | "timeShift": null, 333 | "title": "Process Max FDs", 334 | "type": "stat" 335 | }, 336 | { 337 | "cacheTimeout": null, 338 | "datasource": "${DS_PROMETHEUS}", 339 | "fieldConfig": { 340 | "defaults": { 341 | "color": { 342 | "mode": "thresholds" 343 | }, 344 | "mappings": [ 345 | { 346 | "options": { 347 | "match": "null", 348 | "result": { 349 | "text": "N/A" 350 | } 351 | }, 352 | "type": "special" 353 | } 354 | ], 355 | "thresholds": { 356 | "mode": "absolute", 357 | "steps": [ 358 | { 359 | "color": "green", 360 | "value": null 361 | }, 362 | { 363 | "color": "red", 364 | "value": 80 365 | } 366 | ] 367 | }, 368 | "unit": "none" 369 | }, 370 | "overrides": [] 371 | }, 372 | "gridPos": { 373 | "h": 9, 374 | "w": 5, 375 | "x": 2, 376 | "y": 9 377 | }, 378 | "id": 11, 379 | "interval": null, 380 | "links": [], 381 | "maxDataPoints": 100, 382 | "options": { 383 | "colorMode": "background", 384 | "graphMode": "none", 385 | "justifyMode": "auto", 386 | "orientation": "horizontal", 387 | "reduceOptions": { 388 | "calcs": [ 389 | "sum" 390 | ], 391 | "fields": "", 392 | "values": false 393 | }, 394 | "text": {}, 395 | "textMode": "auto" 396 | }, 397 | "pluginVersion": "8.1.2", 398 | "targets": [ 399 | { 400 | "exemplar": true, 401 | "expr": "sum(increase(cs_filesource_hits_total{machine=\"$machine\"}[$__interval]) or up * 0) + sum(increase(cs_cloudwatch_stream_hits_total{machine=\"$machine\"}[$__interval]) or up * 0) + sum(increase(cs_journalctlsource_hits_total{machine=\"$machine\"}[$__interval]) or up * 0) + sum(increase(cs_syslogsource_hits_total{machine=\"$machine\"}[$__interval]) or up * 0)", 402 | "interval": "", 403 | "intervalFactor": 2, 404 | "legendFormat": "", 405 | "refId": "A" 406 | } 407 | ], 408 | "timeFrom": null, 409 | "timeShift": null, 410 | "title": "Total raw lines", 411 | "type": "stat" 412 | }, 413 | { 414 | "cacheTimeout": null, 415 | "datasource": "${DS_PROMETHEUS}", 416 | "fieldConfig": { 417 | "defaults": { 418 | "color": { 419 | "mode": "thresholds" 420 | }, 421 | "mappings": [ 422 | { 423 | "options": { 424 | "match": "null", 425 | "result": { 426 | "text": "N/A" 427 | } 428 | }, 429 | "type": "special" 430 | } 431 | ], 432 | "thresholds": { 433 | "mode": "absolute", 434 | "steps": [ 435 | { 436 | "color": "green", 437 | "value": null 438 | }, 439 | { 440 | "color": "red", 441 | "value": 80 442 | } 443 | ] 444 | }, 445 | "unit": "none" 446 | }, 447 | "overrides": [] 448 | }, 449 | "gridPos": { 450 | "h": 9, 451 | "w": 5, 452 | "x": 7, 453 | "y": 9 454 | }, 455 | "id": 12, 456 | "interval": null, 457 | "links": [], 458 | "maxDataPoints": 100, 459 | "options": { 460 | "colorMode": "background", 461 | "graphMode": "none", 462 | "justifyMode": "auto", 463 | "orientation": "horizontal", 464 | "reduceOptions": { 465 | "calcs": [ 466 | "sum" 467 | ], 468 | "fields": "", 469 | "values": false 470 | }, 471 | "text": {}, 472 | "textMode": "auto" 473 | }, 474 | "pluginVersion": "8.1.2", 475 | "targets": [ 476 | { 477 | "exemplar": true, 478 | "expr": "sum(increase(cs_parser_hits_ok_total{machine=\"$machine\"}[$__interval]))", 479 | "interval": "", 480 | "intervalFactor": 2, 481 | "legendFormat": "", 482 | "refId": "A" 483 | } 484 | ], 485 | "timeFrom": null, 486 | "timeShift": null, 487 | "title": "Total parsed lines", 488 | "type": "stat" 489 | }, 490 | { 491 | "cacheTimeout": null, 492 | "datasource": "${DS_PROMETHEUS}", 493 | "fieldConfig": { 494 | "defaults": { 495 | "color": { 496 | "mode": "thresholds" 497 | }, 498 | "mappings": [ 499 | { 500 | "options": { 501 | "match": "null", 502 | "result": { 503 | "text": "N/A" 504 | } 505 | }, 506 | "type": "special" 507 | } 508 | ], 509 | "thresholds": { 510 | "mode": "absolute", 511 | "steps": [ 512 | { 513 | "color": "green", 514 | "value": null 515 | }, 516 | { 517 | "color": "red", 518 | "value": 80 519 | } 520 | ] 521 | }, 522 | "unit": "short" 523 | }, 524 | "overrides": [] 525 | }, 526 | "gridPos": { 527 | "h": 9, 528 | "w": 5, 529 | "x": 12, 530 | "y": 9 531 | }, 532 | "id": 8, 533 | "interval": null, 534 | "links": [], 535 | "maxDataPoints": 100, 536 | "options": { 537 | "colorMode": "background", 538 | "graphMode": "none", 539 | "justifyMode": "auto", 540 | "orientation": "horizontal", 541 | "reduceOptions": { 542 | "calcs": [ 543 | "sum" 544 | ], 545 | "fields": "", 546 | "values": false 547 | }, 548 | "text": {}, 549 | "textMode": "auto" 550 | }, 551 | "pluginVersion": "8.1.2", 552 | "targets": [ 553 | { 554 | "exemplar": true, 555 | "expr": "sum(increase(cs_bucket_overflowed_total{machine=\"$machine\"}[$__interval]))", 556 | "interval": "", 557 | "intervalFactor": 2, 558 | "legendFormat": "", 559 | "refId": "A" 560 | } 561 | ], 562 | "timeFrom": null, 563 | "timeShift": null, 564 | "title": "Total Overflows", 565 | "type": "stat" 566 | }, 567 | { 568 | "cacheTimeout": null, 569 | "datasource": "${DS_PROMETHEUS}", 570 | "fieldConfig": { 571 | "defaults": { 572 | "color": { 573 | "mode": "thresholds" 574 | }, 575 | "mappings": [ 576 | { 577 | "options": { 578 | "match": "null", 579 | "result": { 580 | "text": "N/A" 581 | } 582 | }, 583 | "type": "special" 584 | } 585 | ], 586 | "thresholds": { 587 | "mode": "absolute", 588 | "steps": [ 589 | { 590 | "color": "green", 591 | "value": null 592 | }, 593 | { 594 | "color": "red", 595 | "value": 80 596 | } 597 | ] 598 | }, 599 | "unit": "none" 600 | }, 601 | "overrides": [] 602 | }, 603 | "gridPos": { 604 | "h": 9, 605 | "w": 5, 606 | "x": 17, 607 | "y": 9 608 | }, 609 | "id": 18, 610 | "interval": null, 611 | "links": [], 612 | "maxDataPoints": 100, 613 | "options": { 614 | "colorMode": "background", 615 | "graphMode": "none", 616 | "justifyMode": "auto", 617 | "orientation": "horizontal", 618 | "reduceOptions": { 619 | "calcs": [ 620 | "lastNotNull" 621 | ], 622 | "fields": "", 623 | "values": false 624 | }, 625 | "text": {}, 626 | "textMode": "auto" 627 | }, 628 | "pluginVersion": "8.1.2", 629 | "targets": [ 630 | { 631 | "expr": "process_open_fds{machine=\"$machine\"}", 632 | "interval": "", 633 | "legendFormat": "", 634 | "refId": "A" 635 | } 636 | ], 637 | "timeFrom": null, 638 | "timeShift": null, 639 | "title": "Process Open FDs", 640 | "type": "stat" 641 | }, 642 | { 643 | "cacheTimeout": null, 644 | "datasource": "${DS_PROMETHEUS}", 645 | "fieldConfig": { 646 | "defaults": { 647 | "color": { 648 | "mode": "thresholds" 649 | }, 650 | "mappings": [ 651 | { 652 | "options": { 653 | "match": "null", 654 | "result": { 655 | "text": "N/A" 656 | } 657 | }, 658 | "type": "special" 659 | } 660 | ], 661 | "thresholds": { 662 | "mode": "absolute", 663 | "steps": [ 664 | { 665 | "color": "green", 666 | "value": null 667 | }, 668 | { 669 | "color": "red", 670 | "value": 80 671 | } 672 | ] 673 | }, 674 | "unit": "none" 675 | }, 676 | "overrides": [] 677 | }, 678 | "gridPos": { 679 | "h": 9, 680 | "w": 5, 681 | "x": 4, 682 | "y": 18 683 | }, 684 | "id": 14, 685 | "interval": null, 686 | "links": [], 687 | "maxDataPoints": 100, 688 | "options": { 689 | "colorMode": "background", 690 | "graphMode": "none", 691 | "justifyMode": "auto", 692 | "orientation": "horizontal", 693 | "reduceOptions": { 694 | "calcs": [ 695 | "sum" 696 | ], 697 | "fields": "", 698 | "values": false 699 | }, 700 | "text": {}, 701 | "textMode": "auto" 702 | }, 703 | "pluginVersion": "8.1.2", 704 | "targets": [ 705 | { 706 | "expr": "sum(increase(cs_parser_hits_ko_total{machine=\"$machine\"}[$__interval]))", 707 | "interval": "", 708 | "intervalFactor": 2, 709 | "legendFormat": "", 710 | "refId": "A" 711 | } 712 | ], 713 | "timeFrom": null, 714 | "timeShift": null, 715 | "title": "Total unparsed lines", 716 | "type": "stat" 717 | }, 718 | { 719 | "datasource": "${DS_PROMETHEUS}", 720 | "fieldConfig": { 721 | "defaults": { 722 | "mappings": [], 723 | "thresholds": { 724 | "mode": "absolute", 725 | "steps": [ 726 | { 727 | "color": "green", 728 | "value": null 729 | } 730 | ] 731 | } 732 | }, 733 | "overrides": [] 734 | }, 735 | "gridPos": { 736 | "h": 9, 737 | "w": 10, 738 | "x": 9, 739 | "y": 18 740 | }, 741 | "id": 16, 742 | "options": { 743 | "displayMode": "gradient", 744 | "orientation": "horizontal", 745 | "reduceOptions": { 746 | "calcs": [ 747 | "sum" 748 | ], 749 | "fields": "", 750 | "values": false 751 | }, 752 | "showUnfilled": false, 753 | "text": {} 754 | }, 755 | "pluginVersion": "8.1.2", 756 | "repeat": null, 757 | "repeatDirection": "v", 758 | "targets": [ 759 | { 760 | "expr": "sum(increase(cs_bucket_overflowed_total{machine=\"$machine\"}[$__interval])) by (name)", 761 | "format": "time_series", 762 | "instant": false, 763 | "interval": "", 764 | "intervalFactor": 2, 765 | "legendFormat": "{{name}}", 766 | "refId": "A" 767 | } 768 | ], 769 | "timeFrom": null, 770 | "timeShift": null, 771 | "title": "Top scenarios", 772 | "transparent": true, 773 | "type": "bargauge" 774 | } 775 | ], 776 | "schemaVersion": 30, 777 | "style": "dark", 778 | "tags": [], 779 | "templating": { 780 | "list": [ 781 | { 782 | "allValue": null, 783 | "current": {}, 784 | "datasource": "${DS_PROMETHEUS}", 785 | "definition": "label_values(up, machine)", 786 | "description": null, 787 | "error": null, 788 | "hide": 0, 789 | "includeAll": false, 790 | "label": "machine", 791 | "multi": false, 792 | "name": "machine", 793 | "options": [], 794 | "query": { 795 | "query": "label_values(up, machine)", 796 | "refId": "Prometheus-machine-Variable-Query" 797 | }, 798 | "refresh": 1, 799 | "regex": "", 800 | "skipUrlSync": false, 801 | "sort": 1, 802 | "tagValuesQuery": "", 803 | "tagsQuery": "", 804 | "type": "query", 805 | "useTags": false 806 | } 807 | ] 808 | }, 809 | "time": { 810 | "from": "now-24h", 811 | "to": "now" 812 | }, 813 | "timepicker": { 814 | "refresh_intervals": [ 815 | "5s", 816 | "10s", 817 | "30s", 818 | "1m", 819 | "5m", 820 | "15m", 821 | "30m", 822 | "1h", 823 | "2h", 824 | "1d" 825 | ] 826 | }, 827 | "timezone": "", 828 | "title": "Crowdsec Insight", 829 | "uid": "e7sWOBVnk", 830 | "version": 3 831 | } -------------------------------------------------------------------------------- /dashboards_v4/Crowdsec Insight.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "gauge", 22 | "name": "Gauge", 23 | "version": "" 24 | }, 25 | { 26 | "type": "grafana", 27 | "id": "grafana", 28 | "name": "Grafana", 29 | "version": "8.1.2" 30 | }, 31 | { 32 | "type": "datasource", 33 | "id": "prometheus", 34 | "name": "Prometheus", 35 | "version": "1.0.0" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "stat", 40 | "name": "Stat", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "target": { 54 | "limit": 100, 55 | "matchAny": false, 56 | "tags": [], 57 | "type": "dashboard" 58 | }, 59 | "type": "dashboard" 60 | } 61 | ] 62 | }, 63 | "editable": true, 64 | "gnetId": null, 65 | "graphTooltip": 0, 66 | "id": null, 67 | "iteration": 1655915159751, 68 | "links": [], 69 | "panels": [ 70 | { 71 | "collapsed": true, 72 | "datasource": null, 73 | "gridPos": { 74 | "h": 1, 75 | "w": 24, 76 | "x": 0, 77 | "y": 0 78 | }, 79 | "id": 22, 80 | "panels": [ 81 | { 82 | "cacheTimeout": null, 83 | "datasource": "${DS_PROMETHEUS}", 84 | "fieldConfig": { 85 | "defaults": { 86 | "color": { 87 | "mode": "thresholds" 88 | }, 89 | "mappings": [ 90 | { 91 | "options": { 92 | "match": "null", 93 | "result": { 94 | "text": "N/A" 95 | } 96 | }, 97 | "type": "special" 98 | } 99 | ], 100 | "thresholds": { 101 | "mode": "absolute", 102 | "steps": [ 103 | { 104 | "color": "green", 105 | "value": null 106 | }, 107 | { 108 | "color": "red", 109 | "value": 80 110 | } 111 | ] 112 | }, 113 | "unit": "dateTimeAsIso" 114 | }, 115 | "overrides": [] 116 | }, 117 | "gridPos": { 118 | "h": 9, 119 | "w": 5, 120 | "x": 2, 121 | "y": 1 122 | }, 123 | "id": 2, 124 | "interval": null, 125 | "links": [], 126 | "maxDataPoints": 100, 127 | "options": { 128 | "colorMode": "none", 129 | "graphMode": "none", 130 | "justifyMode": "auto", 131 | "orientation": "horizontal", 132 | "reduceOptions": { 133 | "calcs": [ 134 | "lastNotNull" 135 | ], 136 | "fields": "", 137 | "values": false 138 | }, 139 | "text": {}, 140 | "textMode": "auto" 141 | }, 142 | "pluginVersion": "8.1.2", 143 | "targets": [ 144 | { 145 | "exemplar": true, 146 | "expr": "(process_start_time_seconds{machine=\"$machine\"})*1000", 147 | "interval": "", 148 | "legendFormat": "{{machine}}", 149 | "refId": "A" 150 | } 151 | ], 152 | "timeFrom": null, 153 | "timeShift": null, 154 | "title": "Up since", 155 | "type": "stat" 156 | }, 157 | { 158 | "datasource": "${DS_PROMETHEUS}", 159 | "fieldConfig": { 160 | "defaults": { 161 | "displayName": "", 162 | "mappings": [], 163 | "thresholds": { 164 | "mode": "absolute", 165 | "steps": [ 166 | { 167 | "color": "green", 168 | "value": null 169 | } 170 | ] 171 | }, 172 | "unit": "decbytes" 173 | }, 174 | "overrides": [] 175 | }, 176 | "gridPos": { 177 | "h": 9, 178 | "w": 5, 179 | "x": 7, 180 | "y": 1 181 | }, 182 | "id": 4, 183 | "options": { 184 | "orientation": "auto", 185 | "reduceOptions": { 186 | "calcs": [ 187 | "mean" 188 | ], 189 | "fields": "", 190 | "values": false 191 | }, 192 | "showThresholdLabels": false, 193 | "showThresholdMarkers": false, 194 | "text": {} 195 | }, 196 | "pluginVersion": "8.1.2", 197 | "targets": [ 198 | { 199 | "exemplar": true, 200 | "expr": "process_resident_memory_bytes{machine=\"$machine\"}", 201 | "format": "time_series", 202 | "interval": "", 203 | "intervalFactor": 3, 204 | "legendFormat": "{{machine}}", 205 | "refId": "A" 206 | } 207 | ], 208 | "timeFrom": null, 209 | "timeShift": null, 210 | "title": "Average Mem Usage", 211 | "transparent": true, 212 | "type": "gauge" 213 | }, 214 | { 215 | "datasource": "${DS_PROMETHEUS}", 216 | "fieldConfig": { 217 | "defaults": { 218 | "mappings": [], 219 | "max": 100, 220 | "min": 0, 221 | "thresholds": { 222 | "mode": "absolute", 223 | "steps": [ 224 | { 225 | "color": "green", 226 | "value": null 227 | }, 228 | { 229 | "color": "red", 230 | "value": 50 231 | } 232 | ] 233 | }, 234 | "unit": "percent" 235 | }, 236 | "overrides": [] 237 | }, 238 | "gridPos": { 239 | "h": 9, 240 | "w": 5, 241 | "x": 12, 242 | "y": 1 243 | }, 244 | "id": 6, 245 | "options": { 246 | "orientation": "auto", 247 | "reduceOptions": { 248 | "calcs": [ 249 | "mean" 250 | ], 251 | "fields": "", 252 | "values": false 253 | }, 254 | "showThresholdLabels": false, 255 | "showThresholdMarkers": true, 256 | "text": {} 257 | }, 258 | "pluginVersion": "8.1.2", 259 | "targets": [ 260 | { 261 | "exemplar": true, 262 | "expr": "rate(process_cpu_seconds_total{machine=\"$machine\"}[$__interval])*100", 263 | "interval": "", 264 | "intervalFactor": 2, 265 | "legendFormat": "{{machine}}", 266 | "refId": "A" 267 | } 268 | ], 269 | "timeFrom": null, 270 | "timeShift": null, 271 | "title": "Average CPU Usage", 272 | "transparent": true, 273 | "type": "gauge" 274 | }, 275 | { 276 | "cacheTimeout": null, 277 | "datasource": "${DS_PROMETHEUS}", 278 | "fieldConfig": { 279 | "defaults": { 280 | "color": { 281 | "mode": "thresholds" 282 | }, 283 | "mappings": [ 284 | { 285 | "options": { 286 | "match": "null", 287 | "result": { 288 | "text": "N/A" 289 | } 290 | }, 291 | "type": "special" 292 | } 293 | ], 294 | "thresholds": { 295 | "mode": "absolute", 296 | "steps": [ 297 | { 298 | "color": "green", 299 | "value": null 300 | }, 301 | { 302 | "color": "red", 303 | "value": 80 304 | } 305 | ] 306 | }, 307 | "unit": "none" 308 | }, 309 | "overrides": [] 310 | }, 311 | "gridPos": { 312 | "h": 9, 313 | "w": 5, 314 | "x": 17, 315 | "y": 1 316 | }, 317 | "id": 20, 318 | "interval": null, 319 | "links": [], 320 | "maxDataPoints": 100, 321 | "options": { 322 | "colorMode": "background", 323 | "graphMode": "none", 324 | "justifyMode": "auto", 325 | "orientation": "horizontal", 326 | "reduceOptions": { 327 | "calcs": [ 328 | "lastNotNull" 329 | ], 330 | "fields": "", 331 | "values": false 332 | }, 333 | "text": {}, 334 | "textMode": "auto" 335 | }, 336 | "pluginVersion": "8.1.2", 337 | "targets": [ 338 | { 339 | "exemplar": true, 340 | "expr": "process_max_fds{machine=\"$machine\"}", 341 | "interval": "", 342 | "legendFormat": "{{machine}}", 343 | "refId": "A" 344 | } 345 | ], 346 | "timeFrom": null, 347 | "timeShift": null, 348 | "title": "Process Max FDs", 349 | "type": "stat" 350 | }, 351 | { 352 | "cacheTimeout": null, 353 | "datasource": "${DS_PROMETHEUS}", 354 | "fieldConfig": { 355 | "defaults": { 356 | "color": { 357 | "mode": "thresholds" 358 | }, 359 | "mappings": [ 360 | { 361 | "options": { 362 | "match": "null", 363 | "result": { 364 | "text": "N/A" 365 | } 366 | }, 367 | "type": "special" 368 | } 369 | ], 370 | "thresholds": { 371 | "mode": "absolute", 372 | "steps": [ 373 | { 374 | "color": "green", 375 | "value": null 376 | }, 377 | { 378 | "color": "red", 379 | "value": 80 380 | } 381 | ] 382 | }, 383 | "unit": "none" 384 | }, 385 | "overrides": [] 386 | }, 387 | "gridPos": { 388 | "h": 9, 389 | "w": 5, 390 | "x": 2, 391 | "y": 10 392 | }, 393 | "id": 11, 394 | "interval": null, 395 | "links": [], 396 | "maxDataPoints": 100, 397 | "options": { 398 | "colorMode": "background", 399 | "graphMode": "none", 400 | "justifyMode": "auto", 401 | "orientation": "horizontal", 402 | "reduceOptions": { 403 | "calcs": [ 404 | "sum" 405 | ], 406 | "fields": "", 407 | "values": false 408 | }, 409 | "text": {}, 410 | "textMode": "auto" 411 | }, 412 | "pluginVersion": "8.1.2", 413 | "targets": [ 414 | { 415 | "exemplar": true, 416 | "expr": "sum(increase(cs_filesource_hits_total{machine=\"$machine\"}[$__interval]) or up * 0) + sum(increase(cs_cloudwatch_stream_hits_total{machine=\"$machine\"}[$__interval]) or up * 0) + sum(increase(cs_journalctlsource_hits_total{machine=\"$machine\"}[$__interval]) or up * 0) + sum(increase(cs_syslogsource_hits_total{machine=\"$machine\"}[$__interval]) or up * 0)", 417 | "interval": "", 418 | "intervalFactor": 2, 419 | "legendFormat": "", 420 | "refId": "A" 421 | } 422 | ], 423 | "timeFrom": null, 424 | "timeShift": null, 425 | "title": "Total raw lines", 426 | "type": "stat" 427 | }, 428 | { 429 | "cacheTimeout": null, 430 | "datasource": "${DS_PROMETHEUS}", 431 | "fieldConfig": { 432 | "defaults": { 433 | "color": { 434 | "mode": "thresholds" 435 | }, 436 | "mappings": [ 437 | { 438 | "options": { 439 | "match": "null", 440 | "result": { 441 | "text": "N/A" 442 | } 443 | }, 444 | "type": "special" 445 | } 446 | ], 447 | "thresholds": { 448 | "mode": "absolute", 449 | "steps": [ 450 | { 451 | "color": "green", 452 | "value": null 453 | }, 454 | { 455 | "color": "red", 456 | "value": 80 457 | } 458 | ] 459 | }, 460 | "unit": "none" 461 | }, 462 | "overrides": [] 463 | }, 464 | "gridPos": { 465 | "h": 9, 466 | "w": 5, 467 | "x": 7, 468 | "y": 10 469 | }, 470 | "id": 12, 471 | "interval": null, 472 | "links": [], 473 | "maxDataPoints": 100, 474 | "options": { 475 | "colorMode": "background", 476 | "graphMode": "none", 477 | "justifyMode": "auto", 478 | "orientation": "horizontal", 479 | "reduceOptions": { 480 | "calcs": [ 481 | "sum" 482 | ], 483 | "fields": "", 484 | "values": false 485 | }, 486 | "text": {}, 487 | "textMode": "auto" 488 | }, 489 | "pluginVersion": "8.1.2", 490 | "targets": [ 491 | { 492 | "exemplar": true, 493 | "expr": "sum(increase(cs_parser_hits_ok_total{machine=\"$machine\"}[$__interval]))", 494 | "interval": "", 495 | "intervalFactor": 2, 496 | "legendFormat": "", 497 | "refId": "A" 498 | } 499 | ], 500 | "timeFrom": null, 501 | "timeShift": null, 502 | "title": "Total parsed lines", 503 | "type": "stat" 504 | }, 505 | { 506 | "cacheTimeout": null, 507 | "datasource": "${DS_PROMETHEUS}", 508 | "fieldConfig": { 509 | "defaults": { 510 | "color": { 511 | "mode": "thresholds" 512 | }, 513 | "mappings": [ 514 | { 515 | "options": { 516 | "match": "null", 517 | "result": { 518 | "text": "N/A" 519 | } 520 | }, 521 | "type": "special" 522 | } 523 | ], 524 | "thresholds": { 525 | "mode": "absolute", 526 | "steps": [ 527 | { 528 | "color": "green", 529 | "value": null 530 | }, 531 | { 532 | "color": "red", 533 | "value": 80 534 | } 535 | ] 536 | }, 537 | "unit": "short" 538 | }, 539 | "overrides": [] 540 | }, 541 | "gridPos": { 542 | "h": 9, 543 | "w": 5, 544 | "x": 12, 545 | "y": 10 546 | }, 547 | "id": 8, 548 | "interval": null, 549 | "links": [], 550 | "maxDataPoints": 100, 551 | "options": { 552 | "colorMode": "background", 553 | "graphMode": "none", 554 | "justifyMode": "auto", 555 | "orientation": "horizontal", 556 | "reduceOptions": { 557 | "calcs": [ 558 | "sum" 559 | ], 560 | "fields": "", 561 | "values": false 562 | }, 563 | "text": {}, 564 | "textMode": "auto" 565 | }, 566 | "pluginVersion": "8.1.2", 567 | "targets": [ 568 | { 569 | "exemplar": true, 570 | "expr": "sum(increase(cs_bucket_overflowed_total{machine=\"$machine\"}[$__interval]))", 571 | "interval": "", 572 | "intervalFactor": 2, 573 | "legendFormat": "", 574 | "refId": "A" 575 | } 576 | ], 577 | "timeFrom": null, 578 | "timeShift": null, 579 | "title": "Total Overflows", 580 | "type": "stat" 581 | }, 582 | { 583 | "cacheTimeout": null, 584 | "datasource": "${DS_PROMETHEUS}", 585 | "fieldConfig": { 586 | "defaults": { 587 | "color": { 588 | "mode": "thresholds" 589 | }, 590 | "mappings": [ 591 | { 592 | "options": { 593 | "match": "null", 594 | "result": { 595 | "text": "N/A" 596 | } 597 | }, 598 | "type": "special" 599 | } 600 | ], 601 | "thresholds": { 602 | "mode": "absolute", 603 | "steps": [ 604 | { 605 | "color": "green", 606 | "value": null 607 | }, 608 | { 609 | "color": "red", 610 | "value": 80 611 | } 612 | ] 613 | }, 614 | "unit": "none" 615 | }, 616 | "overrides": [] 617 | }, 618 | "gridPos": { 619 | "h": 9, 620 | "w": 5, 621 | "x": 17, 622 | "y": 10 623 | }, 624 | "id": 18, 625 | "interval": null, 626 | "links": [], 627 | "maxDataPoints": 100, 628 | "options": { 629 | "colorMode": "background", 630 | "graphMode": "none", 631 | "justifyMode": "auto", 632 | "orientation": "horizontal", 633 | "reduceOptions": { 634 | "calcs": [ 635 | "lastNotNull" 636 | ], 637 | "fields": "", 638 | "values": false 639 | }, 640 | "text": {}, 641 | "textMode": "auto" 642 | }, 643 | "pluginVersion": "8.1.2", 644 | "targets": [ 645 | { 646 | "exemplar": true, 647 | "expr": "process_open_fds{machine=\"$machine\"}", 648 | "interval": "", 649 | "legendFormat": "{{machine}}", 650 | "refId": "A" 651 | } 652 | ], 653 | "timeFrom": null, 654 | "timeShift": null, 655 | "title": "Process Open FDs", 656 | "type": "stat" 657 | }, 658 | { 659 | "cacheTimeout": null, 660 | "datasource": "${DS_PROMETHEUS}", 661 | "fieldConfig": { 662 | "defaults": { 663 | "color": { 664 | "mode": "thresholds" 665 | }, 666 | "mappings": [ 667 | { 668 | "options": { 669 | "match": "null", 670 | "result": { 671 | "text": "N/A" 672 | } 673 | }, 674 | "type": "special" 675 | } 676 | ], 677 | "thresholds": { 678 | "mode": "absolute", 679 | "steps": [ 680 | { 681 | "color": "green", 682 | "value": null 683 | }, 684 | { 685 | "color": "red", 686 | "value": 80 687 | } 688 | ] 689 | }, 690 | "unit": "none" 691 | }, 692 | "overrides": [] 693 | }, 694 | "gridPos": { 695 | "h": 9, 696 | "w": 5, 697 | "x": 4, 698 | "y": 19 699 | }, 700 | "id": 14, 701 | "interval": null, 702 | "links": [], 703 | "maxDataPoints": 100, 704 | "options": { 705 | "colorMode": "background", 706 | "graphMode": "none", 707 | "justifyMode": "auto", 708 | "orientation": "horizontal", 709 | "reduceOptions": { 710 | "calcs": [ 711 | "sum" 712 | ], 713 | "fields": "", 714 | "values": false 715 | }, 716 | "text": {}, 717 | "textMode": "auto" 718 | }, 719 | "pluginVersion": "8.1.2", 720 | "targets": [ 721 | { 722 | "expr": "sum(increase(cs_parser_hits_ko_total{machine=\"$machine\"}[$__interval]))", 723 | "interval": "", 724 | "intervalFactor": 2, 725 | "legendFormat": "", 726 | "refId": "A" 727 | } 728 | ], 729 | "timeFrom": null, 730 | "timeShift": null, 731 | "title": "Total unparsed lines", 732 | "type": "stat" 733 | }, 734 | { 735 | "datasource": "${DS_PROMETHEUS}", 736 | "fieldConfig": { 737 | "defaults": { 738 | "mappings": [], 739 | "thresholds": { 740 | "mode": "absolute", 741 | "steps": [ 742 | { 743 | "color": "green", 744 | "value": null 745 | } 746 | ] 747 | } 748 | }, 749 | "overrides": [] 750 | }, 751 | "gridPos": { 752 | "h": 9, 753 | "w": 10, 754 | "x": 9, 755 | "y": 19 756 | }, 757 | "id": 16, 758 | "options": { 759 | "displayMode": "gradient", 760 | "orientation": "horizontal", 761 | "reduceOptions": { 762 | "calcs": [ 763 | "sum" 764 | ], 765 | "fields": "", 766 | "values": false 767 | }, 768 | "showUnfilled": false, 769 | "text": {} 770 | }, 771 | "pluginVersion": "8.1.2", 772 | "repeat": null, 773 | "repeatDirection": "v", 774 | "targets": [ 775 | { 776 | "exemplar": true, 777 | "expr": "sum(increase(cs_bucket_overflowed_total{machine=\"$machine\"}[$__interval])) by (name)", 778 | "format": "time_series", 779 | "instant": false, 780 | "interval": "", 781 | "intervalFactor": 2, 782 | "legendFormat": "{{name}}", 783 | "refId": "A" 784 | } 785 | ], 786 | "timeFrom": null, 787 | "timeShift": null, 788 | "title": "Top scenarios", 789 | "transparent": true, 790 | "type": "bargauge" 791 | } 792 | ], 793 | "repeat": "machine", 794 | "title": "$machine", 795 | "type": "row" 796 | } 797 | ], 798 | "schemaVersion": 30, 799 | "style": "dark", 800 | "tags": [], 801 | "templating": { 802 | "list": [ 803 | { 804 | "allValue": null, 805 | "current": {}, 806 | "datasource": "${DS_PROMETHEUS}", 807 | "definition": "label_values(up, machine)", 808 | "description": null, 809 | "error": null, 810 | "hide": 0, 811 | "includeAll": true, 812 | "label": "machine", 813 | "multi": true, 814 | "name": "machine", 815 | "options": [], 816 | "query": { 817 | "query": "label_values(up, machine)", 818 | "refId": "Prometheus-machine-Variable-Query" 819 | }, 820 | "refresh": 1, 821 | "regex": "", 822 | "skipUrlSync": false, 823 | "sort": 1, 824 | "tagValuesQuery": "", 825 | "tagsQuery": "", 826 | "type": "query", 827 | "useTags": false 828 | } 829 | ] 830 | }, 831 | "time": { 832 | "from": "now-24h", 833 | "to": "now" 834 | }, 835 | "timepicker": { 836 | "refresh_intervals": [ 837 | "5s", 838 | "10s", 839 | "30s", 840 | "1m", 841 | "5m", 842 | "15m", 843 | "30m", 844 | "1h", 845 | "2h", 846 | "1d" 847 | ] 848 | }, 849 | "timezone": "", 850 | "title": "Crowdsec Insight", 851 | "uid": "e7sWOBVnk", 852 | "version": 8 853 | } -------------------------------------------------------------------------------- /dashboards_v4/LAPI Metrics.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "grafana", 21 | "id": "grafana", 22 | "name": "Grafana", 23 | "version": "8.1.2" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | } 31 | ], 32 | "annotations": { 33 | "list": [ 34 | { 35 | "builtIn": 1, 36 | "datasource": "-- Grafana --", 37 | "enable": true, 38 | "hide": true, 39 | "iconColor": "rgba(0, 211, 255, 1)", 40 | "name": "Annotations & Alerts", 41 | "target": { 42 | "limit": 100, 43 | "matchAny": false, 44 | "tags": [], 45 | "type": "dashboard" 46 | }, 47 | "type": "dashboard" 48 | } 49 | ] 50 | }, 51 | "editable": true, 52 | "gnetId": null, 53 | "graphTooltip": 0, 54 | "id": null, 55 | "iteration": 1655915193937, 56 | "links": [], 57 | "panels": [ 58 | { 59 | "collapsed": false, 60 | "datasource": null, 61 | "gridPos": { 62 | "h": 1, 63 | "w": 24, 64 | "x": 0, 65 | "y": 0 66 | }, 67 | "id": 10, 68 | "panels": [], 69 | "title": "Agents", 70 | "type": "row" 71 | }, 72 | { 73 | "datasource": "${DS_PROMETHEUS}", 74 | "fieldConfig": { 75 | "defaults": { 76 | "color": { 77 | "mode": "thresholds" 78 | }, 79 | "mappings": [], 80 | "thresholds": { 81 | "mode": "absolute", 82 | "steps": [ 83 | { 84 | "color": "green", 85 | "value": null 86 | }, 87 | { 88 | "color": "red", 89 | "value": 80 90 | } 91 | ] 92 | } 93 | }, 94 | "overrides": [] 95 | }, 96 | "gridPos": { 97 | "h": 8, 98 | "w": 12, 99 | "x": 0, 100 | "y": 1 101 | }, 102 | "id": 2, 103 | "options": { 104 | "displayMode": "gradient", 105 | "orientation": "vertical", 106 | "reduceOptions": { 107 | "calcs": [ 108 | "lastNotNull" 109 | ], 110 | "fields": "", 111 | "values": false 112 | }, 113 | "showUnfilled": false, 114 | "text": {} 115 | }, 116 | "pluginVersion": "8.1.2", 117 | "repeat": "query0", 118 | "repeatDirection": "h", 119 | "targets": [ 120 | { 121 | "exemplar": true, 122 | "expr": "cs_lapi_request_duration_seconds_bucket{endpoint=\"/v1/watchers/login\", machine=\"$lapi\"}", 123 | "format": "heatmap", 124 | "interval": "", 125 | "legendFormat": "{{le}}", 126 | "refId": "A" 127 | } 128 | ], 129 | "title": "Agents Login", 130 | "type": "bargauge" 131 | }, 132 | { 133 | "datasource": "${DS_PROMETHEUS}", 134 | "fieldConfig": { 135 | "defaults": { 136 | "color": { 137 | "mode": "thresholds" 138 | }, 139 | "mappings": [], 140 | "thresholds": { 141 | "mode": "absolute", 142 | "steps": [ 143 | { 144 | "color": "green", 145 | "value": null 146 | } 147 | ] 148 | }, 149 | "unit": "none" 150 | }, 151 | "overrides": [] 152 | }, 153 | "gridPos": { 154 | "h": 8, 155 | "w": 12, 156 | "x": 12, 157 | "y": 1 158 | }, 159 | "id": 6, 160 | "options": { 161 | "displayMode": "gradient", 162 | "orientation": "auto", 163 | "reduceOptions": { 164 | "calcs": [ 165 | "lastNotNull" 166 | ], 167 | "fields": "", 168 | "values": false 169 | }, 170 | "showUnfilled": false, 171 | "text": {} 172 | }, 173 | "pluginVersion": "8.1.2", 174 | "targets": [ 175 | { 176 | "exemplar": true, 177 | "expr": "cs_lapi_request_duration_seconds_bucket{endpoint=\"/v1/heartbeat\",machine=\"$lapi\"}", 178 | "format": "heatmap", 179 | "interval": "", 180 | "legendFormat": "{{le}}", 181 | "refId": "A" 182 | } 183 | ], 184 | "title": "Heartbeat", 185 | "type": "bargauge" 186 | }, 187 | { 188 | "collapsed": false, 189 | "datasource": null, 190 | "gridPos": { 191 | "h": 1, 192 | "w": 24, 193 | "x": 0, 194 | "y": 9 195 | }, 196 | "id": 12, 197 | "panels": [], 198 | "title": "Decisions", 199 | "type": "row" 200 | }, 201 | { 202 | "datasource": "${DS_PROMETHEUS}", 203 | "fieldConfig": { 204 | "defaults": { 205 | "color": { 206 | "mode": "thresholds" 207 | }, 208 | "mappings": [], 209 | "thresholds": { 210 | "mode": "absolute", 211 | "steps": [ 212 | { 213 | "color": "green", 214 | "value": null 215 | }, 216 | { 217 | "color": "red", 218 | "value": 80 219 | } 220 | ] 221 | } 222 | }, 223 | "overrides": [] 224 | }, 225 | "gridPos": { 226 | "h": 8, 227 | "w": 12, 228 | "x": 0, 229 | "y": 10 230 | }, 231 | "id": 4, 232 | "options": { 233 | "displayMode": "gradient", 234 | "orientation": "auto", 235 | "reduceOptions": { 236 | "calcs": [ 237 | "lastNotNull" 238 | ], 239 | "fields": "", 240 | "values": false 241 | }, 242 | "showUnfilled": false, 243 | "text": {} 244 | }, 245 | "pluginVersion": "8.1.2", 246 | "targets": [ 247 | { 248 | "exemplar": true, 249 | "expr": "cs_lapi_request_duration_seconds_bucket{endpoint= \"/v1/decisions\", machine=\"$lapi\", method=~\"(GET)|(HEAD)\"}", 250 | "format": "heatmap", 251 | "interval": "", 252 | "legendFormat": "{{le}}", 253 | "refId": "A" 254 | } 255 | ], 256 | "title": "Decisions GET (live)", 257 | "type": "bargauge" 258 | }, 259 | { 260 | "datasource": "${DS_PROMETHEUS}", 261 | "fieldConfig": { 262 | "defaults": { 263 | "color": { 264 | "mode": "thresholds" 265 | }, 266 | "mappings": [], 267 | "thresholds": { 268 | "mode": "absolute", 269 | "steps": [ 270 | { 271 | "color": "green", 272 | "value": null 273 | }, 274 | { 275 | "color": "red", 276 | "value": 80 277 | } 278 | ] 279 | } 280 | }, 281 | "overrides": [] 282 | }, 283 | "gridPos": { 284 | "h": 8, 285 | "w": 12, 286 | "x": 12, 287 | "y": 10 288 | }, 289 | "id": 13, 290 | "options": { 291 | "displayMode": "gradient", 292 | "orientation": "auto", 293 | "reduceOptions": { 294 | "calcs": [ 295 | "lastNotNull" 296 | ], 297 | "fields": "", 298 | "values": false 299 | }, 300 | "showUnfilled": false, 301 | "text": {} 302 | }, 303 | "pluginVersion": "8.1.2", 304 | "targets": [ 305 | { 306 | "exemplar": true, 307 | "expr": "cs_lapi_request_duration_seconds_bucket{endpoint= \"/v1/decisions/stream\", machine=\"$lapi\", method=~\"(GET)|(HEAD)\"}", 308 | "format": "heatmap", 309 | "interval": "", 310 | "legendFormat": "{{le}}", 311 | "refId": "A" 312 | } 313 | ], 314 | "title": "Decisions GET (stream)", 315 | "type": "bargauge" 316 | }, 317 | { 318 | "datasource": "${DS_PROMETHEUS}", 319 | "fieldConfig": { 320 | "defaults": { 321 | "color": { 322 | "mode": "thresholds" 323 | }, 324 | "mappings": [], 325 | "thresholds": { 326 | "mode": "absolute", 327 | "steps": [ 328 | { 329 | "color": "green", 330 | "value": null 331 | }, 332 | { 333 | "color": "red", 334 | "value": 80 335 | } 336 | ] 337 | } 338 | }, 339 | "overrides": [] 340 | }, 341 | "gridPos": { 342 | "h": 8, 343 | "w": 12, 344 | "x": 0, 345 | "y": 18 346 | }, 347 | "id": 8, 348 | "options": { 349 | "displayMode": "gradient", 350 | "orientation": "auto", 351 | "reduceOptions": { 352 | "calcs": [ 353 | "lastNotNull" 354 | ], 355 | "fields": "", 356 | "values": false 357 | }, 358 | "showUnfilled": false, 359 | "text": {} 360 | }, 361 | "pluginVersion": "8.1.2", 362 | "targets": [ 363 | { 364 | "exemplar": true, 365 | "expr": "cs_lapi_request_duration_seconds_bucket{endpoint=~\"/v1/decisions.*\", machine=\"$lapi\", method=\"DELETE\"}", 366 | "format": "heatmap", 367 | "interval": "", 368 | "legendFormat": "{{le}}", 369 | "refId": "A" 370 | } 371 | ], 372 | "title": "Decisions DELETE", 373 | "type": "bargauge" 374 | }, 375 | { 376 | "collapsed": false, 377 | "datasource": null, 378 | "gridPos": { 379 | "h": 1, 380 | "w": 24, 381 | "x": 0, 382 | "y": 26 383 | }, 384 | "id": 15, 385 | "panels": [], 386 | "title": "Alerts", 387 | "type": "row" 388 | }, 389 | { 390 | "datasource": "${DS_PROMETHEUS}", 391 | "fieldConfig": { 392 | "defaults": { 393 | "color": { 394 | "mode": "thresholds" 395 | }, 396 | "mappings": [], 397 | "thresholds": { 398 | "mode": "absolute", 399 | "steps": [ 400 | { 401 | "color": "green", 402 | "value": null 403 | }, 404 | { 405 | "color": "red", 406 | "value": 80 407 | } 408 | ] 409 | } 410 | }, 411 | "overrides": [] 412 | }, 413 | "gridPos": { 414 | "h": 8, 415 | "w": 12, 416 | "x": 0, 417 | "y": 27 418 | }, 419 | "id": 17, 420 | "options": { 421 | "displayMode": "gradient", 422 | "orientation": "auto", 423 | "reduceOptions": { 424 | "calcs": [ 425 | "lastNotNull" 426 | ], 427 | "fields": "", 428 | "values": false 429 | }, 430 | "showUnfilled": false, 431 | "text": {} 432 | }, 433 | "pluginVersion": "8.1.2", 434 | "targets": [ 435 | { 436 | "exemplar": true, 437 | "expr": "cs_lapi_request_duration_seconds_bucket{endpoint=\"/v1/alerts\",machine=\"$lapi\",method=\"POST\"}", 438 | "format": "heatmap", 439 | "interval": "", 440 | "legendFormat": "{{le}}", 441 | "refId": "A" 442 | } 443 | ], 444 | "title": "Alerts POST", 445 | "type": "bargauge" 446 | }, 447 | { 448 | "datasource": "${DS_PROMETHEUS}", 449 | "fieldConfig": { 450 | "defaults": { 451 | "color": { 452 | "mode": "thresholds" 453 | }, 454 | "mappings": [], 455 | "thresholds": { 456 | "mode": "absolute", 457 | "steps": [ 458 | { 459 | "color": "green", 460 | "value": null 461 | }, 462 | { 463 | "color": "red", 464 | "value": 80 465 | } 466 | ] 467 | } 468 | }, 469 | "overrides": [] 470 | }, 471 | "gridPos": { 472 | "h": 8, 473 | "w": 12, 474 | "x": 12, 475 | "y": 27 476 | }, 477 | "id": 18, 478 | "options": { 479 | "displayMode": "gradient", 480 | "orientation": "auto", 481 | "reduceOptions": { 482 | "calcs": [ 483 | "lastNotNull" 484 | ], 485 | "fields": "", 486 | "values": false 487 | }, 488 | "showUnfilled": false, 489 | "text": {} 490 | }, 491 | "pluginVersion": "8.1.2", 492 | "targets": [ 493 | { 494 | "exemplar": true, 495 | "expr": "cs_lapi_request_duration_seconds_bucket{endpoint=\"/v1/alerts\",machine=\"$lapi\",method=~\"(GET)|(HEAD)\"}", 496 | "format": "heatmap", 497 | "interval": "", 498 | "legendFormat": "{{le}}", 499 | "refId": "A" 500 | } 501 | ], 502 | "title": "Alerts GET", 503 | "type": "bargauge" 504 | } 505 | ], 506 | "schemaVersion": 30, 507 | "style": "dark", 508 | "tags": [], 509 | "templating": { 510 | "list": [ 511 | { 512 | "allValue": null, 513 | "current": {}, 514 | "datasource": "${DS_PROMETHEUS}", 515 | "definition": "label_values(cs_info, machine)", 516 | "description": null, 517 | "error": null, 518 | "hide": 0, 519 | "includeAll": false, 520 | "label": null, 521 | "multi": false, 522 | "name": "lapi", 523 | "options": [], 524 | "query": { 525 | "query": "label_values(cs_info, machine)", 526 | "refId": "StandardVariableQuery" 527 | }, 528 | "refresh": 1, 529 | "regex": "", 530 | "skipUrlSync": false, 531 | "sort": 0, 532 | "type": "query" 533 | } 534 | ] 535 | }, 536 | "time": { 537 | "from": "now-6h", 538 | "to": "now" 539 | }, 540 | "timepicker": {}, 541 | "timezone": "", 542 | "title": "LAPI Metrics", 543 | "uid": "ofdKJG37k", 544 | "version": 11 545 | } -------------------------------------------------------------------------------- /dashboards_v5/Crowdsec Insight.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "panel", 21 | "id": "gauge", 22 | "name": "Gauge", 23 | "version": "" 24 | }, 25 | { 26 | "type": "grafana", 27 | "id": "grafana", 28 | "name": "Grafana", 29 | "version": "8.1.2" 30 | }, 31 | { 32 | "type": "datasource", 33 | "id": "prometheus", 34 | "name": "Prometheus", 35 | "version": "1.0.0" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "stat", 40 | "name": "Stat", 41 | "version": "" 42 | } 43 | ], 44 | "annotations": { 45 | "list": [ 46 | { 47 | "builtIn": 1, 48 | "datasource": "-- Grafana --", 49 | "enable": true, 50 | "hide": true, 51 | "iconColor": "rgba(0, 211, 255, 1)", 52 | "name": "Annotations & Alerts", 53 | "target": { 54 | "limit": 100, 55 | "matchAny": false, 56 | "tags": [], 57 | "type": "dashboard" 58 | }, 59 | "type": "dashboard" 60 | } 61 | ] 62 | }, 63 | "editable": true, 64 | "gnetId": null, 65 | "graphTooltip": 0, 66 | "id": null, 67 | "iteration": 1655915159751, 68 | "links": [], 69 | "panels": [ 70 | { 71 | "collapsed": true, 72 | "datasource": null, 73 | "gridPos": { 74 | "h": 1, 75 | "w": 24, 76 | "x": 0, 77 | "y": 0 78 | }, 79 | "id": 22, 80 | "panels": [ 81 | { 82 | "cacheTimeout": null, 83 | "datasource": "${DS_PROMETHEUS}", 84 | "fieldConfig": { 85 | "defaults": { 86 | "color": { 87 | "mode": "thresholds" 88 | }, 89 | "mappings": [ 90 | { 91 | "options": { 92 | "match": "null", 93 | "result": { 94 | "text": "N/A" 95 | } 96 | }, 97 | "type": "special" 98 | } 99 | ], 100 | "thresholds": { 101 | "mode": "absolute", 102 | "steps": [ 103 | { 104 | "color": "green", 105 | "value": null 106 | }, 107 | { 108 | "color": "red", 109 | "value": 80 110 | } 111 | ] 112 | }, 113 | "unit": "dateTimeAsIso" 114 | }, 115 | "overrides": [] 116 | }, 117 | "gridPos": { 118 | "h": 9, 119 | "w": 5, 120 | "x": 2, 121 | "y": 1 122 | }, 123 | "id": 2, 124 | "interval": null, 125 | "links": [], 126 | "maxDataPoints": 100, 127 | "options": { 128 | "colorMode": "none", 129 | "graphMode": "none", 130 | "justifyMode": "auto", 131 | "orientation": "horizontal", 132 | "reduceOptions": { 133 | "calcs": [ 134 | "lastNotNull" 135 | ], 136 | "fields": "", 137 | "values": false 138 | }, 139 | "text": {}, 140 | "textMode": "auto" 141 | }, 142 | "pluginVersion": "8.1.2", 143 | "targets": [ 144 | { 145 | "exemplar": true, 146 | "expr": "(process_start_time_seconds{instance=\"$instance\"})*1000", 147 | "interval": "", 148 | "legendFormat": "{{instance}}", 149 | "refId": "A" 150 | } 151 | ], 152 | "timeFrom": null, 153 | "timeShift": null, 154 | "title": "Up since", 155 | "type": "stat" 156 | }, 157 | { 158 | "datasource": "${DS_PROMETHEUS}", 159 | "fieldConfig": { 160 | "defaults": { 161 | "displayName": "", 162 | "mappings": [], 163 | "thresholds": { 164 | "mode": "absolute", 165 | "steps": [ 166 | { 167 | "color": "green", 168 | "value": null 169 | } 170 | ] 171 | }, 172 | "unit": "decbytes" 173 | }, 174 | "overrides": [] 175 | }, 176 | "gridPos": { 177 | "h": 9, 178 | "w": 5, 179 | "x": 7, 180 | "y": 1 181 | }, 182 | "id": 4, 183 | "options": { 184 | "orientation": "auto", 185 | "reduceOptions": { 186 | "calcs": [ 187 | "mean" 188 | ], 189 | "fields": "", 190 | "values": false 191 | }, 192 | "showThresholdLabels": false, 193 | "showThresholdMarkers": false, 194 | "text": {} 195 | }, 196 | "pluginVersion": "8.1.2", 197 | "targets": [ 198 | { 199 | "exemplar": true, 200 | "expr": "process_resident_memory_bytes{instance=\"$instance\"}", 201 | "format": "time_series", 202 | "interval": "", 203 | "intervalFactor": 3, 204 | "legendFormat": "{{instance}}", 205 | "refId": "A" 206 | } 207 | ], 208 | "timeFrom": null, 209 | "timeShift": null, 210 | "title": "Average Mem Usage", 211 | "transparent": true, 212 | "type": "gauge" 213 | }, 214 | { 215 | "datasource": "${DS_PROMETHEUS}", 216 | "fieldConfig": { 217 | "defaults": { 218 | "mappings": [], 219 | "max": 100, 220 | "min": 0, 221 | "thresholds": { 222 | "mode": "absolute", 223 | "steps": [ 224 | { 225 | "color": "green", 226 | "value": null 227 | }, 228 | { 229 | "color": "red", 230 | "value": 50 231 | } 232 | ] 233 | }, 234 | "unit": "percent" 235 | }, 236 | "overrides": [] 237 | }, 238 | "gridPos": { 239 | "h": 9, 240 | "w": 5, 241 | "x": 12, 242 | "y": 1 243 | }, 244 | "id": 6, 245 | "options": { 246 | "orientation": "auto", 247 | "reduceOptions": { 248 | "calcs": [ 249 | "mean" 250 | ], 251 | "fields": "", 252 | "values": false 253 | }, 254 | "showThresholdLabels": false, 255 | "showThresholdMarkers": true, 256 | "text": {} 257 | }, 258 | "pluginVersion": "8.1.2", 259 | "targets": [ 260 | { 261 | "exemplar": true, 262 | "expr": "rate(process_cpu_seconds_total{instance=\"$instance\"}[$__interval])*100", 263 | "interval": "", 264 | "intervalFactor": 2, 265 | "legendFormat": "{{instance}}", 266 | "refId": "A" 267 | } 268 | ], 269 | "timeFrom": null, 270 | "timeShift": null, 271 | "title": "Average CPU Usage", 272 | "transparent": true, 273 | "type": "gauge" 274 | }, 275 | { 276 | "cacheTimeout": null, 277 | "datasource": "${DS_PROMETHEUS}", 278 | "fieldConfig": { 279 | "defaults": { 280 | "color": { 281 | "mode": "thresholds" 282 | }, 283 | "mappings": [ 284 | { 285 | "options": { 286 | "match": "null", 287 | "result": { 288 | "text": "N/A" 289 | } 290 | }, 291 | "type": "special" 292 | } 293 | ], 294 | "thresholds": { 295 | "mode": "absolute", 296 | "steps": [ 297 | { 298 | "color": "green", 299 | "value": null 300 | }, 301 | { 302 | "color": "red", 303 | "value": 80 304 | } 305 | ] 306 | }, 307 | "unit": "none" 308 | }, 309 | "overrides": [] 310 | }, 311 | "gridPos": { 312 | "h": 9, 313 | "w": 5, 314 | "x": 17, 315 | "y": 1 316 | }, 317 | "id": 20, 318 | "interval": null, 319 | "links": [], 320 | "maxDataPoints": 100, 321 | "options": { 322 | "colorMode": "background", 323 | "graphMode": "none", 324 | "justifyMode": "auto", 325 | "orientation": "horizontal", 326 | "reduceOptions": { 327 | "calcs": [ 328 | "lastNotNull" 329 | ], 330 | "fields": "", 331 | "values": false 332 | }, 333 | "text": {}, 334 | "textMode": "auto" 335 | }, 336 | "pluginVersion": "8.1.2", 337 | "targets": [ 338 | { 339 | "exemplar": true, 340 | "expr": "process_max_fds{instance=\"$instance\"}", 341 | "interval": "", 342 | "legendFormat": "{{instance}}", 343 | "refId": "A" 344 | } 345 | ], 346 | "timeFrom": null, 347 | "timeShift": null, 348 | "title": "Process Max FDs", 349 | "type": "stat" 350 | }, 351 | { 352 | "cacheTimeout": null, 353 | "datasource": "${DS_PROMETHEUS}", 354 | "fieldConfig": { 355 | "defaults": { 356 | "color": { 357 | "mode": "thresholds" 358 | }, 359 | "mappings": [ 360 | { 361 | "options": { 362 | "match": "null", 363 | "result": { 364 | "text": "N/A" 365 | } 366 | }, 367 | "type": "special" 368 | } 369 | ], 370 | "thresholds": { 371 | "mode": "absolute", 372 | "steps": [ 373 | { 374 | "color": "green", 375 | "value": null 376 | }, 377 | { 378 | "color": "red", 379 | "value": 80 380 | } 381 | ] 382 | }, 383 | "unit": "none" 384 | }, 385 | "overrides": [] 386 | }, 387 | "gridPos": { 388 | "h": 9, 389 | "w": 5, 390 | "x": 2, 391 | "y": 10 392 | }, 393 | "id": 11, 394 | "interval": null, 395 | "links": [], 396 | "maxDataPoints": 100, 397 | "options": { 398 | "colorMode": "background", 399 | "graphMode": "none", 400 | "justifyMode": "auto", 401 | "orientation": "horizontal", 402 | "reduceOptions": { 403 | "calcs": [ 404 | "sum" 405 | ], 406 | "fields": "", 407 | "values": false 408 | }, 409 | "text": {}, 410 | "textMode": "auto" 411 | }, 412 | "pluginVersion": "8.1.2", 413 | "targets": [ 414 | { 415 | "exemplar": true, 416 | "expr": "sum(increase(cs_filesource_hits_total{instance=\"$instance\"}[$__interval]) or up * 0) + sum(increase(cs_cloudwatch_stream_hits_total{instance=\"$instance\"}[$__interval]) or up * 0) + sum(increase(cs_journalctlsource_hits_total{instance=\"$instance\"}[$__interval]) or up * 0) + sum(increase(cs_syslogsource_hits_total{instance=\"$instance\"}[$__interval]) or up * 0)", 417 | "interval": "", 418 | "intervalFactor": 2, 419 | "legendFormat": "", 420 | "refId": "A" 421 | } 422 | ], 423 | "timeFrom": null, 424 | "timeShift": null, 425 | "title": "Total raw lines", 426 | "type": "stat" 427 | }, 428 | { 429 | "cacheTimeout": null, 430 | "datasource": "${DS_PROMETHEUS}", 431 | "fieldConfig": { 432 | "defaults": { 433 | "color": { 434 | "mode": "thresholds" 435 | }, 436 | "mappings": [ 437 | { 438 | "options": { 439 | "match": "null", 440 | "result": { 441 | "text": "N/A" 442 | } 443 | }, 444 | "type": "special" 445 | } 446 | ], 447 | "thresholds": { 448 | "mode": "absolute", 449 | "steps": [ 450 | { 451 | "color": "green", 452 | "value": null 453 | }, 454 | { 455 | "color": "red", 456 | "value": 80 457 | } 458 | ] 459 | }, 460 | "unit": "none" 461 | }, 462 | "overrides": [] 463 | }, 464 | "gridPos": { 465 | "h": 9, 466 | "w": 5, 467 | "x": 7, 468 | "y": 10 469 | }, 470 | "id": 12, 471 | "interval": null, 472 | "links": [], 473 | "maxDataPoints": 100, 474 | "options": { 475 | "colorMode": "background", 476 | "graphMode": "none", 477 | "justifyMode": "auto", 478 | "orientation": "horizontal", 479 | "reduceOptions": { 480 | "calcs": [ 481 | "sum" 482 | ], 483 | "fields": "", 484 | "values": false 485 | }, 486 | "text": {}, 487 | "textMode": "auto" 488 | }, 489 | "pluginVersion": "8.1.2", 490 | "targets": [ 491 | { 492 | "exemplar": true, 493 | "expr": "sum(increase(cs_parser_hits_ok_total{instance=\"$instance\"}[$__interval]))", 494 | "interval": "", 495 | "intervalFactor": 2, 496 | "legendFormat": "", 497 | "refId": "A" 498 | } 499 | ], 500 | "timeFrom": null, 501 | "timeShift": null, 502 | "title": "Total parsed lines", 503 | "type": "stat" 504 | }, 505 | { 506 | "cacheTimeout": null, 507 | "datasource": "${DS_PROMETHEUS}", 508 | "fieldConfig": { 509 | "defaults": { 510 | "color": { 511 | "mode": "thresholds" 512 | }, 513 | "mappings": [ 514 | { 515 | "options": { 516 | "match": "null", 517 | "result": { 518 | "text": "N/A" 519 | } 520 | }, 521 | "type": "special" 522 | } 523 | ], 524 | "thresholds": { 525 | "mode": "absolute", 526 | "steps": [ 527 | { 528 | "color": "green", 529 | "value": null 530 | }, 531 | { 532 | "color": "red", 533 | "value": 80 534 | } 535 | ] 536 | }, 537 | "unit": "short" 538 | }, 539 | "overrides": [] 540 | }, 541 | "gridPos": { 542 | "h": 9, 543 | "w": 5, 544 | "x": 12, 545 | "y": 10 546 | }, 547 | "id": 8, 548 | "interval": null, 549 | "links": [], 550 | "maxDataPoints": 100, 551 | "options": { 552 | "colorMode": "background", 553 | "graphMode": "none", 554 | "justifyMode": "auto", 555 | "orientation": "horizontal", 556 | "reduceOptions": { 557 | "calcs": [ 558 | "sum" 559 | ], 560 | "fields": "", 561 | "values": false 562 | }, 563 | "text": {}, 564 | "textMode": "auto" 565 | }, 566 | "pluginVersion": "8.1.2", 567 | "targets": [ 568 | { 569 | "exemplar": true, 570 | "expr": "sum(increase(cs_bucket_overflowed_total{instance=\"$instance\"}[$__interval]))", 571 | "interval": "", 572 | "intervalFactor": 2, 573 | "legendFormat": "", 574 | "refId": "A" 575 | } 576 | ], 577 | "timeFrom": null, 578 | "timeShift": null, 579 | "title": "Total Overflows", 580 | "type": "stat" 581 | }, 582 | { 583 | "cacheTimeout": null, 584 | "datasource": "${DS_PROMETHEUS}", 585 | "fieldConfig": { 586 | "defaults": { 587 | "color": { 588 | "mode": "thresholds" 589 | }, 590 | "mappings": [ 591 | { 592 | "options": { 593 | "match": "null", 594 | "result": { 595 | "text": "N/A" 596 | } 597 | }, 598 | "type": "special" 599 | } 600 | ], 601 | "thresholds": { 602 | "mode": "absolute", 603 | "steps": [ 604 | { 605 | "color": "green", 606 | "value": null 607 | }, 608 | { 609 | "color": "red", 610 | "value": 80 611 | } 612 | ] 613 | }, 614 | "unit": "none" 615 | }, 616 | "overrides": [] 617 | }, 618 | "gridPos": { 619 | "h": 9, 620 | "w": 5, 621 | "x": 17, 622 | "y": 10 623 | }, 624 | "id": 18, 625 | "interval": null, 626 | "links": [], 627 | "maxDataPoints": 100, 628 | "options": { 629 | "colorMode": "background", 630 | "graphMode": "none", 631 | "justifyMode": "auto", 632 | "orientation": "horizontal", 633 | "reduceOptions": { 634 | "calcs": [ 635 | "lastNotNull" 636 | ], 637 | "fields": "", 638 | "values": false 639 | }, 640 | "text": {}, 641 | "textMode": "auto" 642 | }, 643 | "pluginVersion": "8.1.2", 644 | "targets": [ 645 | { 646 | "exemplar": true, 647 | "expr": "process_open_fds{instance=\"$instance\"}", 648 | "interval": "", 649 | "legendFormat": "{{instance}}", 650 | "refId": "A" 651 | } 652 | ], 653 | "timeFrom": null, 654 | "timeShift": null, 655 | "title": "Process Open FDs", 656 | "type": "stat" 657 | }, 658 | { 659 | "cacheTimeout": null, 660 | "datasource": "${DS_PROMETHEUS}", 661 | "fieldConfig": { 662 | "defaults": { 663 | "color": { 664 | "mode": "thresholds" 665 | }, 666 | "mappings": [ 667 | { 668 | "options": { 669 | "match": "null", 670 | "result": { 671 | "text": "N/A" 672 | } 673 | }, 674 | "type": "special" 675 | } 676 | ], 677 | "thresholds": { 678 | "mode": "absolute", 679 | "steps": [ 680 | { 681 | "color": "green", 682 | "value": null 683 | }, 684 | { 685 | "color": "red", 686 | "value": 80 687 | } 688 | ] 689 | }, 690 | "unit": "none" 691 | }, 692 | "overrides": [] 693 | }, 694 | "gridPos": { 695 | "h": 9, 696 | "w": 5, 697 | "x": 4, 698 | "y": 19 699 | }, 700 | "id": 14, 701 | "interval": null, 702 | "links": [], 703 | "maxDataPoints": 100, 704 | "options": { 705 | "colorMode": "background", 706 | "graphMode": "none", 707 | "justifyMode": "auto", 708 | "orientation": "horizontal", 709 | "reduceOptions": { 710 | "calcs": [ 711 | "sum" 712 | ], 713 | "fields": "", 714 | "values": false 715 | }, 716 | "text": {}, 717 | "textMode": "auto" 718 | }, 719 | "pluginVersion": "8.1.2", 720 | "targets": [ 721 | { 722 | "expr": "sum(increase(cs_parser_hits_ko_total{instance=\"$instance\"}[$__interval]))", 723 | "interval": "", 724 | "intervalFactor": 2, 725 | "legendFormat": "", 726 | "refId": "A" 727 | } 728 | ], 729 | "timeFrom": null, 730 | "timeShift": null, 731 | "title": "Total unparsed lines", 732 | "type": "stat" 733 | }, 734 | { 735 | "datasource": "${DS_PROMETHEUS}", 736 | "fieldConfig": { 737 | "defaults": { 738 | "mappings": [], 739 | "thresholds": { 740 | "mode": "absolute", 741 | "steps": [ 742 | { 743 | "color": "green", 744 | "value": null 745 | } 746 | ] 747 | } 748 | }, 749 | "overrides": [] 750 | }, 751 | "gridPos": { 752 | "h": 9, 753 | "w": 10, 754 | "x": 9, 755 | "y": 19 756 | }, 757 | "id": 16, 758 | "options": { 759 | "displayMode": "gradient", 760 | "orientation": "horizontal", 761 | "reduceOptions": { 762 | "calcs": [ 763 | "sum" 764 | ], 765 | "fields": "", 766 | "values": false 767 | }, 768 | "showUnfilled": false, 769 | "text": {} 770 | }, 771 | "pluginVersion": "8.1.2", 772 | "repeat": null, 773 | "repeatDirection": "v", 774 | "targets": [ 775 | { 776 | "exemplar": true, 777 | "expr": "sum(increase(cs_bucket_overflowed_total{instance=\"$instance\"}[$__interval])) by (name)", 778 | "format": "time_series", 779 | "instant": false, 780 | "interval": "", 781 | "intervalFactor": 2, 782 | "legendFormat": "{{name}}", 783 | "refId": "A" 784 | } 785 | ], 786 | "timeFrom": null, 787 | "timeShift": null, 788 | "title": "Top scenarios", 789 | "transparent": true, 790 | "type": "bargauge" 791 | } 792 | ], 793 | "repeat": "instance", 794 | "title": "$instance", 795 | "type": "row" 796 | } 797 | ], 798 | "schemaVersion": 30, 799 | "style": "dark", 800 | "tags": [], 801 | "templating": { 802 | "list": [ 803 | { 804 | "allValue": null, 805 | "current": {}, 806 | "datasource": "${DS_PROMETHEUS}", 807 | "definition": "label_values(cs_info, instance)", 808 | "description": null, 809 | "error": null, 810 | "hide": 0, 811 | "includeAll": true, 812 | "label": "instance", 813 | "multi": true, 814 | "name": "instance", 815 | "options": [], 816 | "query": { 817 | "query": "label_values(cs_info, instance)", 818 | "refId": "Prometheus-instance-Variable-Query" 819 | }, 820 | "refresh": 1, 821 | "regex": "", 822 | "skipUrlSync": false, 823 | "sort": 1, 824 | "tagValuesQuery": "", 825 | "tagsQuery": "", 826 | "type": "query", 827 | "useTags": false 828 | } 829 | ] 830 | }, 831 | "time": { 832 | "from": "now-24h", 833 | "to": "now" 834 | }, 835 | "timepicker": { 836 | "refresh_intervals": [ 837 | "5s", 838 | "10s", 839 | "30s", 840 | "1m", 841 | "5m", 842 | "15m", 843 | "30m", 844 | "1h", 845 | "2h", 846 | "1d" 847 | ] 848 | }, 849 | "timezone": "", 850 | "title": "Crowdsec Insight", 851 | "uid": "e7sWOBVnk", 852 | "version": 8 853 | } -------------------------------------------------------------------------------- /dashboards_v5/LAPI Metrics.json: -------------------------------------------------------------------------------- 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 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "grafana", 21 | "id": "grafana", 22 | "name": "Grafana", 23 | "version": "8.1.2" 24 | }, 25 | { 26 | "type": "datasource", 27 | "id": "prometheus", 28 | "name": "Prometheus", 29 | "version": "1.0.0" 30 | } 31 | ], 32 | "annotations": { 33 | "list": [ 34 | { 35 | "builtIn": 1, 36 | "datasource": "-- Grafana --", 37 | "enable": true, 38 | "hide": true, 39 | "iconColor": "rgba(0, 211, 255, 1)", 40 | "name": "Annotations & Alerts", 41 | "target": { 42 | "limit": 100, 43 | "matchAny": false, 44 | "tags": [], 45 | "type": "dashboard" 46 | }, 47 | "type": "dashboard" 48 | } 49 | ] 50 | }, 51 | "editable": true, 52 | "gnetId": null, 53 | "graphTooltip": 0, 54 | "id": null, 55 | "iteration": 1655915193937, 56 | "links": [], 57 | "panels": [ 58 | { 59 | "collapsed": false, 60 | "datasource": null, 61 | "gridPos": { 62 | "h": 1, 63 | "w": 24, 64 | "x": 0, 65 | "y": 0 66 | }, 67 | "id": 10, 68 | "panels": [], 69 | "title": "Agents", 70 | "type": "row" 71 | }, 72 | { 73 | "datasource": "${DS_PROMETHEUS}", 74 | "fieldConfig": { 75 | "defaults": { 76 | "color": { 77 | "mode": "thresholds" 78 | }, 79 | "mappings": [], 80 | "thresholds": { 81 | "mode": "absolute", 82 | "steps": [ 83 | { 84 | "color": "green", 85 | "value": null 86 | }, 87 | { 88 | "color": "red", 89 | "value": 80 90 | } 91 | ] 92 | } 93 | }, 94 | "overrides": [] 95 | }, 96 | "gridPos": { 97 | "h": 8, 98 | "w": 12, 99 | "x": 0, 100 | "y": 1 101 | }, 102 | "id": 2, 103 | "options": { 104 | "displayMode": "gradient", 105 | "orientation": "vertical", 106 | "reduceOptions": { 107 | "calcs": [ 108 | "lastNotNull" 109 | ], 110 | "fields": "", 111 | "values": false 112 | }, 113 | "showUnfilled": false, 114 | "text": {} 115 | }, 116 | "pluginVersion": "8.1.2", 117 | "repeat": "query0", 118 | "repeatDirection": "h", 119 | "targets": [ 120 | { 121 | "exemplar": false, 122 | "expr": "sum(rate(cs_lapi_request_duration_seconds_bucket{endpoint=\"/v1/watchers/login\", instance=\"$lapi\"}[$__rate_interval])) by (le)", 123 | "format": "heatmap", 124 | "interval": "", 125 | "legendFormat": "{{le}}", 126 | "refId": "A" 127 | } 128 | ], 129 | "title": "Agents Login", 130 | "type": "heatmap" 131 | }, 132 | { 133 | "datasource": "${DS_PROMETHEUS}", 134 | "fieldConfig": { 135 | "defaults": { 136 | "color": { 137 | "mode": "thresholds" 138 | }, 139 | "mappings": [], 140 | "thresholds": { 141 | "mode": "absolute", 142 | "steps": [ 143 | { 144 | "color": "green", 145 | "value": null 146 | } 147 | ] 148 | }, 149 | "unit": "none" 150 | }, 151 | "overrides": [] 152 | }, 153 | "gridPos": { 154 | "h": 8, 155 | "w": 12, 156 | "x": 12, 157 | "y": 1 158 | }, 159 | "id": 6, 160 | "options": { 161 | "displayMode": "gradient", 162 | "orientation": "auto", 163 | "reduceOptions": { 164 | "calcs": [ 165 | "lastNotNull" 166 | ], 167 | "fields": "", 168 | "values": false 169 | }, 170 | "showUnfilled": false, 171 | "text": {} 172 | }, 173 | "pluginVersion": "8.1.2", 174 | "targets": [ 175 | { 176 | "exemplar": true, 177 | "expr": "sum(rate(cs_lapi_request_duration_seconds_bucket{endpoint=\"/v1/watchers/login\"}[$__rate_interval])) by (le)", 178 | "format": "heatmap", 179 | "interval": "", 180 | "legendFormat": "{{le}}", 181 | "refId": "A" 182 | } 183 | ], 184 | "title": "Heartbeat", 185 | "type": "heatmap" 186 | }, 187 | { 188 | "collapsed": false, 189 | "datasource": null, 190 | "gridPos": { 191 | "h": 1, 192 | "w": 24, 193 | "x": 0, 194 | "y": 9 195 | }, 196 | "id": 12, 197 | "panels": [], 198 | "title": "Decisions", 199 | "type": "row" 200 | }, 201 | { 202 | "datasource": "${DS_PROMETHEUS}", 203 | "fieldConfig": { 204 | "defaults": { 205 | "color": { 206 | "mode": "thresholds" 207 | }, 208 | "mappings": [], 209 | "thresholds": { 210 | "mode": "absolute", 211 | "steps": [ 212 | { 213 | "color": "green", 214 | "value": null 215 | }, 216 | { 217 | "color": "red", 218 | "value": 80 219 | } 220 | ] 221 | } 222 | }, 223 | "overrides": [] 224 | }, 225 | "gridPos": { 226 | "h": 8, 227 | "w": 12, 228 | "x": 0, 229 | "y": 10 230 | }, 231 | "id": 4, 232 | "options": { 233 | "displayMode": "gradient", 234 | "orientation": "auto", 235 | "reduceOptions": { 236 | "calcs": [ 237 | "lastNotNull" 238 | ], 239 | "fields": "", 240 | "values": false 241 | }, 242 | "showUnfilled": false, 243 | "text": {} 244 | }, 245 | "pluginVersion": "8.1.2", 246 | "targets": [ 247 | { 248 | "exemplar": true, 249 | "expr": "sum(rate(cs_lapi_request_duration_seconds_bucket{endpoint= \"/v1/decisions\", instance=\"$lapi\", method=~\"(GET)|(HEAD)\"}[$__rate_interval])) by (le)", 250 | "format": "heatmap", 251 | "interval": "", 252 | "legendFormat": "{{le}}", 253 | "refId": "A" 254 | } 255 | ], 256 | "title": "Decisions GET (live)", 257 | "type": "heatmap" 258 | }, 259 | { 260 | "datasource": "${DS_PROMETHEUS}", 261 | "fieldConfig": { 262 | "defaults": { 263 | "color": { 264 | "mode": "thresholds" 265 | }, 266 | "mappings": [], 267 | "thresholds": { 268 | "mode": "absolute", 269 | "steps": [ 270 | { 271 | "color": "green", 272 | "value": null 273 | }, 274 | { 275 | "color": "red", 276 | "value": 80 277 | } 278 | ] 279 | } 280 | }, 281 | "overrides": [] 282 | }, 283 | "gridPos": { 284 | "h": 8, 285 | "w": 12, 286 | "x": 12, 287 | "y": 10 288 | }, 289 | "id": 13, 290 | "options": { 291 | "displayMode": "gradient", 292 | "orientation": "auto", 293 | "reduceOptions": { 294 | "calcs": [ 295 | "lastNotNull" 296 | ], 297 | "fields": "", 298 | "values": false 299 | }, 300 | "showUnfilled": false, 301 | "text": {} 302 | }, 303 | "pluginVersion": "8.1.2", 304 | "targets": [ 305 | { 306 | "exemplar": true, 307 | "expr": "sum(rate(cs_lapi_request_duration_seconds_bucket{endpoint= \"/v1/decisions/stream\", instance=\"$lapi\", method=~\"(GET)|(HEAD)\"}[$__rate_interval])) by (le)", 308 | "format": "heatmap", 309 | "interval": "", 310 | "legendFormat": "{{le}}", 311 | "refId": "A" 312 | } 313 | ], 314 | "title": "Decisions GET (stream)", 315 | "type": "heatmap" 316 | }, 317 | { 318 | "datasource": "${DS_PROMETHEUS}", 319 | "fieldConfig": { 320 | "defaults": { 321 | "color": { 322 | "mode": "thresholds" 323 | }, 324 | "mappings": [], 325 | "thresholds": { 326 | "mode": "absolute", 327 | "steps": [ 328 | { 329 | "color": "green", 330 | "value": null 331 | }, 332 | { 333 | "color": "red", 334 | "value": 80 335 | } 336 | ] 337 | } 338 | }, 339 | "overrides": [] 340 | }, 341 | "gridPos": { 342 | "h": 8, 343 | "w": 12, 344 | "x": 0, 345 | "y": 18 346 | }, 347 | "id": 8, 348 | "options": { 349 | "displayMode": "gradient", 350 | "orientation": "auto", 351 | "reduceOptions": { 352 | "calcs": [ 353 | "lastNotNull" 354 | ], 355 | "fields": "", 356 | "values": false 357 | }, 358 | "showUnfilled": false, 359 | "text": {} 360 | }, 361 | "pluginVersion": "8.1.2", 362 | "targets": [ 363 | { 364 | "exemplar": true, 365 | "expr": "sum(rate(cs_lapi_request_duration_seconds_bucket{endpoint=~\"/v1/decisions.*\", instance=\"$lapi\", method=\"DELETE\"}[$__rate_interval])) by (le)", 366 | "format": "heatmap", 367 | "interval": "", 368 | "legendFormat": "{{le}}", 369 | "refId": "A" 370 | } 371 | ], 372 | "title": "Decisions DELETE", 373 | "type": "heatmap" 374 | }, 375 | { 376 | "collapsed": false, 377 | "datasource": null, 378 | "gridPos": { 379 | "h": 1, 380 | "w": 24, 381 | "x": 0, 382 | "y": 26 383 | }, 384 | "id": 15, 385 | "panels": [], 386 | "title": "Alerts", 387 | "type": "row" 388 | }, 389 | { 390 | "datasource": "${DS_PROMETHEUS}", 391 | "fieldConfig": { 392 | "defaults": { 393 | "color": { 394 | "mode": "thresholds" 395 | }, 396 | "mappings": [], 397 | "thresholds": { 398 | "mode": "absolute", 399 | "steps": [ 400 | { 401 | "color": "green", 402 | "value": null 403 | }, 404 | { 405 | "color": "red", 406 | "value": 80 407 | } 408 | ] 409 | } 410 | }, 411 | "overrides": [] 412 | }, 413 | "gridPos": { 414 | "h": 8, 415 | "w": 12, 416 | "x": 0, 417 | "y": 27 418 | }, 419 | "id": 17, 420 | "options": { 421 | "displayMode": "gradient", 422 | "orientation": "auto", 423 | "reduceOptions": { 424 | "calcs": [ 425 | "lastNotNull" 426 | ], 427 | "fields": "", 428 | "values": false 429 | }, 430 | "showUnfilled": false, 431 | "text": {} 432 | }, 433 | "pluginVersion": "8.1.2", 434 | "targets": [ 435 | { 436 | "exemplar": true, 437 | "expr": "sum(rate(cs_lapi_request_duration_seconds_bucket{endpoint=\"/v1/alerts\",instance=\"$lapi\",method=\"POST\"}[$__rate_interval])) by (le)", 438 | "format": "heatmap", 439 | "interval": "", 440 | "legendFormat": "{{le}}", 441 | "refId": "A" 442 | } 443 | ], 444 | "title": "Alerts POST", 445 | "type": "heatmap" 446 | }, 447 | { 448 | "datasource": "${DS_PROMETHEUS}", 449 | "fieldConfig": { 450 | "defaults": { 451 | "color": { 452 | "mode": "thresholds" 453 | }, 454 | "mappings": [], 455 | "thresholds": { 456 | "mode": "absolute", 457 | "steps": [ 458 | { 459 | "color": "green", 460 | "value": null 461 | }, 462 | { 463 | "color": "red", 464 | "value": 80 465 | } 466 | ] 467 | } 468 | }, 469 | "overrides": [] 470 | }, 471 | "gridPos": { 472 | "h": 8, 473 | "w": 12, 474 | "x": 12, 475 | "y": 27 476 | }, 477 | "id": 18, 478 | "options": { 479 | "displayMode": "gradient", 480 | "orientation": "auto", 481 | "reduceOptions": { 482 | "calcs": [ 483 | "lastNotNull" 484 | ], 485 | "fields": "", 486 | "values": false 487 | }, 488 | "showUnfilled": false, 489 | "text": {} 490 | }, 491 | "pluginVersion": "8.1.2", 492 | "targets": [ 493 | { 494 | "exemplar": true, 495 | "expr": "sum(rate(cs_lapi_request_duration_seconds_bucket{endpoint=\"/v1/alerts\",instance=\"$lapi\",method=~\"(GET)|(HEAD)\"}[$__rate_interval])) by (le)", 496 | "format": "heatmap", 497 | "interval": "", 498 | "legendFormat": "{{le}}", 499 | "refId": "A" 500 | } 501 | ], 502 | "title": "Alerts GET", 503 | "type": "heatmap" 504 | } 505 | ], 506 | "schemaVersion": 30, 507 | "style": "dark", 508 | "tags": [], 509 | "templating": { 510 | "list": [ 511 | { 512 | "allValue": null, 513 | "current": {}, 514 | "datasource": "${DS_PROMETHEUS}", 515 | "definition": "label_values(cs_info, instance)", 516 | "description": null, 517 | "error": null, 518 | "hide": 0, 519 | "includeAll": false, 520 | "label": null, 521 | "multi": false, 522 | "name": "lapi", 523 | "options": [], 524 | "query": { 525 | "query": "label_values(cs_info, instance)", 526 | "refId": "StandardVariableQuery" 527 | }, 528 | "refresh": 1, 529 | "regex": "", 530 | "skipUrlSync": false, 531 | "sort": 0, 532 | "type": "query" 533 | } 534 | ] 535 | }, 536 | "time": { 537 | "from": "now-6h", 538 | "to": "now" 539 | }, 540 | "timepicker": {}, 541 | "timezone": "", 542 | "title": "LAPI Metrics", 543 | "uid": "ofdKJG37k", 544 | "version": 11 545 | } --------------------------------------------------------------------------------