old
   1{
   2  "__inputs": [
   3    {
   4      "name": "DS_PROMETHEUS",
   5      "label": "prometheus",
   6      "description": "",
   7      "type": "datasource",
   8      "pluginId": "prometheus",
   9      "pluginName": "Prometheus"
  10    }
  11  ],
  12  "__elements": {},
  13  "__requires": [
  14    {
  15      "type": "grafana",
  16      "id": "grafana",
  17      "name": "Grafana",
  18      "version": "11.5.1"
  19    },
  20    {
  21      "type": "datasource",
  22      "id": "prometheus",
  23      "name": "Prometheus",
  24      "version": "1.0.0"
  25    },
  26    {
  27      "type": "panel",
  28      "id": "stat",
  29      "name": "Stat",
  30      "version": ""
  31    },
  32    {
  33      "type": "panel",
  34      "id": "timeseries",
  35      "name": "Time series",
  36      "version": ""
  37    }
  38  ],
  39  "annotations": {
  40    "list": [
  41      {
  42        "builtIn": 1,
  43        "datasource": {
  44          "type": "grafana",
  45          "uid": "-- Grafana --"
  46        },
  47        "enable": true,
  48        "hide": true,
  49        "iconColor": "rgba(0, 211, 255, 1)",
  50        "name": "Annotations & Alerts",
  51        "type": "dashboard"
  52      }
  53    ]
  54  },
  55  "description": "Monitoring GoToSocial using collectd and VictoriaMetrics.",
  56  "editable": true,
  57  "fiscalYearStartMonth": 0,
  58  "graphTooltip": 0,
  59  "id": null,
  60  "links": [],
  61  "panels": [
  62    {
  63      "datasource": {
  64        "type": "prometheus",
  65        "uid": "${DS_PROMETHEUS}"
  66      },
  67      "description": "Overview on GoToSocial instance.",
  68      "fieldConfig": {
  69        "defaults": {
  70          "color": {
  71            "mode": "palette-classic"
  72          },
  73          "mappings": [],
  74          "min": 0,
  75          "thresholds": {
  76            "mode": "absolute",
  77            "steps": [
  78              {
  79                "color": "green",
  80                "value": null
  81              }
  82            ]
  83          },
  84          "unit": "locale"
  85        },
  86        "overrides": [
  87          {
  88            "matcher": {
  89              "id": "byName",
  90              "options": "Users"
  91            },
  92            "properties": [
  93              {
  94                "id": "color",
  95                "value": {
  96                  "fixedColor": "green",
  97                  "mode": "fixed"
  98                }
  99              }
 100            ]
 101          },
 102          {
 103            "matcher": {
 104              "id": "byName",
 105              "options": "Statuses"
 106            },
 107            "properties": [
 108              {
 109                "id": "color",
 110                "value": {
 111                  "fixedColor": "blue",
 112                  "mode": "fixed"
 113                }
 114              }
 115            ]
 116          },
 117          {
 118            "matcher": {
 119              "id": "byName",
 120              "options": "Federating instances"
 121            },
 122            "properties": [
 123              {
 124                "id": "color",
 125                "value": {
 126                  "fixedColor": "purple",
 127                  "mode": "fixed"
 128                }
 129              }
 130            ]
 131          }
 132        ]
 133      },
 134      "gridPos": {
 135        "h": 4,
 136        "w": 8,
 137        "x": 0,
 138        "y": 0
 139      },
 140      "id": 11,
 141      "options": {
 142        "colorMode": "value",
 143        "graphMode": "area",
 144        "justifyMode": "auto",
 145        "orientation": "auto",
 146        "percentChangeColorMode": "same_as_value",
 147        "reduceOptions": {
 148          "calcs": [
 149            "lastNotNull"
 150          ],
 151          "fields": "",
 152          "values": false
 153        },
 154        "showPercentChange": true,
 155        "text": {
 156          "titleSize": 12,
 157          "valueSize": 22
 158        },
 159        "textMode": "value_and_name",
 160        "wideLayout": false
 161      },
 162      "pluginVersion": "11.5.1",
 163      "targets": [
 164        {
 165          "datasource": {
 166            "type": "prometheus",
 167            "uid": "${DS_PROMETHEUS}"
 168          },
 169          "editorMode": "code",
 170          "expr": "gotosocial_instance_total_users{instance=\"$host\"}",
 171          "instant": false,
 172          "legendFormat": "Users",
 173          "range": true,
 174          "refId": "A"
 175        },
 176        {
 177          "datasource": {
 178            "type": "prometheus",
 179            "uid": "${DS_PROMETHEUS}"
 180          },
 181          "editorMode": "code",
 182          "expr": "gotosocial_instance_total_statuses{instance=\"$host\"}",
 183          "hide": false,
 184          "instant": false,
 185          "legendFormat": "Statuses",
 186          "range": true,
 187          "refId": "B"
 188        },
 189        {
 190          "datasource": {
 191            "type": "prometheus",
 192            "uid": "${DS_PROMETHEUS}"
 193          },
 194          "editorMode": "code",
 195          "expr": "gotosocial_instance_total_federating_instances{instance=\"$host\"}",
 196          "hide": false,
 197          "instant": false,
 198          "legendFormat": "Federating instances",
 199          "range": true,
 200          "refId": "C"
 201        }
 202      ],
 203      "title": "Instance",
 204      "type": "stat"
 205    },
 206    {
 207      "datasource": {
 208        "type": "prometheus",
 209        "uid": "${DS_PROMETHEUS}"
 210      },
 211      "description": "Overview on statuses and interactions.",
 212      "fieldConfig": {
 213        "defaults": {
 214          "color": {
 215            "mode": "palette-classic"
 216          },
 217          "decimals": 1,
 218          "mappings": [],
 219          "min": 0,
 220          "thresholds": {
 221            "mode": "absolute",
 222            "steps": [
 223              {
 224                "color": "green",
 225                "value": null
 226              }
 227            ]
 228          },
 229          "unit": "reqps"
 230        },
 231        "overrides": [
 232          {
 233            "matcher": {
 234              "id": "byName",
 235              "options": "↓ inbox"
 236            },
 237            "properties": [
 238              {
 239                "id": "color",
 240                "value": {
 241                  "fixedColor": "green",
 242                  "mode": "fixed"
 243                }
 244              }
 245            ]
 246          },
 247          {
 248            "matcher": {
 249              "id": "byName",
 250              "options": "↑ outbox"
 251            },
 252            "properties": [
 253              {
 254                "id": "color",
 255                "value": {
 256                  "fixedColor": "blue",
 257                  "mode": "fixed"
 258                }
 259              }
 260            ]
 261          },
 262          {
 263            "matcher": {
 264              "id": "byName",
 265              "options": "↕ interaction"
 266            },
 267            "properties": [
 268              {
 269                "id": "color",
 270                "value": {
 271                  "fixedColor": "purple",
 272                  "mode": "fixed"
 273                }
 274              }
 275            ]
 276          }
 277        ]
 278      },
 279      "gridPos": {
 280        "h": 4,
 281        "w": 8,
 282        "x": 8,
 283        "y": 0
 284      },
 285      "id": 15,
 286      "options": {
 287        "colorMode": "value",
 288        "graphMode": "area",
 289        "justifyMode": "auto",
 290        "orientation": "auto",
 291        "percentChangeColorMode": "same_as_value",
 292        "reduceOptions": {
 293          "calcs": [
 294            "lastNotNull"
 295          ],
 296          "fields": "",
 297          "values": false
 298        },
 299        "showPercentChange": true,
 300        "text": {
 301          "titleSize": 12,
 302          "valueSize": 22
 303        },
 304        "textMode": "value_and_name",
 305        "wideLayout": false
 306      },
 307      "pluginVersion": "11.5.1",
 308      "targets": [
 309        {
 310          "datasource": {
 311            "type": "prometheus",
 312            "uid": "${DS_PROMETHEUS}"
 313          },
 314          "editorMode": "code",
 315          "expr": "sum(rate(http_server_request_count{instance=\"$host\",http_route=~\".*inbox.*\",http_status_code=~\"2..\"}[$__range]))",
 316          "hide": false,
 317          "instant": false,
 318          "legendFormat": "↓ inbox",
 319          "range": true,
 320          "refId": "A"
 321        },
 322        {
 323          "datasource": {
 324            "type": "prometheus",
 325            "uid": "${DS_PROMETHEUS}"
 326          },
 327          "editorMode": "code",
 328          "expr": "sum(rate(http_server_request_count{instance=\"$host\",http_route=~\".*outbox.*\",http_status_code=~\"2..\"}[$__range]))",
 329          "hide": false,
 330          "instant": false,
 331          "legendFormat": "↑ outbox",
 332          "range": true,
 333          "refId": "B"
 334        },
 335        {
 336          "datasource": {
 337            "type": "prometheus",
 338            "uid": "${DS_PROMETHEUS}"
 339          },
 340          "editorMode": "code",
 341          "expr": "sum(rate(http_server_request_count{instance=\"$host\",http_route=\"/api/v1/interaction_requests\",http_status_code=~\"2..\"}[$__range]))",
 342          "hide": false,
 343          "instant": false,
 344          "legendFormat": "↕ interaction",
 345          "range": true,
 346          "refId": "C"
 347        }
 348      ],
 349      "title": "Posts",
 350      "type": "stat"
 351    },
 352    {
 353      "datasource": {
 354        "type": "prometheus",
 355        "uid": "${DS_PROMETHEUS}"
 356      },
 357      "description": "Overview on received HTTP requests.",
 358      "fieldConfig": {
 359        "defaults": {
 360          "color": {
 361            "mode": "palette-classic"
 362          },
 363          "decimals": 1,
 364          "mappings": [],
 365          "min": 0,
 366          "thresholds": {
 367            "mode": "absolute",
 368            "steps": [
 369              {
 370                "color": "green",
 371                "value": null
 372              }
 373            ]
 374          },
 375          "unit": "reqps"
 376        },
 377        "overrides": [
 378          {
 379            "matcher": {
 380              "id": "byName",
 381              "options": "successful & redirection"
 382            },
 383            "properties": [
 384              {
 385                "id": "color",
 386                "value": {
 387                  "fixedColor": "green",
 388                  "mode": "fixed"
 389                }
 390              }
 391            ]
 392          },
 393          {
 394            "matcher": {
 395              "id": "byName",
 396              "options": "client error"
 397            },
 398            "properties": [
 399              {
 400                "id": "color",
 401                "value": {
 402                  "fixedColor": "orange",
 403                  "mode": "fixed"
 404                }
 405              }
 406            ]
 407          },
 408          {
 409            "matcher": {
 410              "id": "byName",
 411              "options": "server error"
 412            },
 413            "properties": [
 414              {
 415                "id": "color",
 416                "value": {
 417                  "fixedColor": "red",
 418                  "mode": "fixed"
 419                }
 420              }
 421            ]
 422          }
 423        ]
 424      },
 425      "gridPos": {
 426        "h": 4,
 427        "w": 8,
 428        "x": 16,
 429        "y": 0
 430      },
 431      "id": 13,
 432      "options": {
 433        "colorMode": "value",
 434        "graphMode": "area",
 435        "justifyMode": "auto",
 436        "orientation": "auto",
 437        "percentChangeColorMode": "same_as_value",
 438        "reduceOptions": {
 439          "calcs": [
 440            "lastNotNull"
 441          ],
 442          "fields": "",
 443          "values": false
 444        },
 445        "showPercentChange": true,
 446        "text": {
 447          "titleSize": 12,
 448          "valueSize": 22
 449        },
 450        "textMode": "value_and_name",
 451        "wideLayout": false
 452      },
 453      "pluginVersion": "11.5.1",
 454      "targets": [
 455        {
 456          "datasource": {
 457            "type": "prometheus",
 458            "uid": "${DS_PROMETHEUS}"
 459          },
 460          "editorMode": "code",
 461          "expr": "sum(rate(http_server_request_count{instance=\"$host\", http_status_code=~\"[23]..\"}[$__range]))",
 462          "hide": false,
 463          "instant": false,
 464          "legendFormat": "successful & redirection",
 465          "range": true,
 466          "refId": "A"
 467        },
 468        {
 469          "datasource": {
 470            "type": "prometheus",
 471            "uid": "${DS_PROMETHEUS}"
 472          },
 473          "editorMode": "code",
 474          "expr": "sum(rate(http_server_request_count{instance=\"$host\", http_status_code=~\"4..\"}[$__range]))",
 475          "hide": false,
 476          "instant": false,
 477          "legendFormat": "client error",
 478          "range": true,
 479          "refId": "B"
 480        },
 481        {
 482          "datasource": {
 483            "type": "prometheus",
 484            "uid": "${DS_PROMETHEUS}"
 485          },
 486          "editorMode": "code",
 487          "expr": "sum(rate(http_server_request_count{instance=\"$host\", http_status_code=~\"5..\"}[$__range]))",
 488          "hide": false,
 489          "instant": false,
 490          "legendFormat": "server error",
 491          "range": true,
 492          "refId": "C"
 493        }
 494      ],
 495      "title": "HTTP Requests",
 496      "type": "stat"
 497    },
 498    {
 499      "datasource": {
 500        "type": "prometheus",
 501        "uid": "${DS_PROMETHEUS}"
 502      },
 503      "description": "Evolution of statuses and interactions.",
 504      "fieldConfig": {
 505        "defaults": {
 506          "color": {
 507            "mode": "palette-classic"
 508          },
 509          "custom": {
 510            "axisBorderShow": false,
 511            "axisCenteredZero": false,
 512            "axisColorMode": "text",
 513            "axisLabel": "",
 514            "axisPlacement": "auto",
 515            "barAlignment": 0,
 516            "barWidthFactor": 0.6,
 517            "drawStyle": "bars",
 518            "fillOpacity": 100,
 519            "gradientMode": "none",
 520            "hideFrom": {
 521              "legend": false,
 522              "tooltip": false,
 523              "viz": false
 524            },
 525            "insertNulls": false,
 526            "lineInterpolation": "linear",
 527            "lineWidth": 0,
 528            "pointSize": 5,
 529            "scaleDistribution": {
 530              "type": "linear"
 531            },
 532            "showPoints": "never",
 533            "spanNulls": false,
 534            "stacking": {
 535              "group": "A",
 536              "mode": "normal"
 537            },
 538            "thresholdsStyle": {
 539              "mode": "off"
 540            }
 541          },
 542          "decimals": 0,
 543          "fieldMinMax": false,
 544          "mappings": [],
 545          "min": 0,
 546          "thresholds": {
 547            "mode": "absolute",
 548            "steps": [
 549              {
 550                "color": "green",
 551                "value": null
 552              },
 553              {
 554                "color": "red",
 555                "value": 80
 556              }
 557            ]
 558          },
 559          "unit": "reqps"
 560        },
 561        "overrides": [
 562          {
 563            "matcher": {
 564              "id": "byName",
 565              "options": "↓ inbox"
 566            },
 567            "properties": [
 568              {
 569                "id": "color",
 570                "value": {
 571                  "fixedColor": "green",
 572                  "mode": "fixed"
 573                }
 574              }
 575            ]
 576          },
 577          {
 578            "matcher": {
 579              "id": "byName",
 580              "options": "↑ outbox"
 581            },
 582            "properties": [
 583              {
 584                "id": "color",
 585                "value": {
 586                  "fixedColor": "blue",
 587                  "mode": "fixed"
 588                }
 589              }
 590            ]
 591          },
 592          {
 593            "matcher": {
 594              "id": "byName",
 595              "options": "↕ interaction"
 596            },
 597            "properties": [
 598              {
 599                "id": "color",
 600                "value": {
 601                  "fixedColor": "purple",
 602                  "mode": "fixed"
 603                }
 604              },
 605              {
 606                "id": "custom.lineStyle",
 607                "value": {
 608                  "dash": [
 609                    0,
 610                    10
 611                  ],
 612                  "fill": "dot"
 613                }
 614              },
 615              {
 616                "id": "custom.stacking",
 617                "value": {
 618                  "group": "A",
 619                  "mode": "none"
 620                }
 621              },
 622              {
 623                "id": "custom.drawStyle",
 624                "value": "line"
 625              },
 626              {
 627                "id": "custom.fillOpacity",
 628                "value": 0
 629              },
 630              {
 631                "id": "custom.lineWidth",
 632                "value": 2
 633              },
 634              {
 635                "id": "custom.lineInterpolation",
 636                "value": "smooth"
 637              }
 638            ]
 639          }
 640        ]
 641      },
 642      "gridPos": {
 643        "h": 6,
 644        "w": 8,
 645        "x": 8,
 646        "y": 4
 647      },
 648      "id": 17,
 649      "options": {
 650        "legend": {
 651          "calcs": [],
 652          "displayMode": "list",
 653          "placement": "bottom",
 654          "showLegend": true
 655        },
 656        "tooltip": {
 657          "hideZeros": false,
 658          "maxHeight": 600,
 659          "mode": "single",
 660          "sort": "none"
 661        }
 662      },
 663      "pluginVersion": "11.5.1",
 664      "targets": [
 665        {
 666          "datasource": {
 667            "type": "prometheus",
 668            "uid": "${DS_PROMETHEUS}"
 669          },
 670          "disableTextWrap": false,
 671          "editorMode": "code",
 672          "expr": "sum(rate(http_server_request_count{instance=\"$host\", http_route=~\".*inbox.*\"}[$__rate_interval]))",
 673          "fullMetaSearch": false,
 674          "includeNullMetadata": true,
 675          "instant": false,
 676          "interval": "$auto_step",
 677          "legendFormat": "↓ inbox",
 678          "range": true,
 679          "refId": "A",
 680          "useBackend": false
 681        },
 682        {
 683          "datasource": {
 684            "type": "prometheus",
 685            "uid": "${DS_PROMETHEUS}"
 686          },
 687          "disableTextWrap": false,
 688          "editorMode": "code",
 689          "expr": "sum(rate(http_server_request_count{instance=\"$host\", http_route=~\".*outbox.*\"}[$__rate_interval]))",
 690          "fullMetaSearch": false,
 691          "hide": false,
 692          "includeNullMetadata": false,
 693          "instant": false,
 694          "interval": "$auto_step",
 695          "legendFormat": "↑ outbox",
 696          "range": true,
 697          "refId": "B",
 698          "useBackend": false
 699        },
 700        {
 701          "datasource": {
 702            "type": "prometheus",
 703            "uid": "${DS_PROMETHEUS}"
 704          },
 705          "disableTextWrap": false,
 706          "editorMode": "code",
 707          "expr": "sum(rate(http_server_request_count{instance=\"$host\", http_route=\"/api/v1/interaction_requests\"}[$__rate_interval]))",
 708          "fullMetaSearch": false,
 709          "hide": false,
 710          "includeNullMetadata": true,
 711          "instant": false,
 712          "interval": "$auto_step",
 713          "legendFormat": "↕ interaction",
 714          "range": true,
 715          "refId": "C",
 716          "useBackend": false
 717        }
 718      ],
 719      "title": "Posts",
 720      "type": "timeseries"
 721    },
 722    {
 723      "datasource": {
 724        "type": "prometheus",
 725        "uid": "${DS_PROMETHEUS}"
 726      },
 727      "description": "Evolution of HTTP requests.",
 728      "fieldConfig": {
 729        "defaults": {
 730          "color": {
 731            "mode": "palette-classic"
 732          },
 733          "custom": {
 734            "axisBorderShow": false,
 735            "axisCenteredZero": false,
 736            "axisColorMode": "text",
 737            "axisLabel": "",
 738            "axisPlacement": "auto",
 739            "barAlignment": 0,
 740            "barWidthFactor": 0.6,
 741            "drawStyle": "bars",
 742            "fillOpacity": 100,
 743            "gradientMode": "none",
 744            "hideFrom": {
 745              "legend": false,
 746              "tooltip": false,
 747              "viz": false
 748            },
 749            "insertNulls": false,
 750            "lineInterpolation": "linear",
 751            "lineWidth": 0,
 752            "pointSize": 5,
 753            "scaleDistribution": {
 754              "type": "linear"
 755            },
 756            "showPoints": "never",
 757            "spanNulls": false,
 758            "stacking": {
 759              "group": "A",
 760              "mode": "normal"
 761            },
 762            "thresholdsStyle": {
 763              "mode": "off"
 764            }
 765          },
 766          "decimals": 0,
 767          "fieldMinMax": false,
 768          "mappings": [],
 769          "min": 0,
 770          "thresholds": {
 771            "mode": "absolute",
 772            "steps": [
 773              {
 774                "color": "green",
 775                "value": null
 776              },
 777              {
 778                "color": "red",
 779                "value": 80
 780              }
 781            ]
 782          },
 783          "unit": "reqps"
 784        },
 785        "overrides": [
 786          {
 787            "matcher": {
 788              "id": "byName",
 789              "options": "GET"
 790            },
 791            "properties": [
 792              {
 793                "id": "color",
 794                "value": {
 795                  "fixedColor": "super-light-green",
 796                  "mode": "fixed"
 797                }
 798              }
 799            ]
 800          },
 801          {
 802            "matcher": {
 803              "id": "byName",
 804              "options": "POST"
 805            },
 806            "properties": [
 807              {
 808                "id": "color",
 809                "value": {
 810                  "fixedColor": "green",
 811                  "mode": "fixed"
 812                }
 813              }
 814            ]
 815          },
 816          {
 817            "matcher": {
 818              "id": "byName",
 819              "options": "HEAD"
 820            },
 821            "properties": [
 822              {
 823                "id": "color",
 824                "value": {
 825                  "fixedColor": "blue",
 826                  "mode": "fixed"
 827                }
 828              }
 829            ]
 830          },
 831          {
 832            "matcher": {
 833              "id": "byName",
 834              "options": "OPTIONS"
 835            },
 836            "properties": [
 837              {
 838                "id": "color",
 839                "value": {
 840                  "fixedColor": "light-blue",
 841                  "mode": "fixed"
 842                }
 843              }
 844            ]
 845          },
 846          {
 847            "matcher": {
 848              "id": "byName",
 849              "options": "inflight"
 850            },
 851            "properties": [
 852              {
 853                "id": "color",
 854                "value": {
 855                  "fixedColor": "orange",
 856                  "mode": "fixed"
 857                }
 858              },
 859              {
 860                "id": "custom.drawStyle",
 861                "value": "line"
 862              },
 863              {
 864                "id": "custom.lineWidth",
 865                "value": 2
 866              },
 867              {
 868                "id": "custom.fillOpacity",
 869                "value": 0
 870              },
 871              {
 872                "id": "custom.lineStyle",
 873                "value": {
 874                  "dash": [
 875                    10,
 876                    10
 877                  ],
 878                  "fill": "dash"
 879                }
 880              },
 881              {
 882                "id": "custom.stacking",
 883                "value": {
 884                  "group": "A",
 885                  "mode": "none"
 886                }
 887              }
 888            ]
 889          }
 890        ]
 891      },
 892      "gridPos": {
 893        "h": 6,
 894        "w": 8,
 895        "x": 16,
 896        "y": 4
 897      },
 898      "id": 20,
 899      "options": {
 900        "legend": {
 901          "calcs": [],
 902          "displayMode": "list",
 903          "placement": "bottom",
 904          "showLegend": true
 905        },
 906        "tooltip": {
 907          "hideZeros": false,
 908          "maxHeight": 600,
 909          "mode": "single",
 910          "sort": "none"
 911        }
 912      },
 913      "pluginVersion": "11.5.1",
 914      "targets": [
 915        {
 916          "datasource": {
 917            "type": "prometheus",
 918            "uid": "${DS_PROMETHEUS}"
 919          },
 920          "disableTextWrap": false,
 921          "editorMode": "code",
 922          "expr": "sum by(http_method) (rate(http_server_request_count{instance=\"$host\"}[$__rate_interval]))",
 923          "fullMetaSearch": false,
 924          "hide": false,
 925          "includeNullMetadata": true,
 926          "instant": false,
 927          "interval": "$auto_step",
 928          "legendFormat": "{{label_name}}",
 929          "range": true,
 930          "refId": "A",
 931          "useBackend": false
 932        },
 933        {
 934          "datasource": {
 935            "type": "prometheus",
 936            "uid": "${DS_PROMETHEUS}"
 937          },
 938          "disableTextWrap": false,
 939          "editorMode": "code",
 940          "expr": "sum(http_server_active_requests{instance=\"$host\"})",
 941          "fullMetaSearch": false,
 942          "hide": false,
 943          "includeNullMetadata": true,
 944          "instant": false,
 945          "interval": "$auto_step",
 946          "legendFormat": "inflight",
 947          "range": true,
 948          "refId": "B",
 949          "useBackend": false
 950        }
 951      ],
 952      "title": "HTTP Requests",
 953      "type": "timeseries"
 954    },
 955    {
 956      "datasource": {
 957        "type": "prometheus",
 958        "uid": "${DS_PROMETHEUS}"
 959      },
 960      "description": "Overview of GtS processes and threads.",
 961      "fieldConfig": {
 962        "defaults": {
 963          "color": {
 964            "mode": "palette-classic"
 965          },
 966          "custom": {
 967            "axisBorderShow": false,
 968            "axisCenteredZero": false,
 969            "axisColorMode": "text",
 970            "axisLabel": "",
 971            "axisPlacement": "auto",
 972            "barAlignment": 0,
 973            "barWidthFactor": 0.6,
 974            "drawStyle": "line",
 975            "fillOpacity": 0,
 976            "gradientMode": "none",
 977            "hideFrom": {
 978              "legend": false,
 979              "tooltip": false,
 980              "viz": false
 981            },
 982            "insertNulls": false,
 983            "lineInterpolation": "smooth",
 984            "lineWidth": 2,
 985            "pointSize": 5,
 986            "scaleDistribution": {
 987              "type": "linear"
 988            },
 989            "showPoints": "never",
 990            "spanNulls": false,
 991            "stacking": {
 992              "group": "A",
 993              "mode": "none"
 994            },
 995            "thresholdsStyle": {
 996              "mode": "off"
 997            }
 998          },
 999          "decimals": 0,
1000          "mappings": [],
1001          "min": 0,
1002          "thresholds": {
1003            "mode": "absolute",
1004            "steps": [
1005              {
1006                "color": "green",
1007                "value": null
1008              },
1009              {
1010                "color": "red",
1011                "value": 80
1012              }
1013            ]
1014          },
1015          "unit": "locale"
1016        },
1017        "overrides": []
1018      },
1019      "gridPos": {
1020        "h": 6,
1021        "w": 8,
1022        "x": 0,
1023        "y": 10
1024      },
1025      "id": 8,
1026      "options": {
1027        "legend": {
1028          "calcs": [],
1029          "displayMode": "list",
1030          "placement": "bottom",
1031          "showLegend": true
1032        },
1033        "tooltip": {
1034          "hideZeros": false,
1035          "maxHeight": 600,
1036          "mode": "single",
1037          "sort": "none"
1038        }
1039      },
1040      "pluginVersion": "11.5.1",
1041      "targets": [
1042        {
1043          "datasource": {
1044            "type": "prometheus",
1045            "uid": "${DS_PROMETHEUS}"
1046          },
1047          "disableTextWrap": false,
1048          "editorMode": "code",
1049          "expr": "collectd.processes.ps_count.processes{host=\"$host\", plugin_instance=\"gotosocial\"}",
1050          "fullMetaSearch": false,
1051          "includeNullMetadata": true,
1052          "instant": false,
1053          "interval": "$auto_step",
1054          "legendFormat": "Process(es)",
1055          "range": true,
1056          "refId": "A",
1057          "useBackend": false
1058        },
1059        {
1060          "datasource": {
1061            "type": "prometheus",
1062            "uid": "${DS_PROMETHEUS}"
1063          },
1064          "disableTextWrap": false,
1065          "editorMode": "code",
1066          "expr": "go_threads{instance=\"$host\"}",
1067          "fullMetaSearch": false,
1068          "hide": false,
1069          "includeNullMetadata": true,
1070          "instant": false,
1071          "interval": "$auto_step",
1072          "legendFormat": "Thread(s)",
1073          "range": true,
1074          "refId": "B",
1075          "useBackend": false
1076        }
1077      ],
1078      "title": "Processes",
1079      "type": "timeseries"
1080    },
1081    {
1082      "datasource": {
1083        "type": "prometheus",
1084        "uid": "${DS_PROMETHEUS}"
1085      },
1086      "description": "Evolution of SQL connections closed per reasons.",
1087      "fieldConfig": {
1088        "defaults": {
1089          "color": {
1090            "mode": "palette-classic"
1091          },
1092          "custom": {
1093            "axisBorderShow": false,
1094            "axisCenteredZero": false,
1095            "axisColorMode": "text",
1096            "axisLabel": "",
1097            "axisPlacement": "auto",
1098            "barAlignment": 0,
1099            "barWidthFactor": 0.6,
1100            "drawStyle": "bars",
1101            "fillOpacity": 100,
1102            "gradientMode": "none",
1103            "hideFrom": {
1104              "legend": false,
1105              "tooltip": false,
1106              "viz": false
1107            },
1108            "insertNulls": false,
1109            "lineInterpolation": "smooth",
1110            "lineWidth": 0,
1111            "pointSize": 1,
1112            "scaleDistribution": {
1113              "type": "linear"
1114            },
1115            "showPoints": "never",
1116            "spanNulls": false,
1117            "stacking": {
1118              "group": "A",
1119              "mode": "normal"
1120            },
1121            "thresholdsStyle": {
1122              "mode": "off"
1123            }
1124          },
1125          "decimals": 0,
1126          "mappings": [],
1127          "min": 0,
1128          "thresholds": {
1129            "mode": "absolute",
1130            "steps": [
1131              {
1132                "color": "green",
1133                "value": null
1134              }
1135            ]
1136          },
1137          "unit": "ops"
1138        },
1139        "overrides": []
1140      },
1141      "gridPos": {
1142        "h": 6,
1143        "w": 8,
1144        "x": 0,
1145        "y": 16
1146      },
1147      "id": 18,
1148      "options": {
1149        "legend": {
1150          "calcs": [],
1151          "displayMode": "list",
1152          "placement": "bottom",
1153          "showLegend": true
1154        },
1155        "tooltip": {
1156          "hideZeros": false,
1157          "maxHeight": 600,
1158          "mode": "single",
1159          "sort": "none"
1160        }
1161      },
1162      "pluginVersion": "11.5.1",
1163      "targets": [
1164        {
1165          "datasource": {
1166            "type": "prometheus",
1167            "uid": "${DS_PROMETHEUS}"
1168          },
1169          "disableTextWrap": false,
1170          "editorMode": "code",
1171          "expr": "rate(go_sql_connections_closed_max_idle_time_total{instance=\"$host\"})[$__rate_interval]",
1172          "fullMetaSearch": false,
1173          "includeNullMetadata": true,
1174          "instant": false,
1175          "interval": "$auto_step",
1176          "legendFormat": "Max idle time",
1177          "range": true,
1178          "refId": "A",
1179          "useBackend": false
1180        },
1181        {
1182          "datasource": {
1183            "type": "prometheus",
1184            "uid": "${DS_PROMETHEUS}"
1185          },
1186          "editorMode": "code",
1187          "expr": "rate(go_sql_connections_closed_max_idle_total{instance=\"$host\"})[$__rate_interval]",
1188          "hide": false,
1189          "instant": false,
1190          "interval": "$auto_step",
1191          "legendFormat": "Max idle conns",
1192          "range": true,
1193          "refId": "B"
1194        },
1195        {
1196          "datasource": {
1197            "type": "prometheus",
1198            "uid": "${DS_PROMETHEUS}"
1199          },
1200          "disableTextWrap": false,
1201          "editorMode": "code",
1202          "expr": "rate(go_sql_connections_closed_max_lifetime_total{instance=\"$host\"})[$__rate_interval]",
1203          "fullMetaSearch": false,
1204          "hide": false,
1205          "includeNullMetadata": true,
1206          "instant": false,
1207          "interval": "$auto_step",
1208          "legendFormat": "Max lifetime",
1209          "range": true,
1210          "refId": "C",
1211          "useBackend": false
1212        }
1213      ],
1214      "title": "SQL connections closed",
1215      "type": "timeseries"
1216    },
1217    {
1218      "datasource": {
1219        "type": "prometheus",
1220        "uid": "${DS_PROMETHEUS}"
1221      },
1222      "description": "Evolution of SQL connections.",
1223      "fieldConfig": {
1224        "defaults": {
1225          "color": {
1226            "fixedColor": "green",
1227            "mode": "palette-classic"
1228          },
1229          "custom": {
1230            "axisBorderShow": false,
1231            "axisCenteredZero": false,
1232            "axisColorMode": "text",
1233            "axisLabel": "",
1234            "axisPlacement": "auto",
1235            "barAlignment": 0,
1236            "barWidthFactor": 0.6,
1237            "drawStyle": "bars",
1238            "fillOpacity": 100,
1239            "gradientMode": "none",
1240            "hideFrom": {
1241              "legend": false,
1242              "tooltip": false,
1243              "viz": false
1244            },
1245            "insertNulls": false,
1246            "lineInterpolation": "smooth",
1247            "lineWidth": 0,
1248            "pointSize": 5,
1249            "scaleDistribution": {
1250              "type": "linear"
1251            },
1252            "showPoints": "never",
1253            "spanNulls": false,
1254            "stacking": {
1255              "group": "A",
1256              "mode": "normal"
1257            },
1258            "thresholdsStyle": {
1259              "mode": "off"
1260            }
1261          },
1262          "decimals": 0,
1263          "mappings": [],
1264          "min": 0,
1265          "thresholds": {
1266            "mode": "absolute",
1267            "steps": [
1268              {
1269                "color": "green",
1270                "value": null
1271              }
1272            ]
1273          },
1274          "unit": "locale"
1275        },
1276        "overrides": [
1277          {
1278            "matcher": {
1279              "id": "byName",
1280              "options": "max opened"
1281            },
1282            "properties": [
1283              {
1284                "id": "custom.stacking",
1285                "value": {
1286                  "group": "A",
1287                  "mode": "none"
1288                }
1289              },
1290              {
1291                "id": "custom.drawStyle",
1292                "value": "line"
1293              },
1294              {
1295                "id": "custom.lineWidth",
1296                "value": 2
1297              },
1298              {
1299                "id": "custom.fillOpacity",
1300                "value": 0
1301              },
1302              {
1303                "id": "custom.lineStyle",
1304                "value": {
1305                  "dash": [
1306                    10,
1307                    10
1308                  ],
1309                  "fill": "dash"
1310                }
1311              }
1312            ]
1313          }
1314        ]
1315      },
1316      "gridPos": {
1317        "h": 6,
1318        "w": 8,
1319        "x": 8,
1320        "y": 16
1321      },
1322      "id": 12,
1323      "options": {
1324        "legend": {
1325          "calcs": [],
1326          "displayMode": "list",
1327          "placement": "bottom",
1328          "showLegend": true
1329        },
1330        "tooltip": {
1331          "hideZeros": false,
1332          "maxHeight": 600,
1333          "mode": "single",
1334          "sort": "none"
1335        }
1336      },
1337      "pluginVersion": "11.5.1",
1338      "targets": [
1339        {
1340          "datasource": {
1341            "type": "prometheus",
1342            "uid": "${DS_PROMETHEUS}"
1343          },
1344          "disableTextWrap": false,
1345          "editorMode": "code",
1346          "expr": "go_sql_connections_idle{instance=\"$host\"}",
1347          "fullMetaSearch": false,
1348          "hide": false,
1349          "includeNullMetadata": true,
1350          "instant": false,
1351          "interval": "$auto_step",
1352          "legendFormat": "idle",
1353          "range": true,
1354          "refId": "A",
1355          "useBackend": false
1356        },
1357        {
1358          "datasource": {
1359            "type": "prometheus",
1360            "uid": "${DS_PROMETHEUS}"
1361          },
1362          "disableTextWrap": false,
1363          "editorMode": "code",
1364          "expr": "go_sql_connections_in_use{instance=\"$host\"}",
1365          "fullMetaSearch": false,
1366          "hide": false,
1367          "includeNullMetadata": true,
1368          "instant": false,
1369          "interval": "$auto_step",
1370          "legendFormat": "used",
1371          "range": true,
1372          "refId": "B",
1373          "useBackend": false
1374        },
1375        {
1376          "datasource": {
1377            "type": "prometheus",
1378            "uid": "${DS_PROMETHEUS}"
1379          },
1380          "disableTextWrap": false,
1381          "editorMode": "code",
1382          "exemplar": false,
1383          "expr": "go_sql_connections_wait_count_total{instance=\"$host\"}",
1384          "fullMetaSearch": false,
1385          "hide": false,
1386          "includeNullMetadata": true,
1387          "instant": false,
1388          "interval": "$auto_step",
1389          "legendFormat": "wait",
1390          "range": true,
1391          "refId": "C",
1392          "useBackend": false
1393        },
1394        {
1395          "datasource": {
1396            "type": "prometheus",
1397            "uid": "${DS_PROMETHEUS}"
1398          },
1399          "disableTextWrap": false,
1400          "editorMode": "code",
1401          "exemplar": false,
1402          "expr": "go_sql_connections_max_open{instance=\"$host\"}",
1403          "fullMetaSearch": false,
1404          "hide": false,
1405          "includeNullMetadata": true,
1406          "instant": false,
1407          "interval": "$auto_step",
1408          "legendFormat": "max opened",
1409          "range": true,
1410          "refId": "D",
1411          "useBackend": false
1412        }
1413      ],
1414      "title": "SQL connections",
1415      "type": "timeseries"
1416    },
1417    {
1418      "datasource": {
1419        "type": "prometheus",
1420        "uid": "${DS_PROMETHEUS}"
1421      },
1422      "description": "Evolution of timing for SQL processed queries.",
1423      "fieldConfig": {
1424        "defaults": {
1425          "color": {
1426            "fixedColor": "green",
1427            "mode": "palette-classic"
1428          },
1429          "custom": {
1430            "axisBorderShow": false,
1431            "axisCenteredZero": false,
1432            "axisColorMode": "text",
1433            "axisLabel": "",
1434            "axisPlacement": "auto",
1435            "barAlignment": 0,
1436            "barWidthFactor": 0.6,
1437            "drawStyle": "bars",
1438            "fillOpacity": 100,
1439            "gradientMode": "none",
1440            "hideFrom": {
1441              "legend": false,
1442              "tooltip": false,
1443              "viz": false
1444            },
1445            "insertNulls": false,
1446            "lineInterpolation": "smooth",
1447            "lineWidth": 0,
1448            "pointSize": 5,
1449            "scaleDistribution": {
1450              "type": "linear"
1451            },
1452            "showPoints": "never",
1453            "spanNulls": false,
1454            "stacking": {
1455              "group": "A",
1456              "mode": "normal"
1457            },
1458            "thresholdsStyle": {
1459              "mode": "off"
1460            }
1461          },
1462          "decimals": 0,
1463          "mappings": [],
1464          "min": 0,
1465          "thresholds": {
1466            "mode": "absolute",
1467            "steps": [
1468              {
1469                "color": "green",
1470                "value": null
1471              }
1472            ]
1473          },
1474          "unit": "reqps"
1475        },
1476        "overrides": [
1477          {
1478            "matcher": {
1479              "id": "byName",
1480              "options": "<1ms"
1481            },
1482            "properties": [
1483              {
1484                "id": "color",
1485                "value": {
1486                  "fixedColor": "green",
1487                  "mode": "fixed"
1488                }
1489              }
1490            ]
1491          },
1492          {
1493            "matcher": {
1494              "id": "byName",
1495              "options": "1-5ms"
1496            },
1497            "properties": [
1498              {
1499                "id": "color",
1500                "value": {
1501                  "fixedColor": "light-green",
1502                  "mode": "fixed"
1503                }
1504              }
1505            ]
1506          },
1507          {
1508            "matcher": {
1509              "id": "byName",
1510              "options": "5-10ms"
1511            },
1512            "properties": [
1513              {
1514                "id": "color",
1515                "value": {
1516                  "fixedColor": "super-light-green",
1517                  "mode": "fixed"
1518                }
1519              }
1520            ]
1521          },
1522          {
1523            "matcher": {
1524              "id": "byName",
1525              "options": "10-50ms"
1526            },
1527            "properties": [
1528              {
1529                "id": "color",
1530                "value": {
1531                  "fixedColor": "yellow",
1532                  "mode": "fixed"
1533                }
1534              }
1535            ]
1536          },
1537          {
1538            "matcher": {
1539              "id": "byName",
1540              "options": "50-100ms"
1541            },
1542            "properties": [
1543              {
1544                "id": "color",
1545                "value": {
1546                  "fixedColor": "super-light-orange",
1547                  "mode": "fixed"
1548                }
1549              }
1550            ]
1551          },
1552          {
1553            "matcher": {
1554              "id": "byName",
1555              "options": "100-1000ms"
1556            },
1557            "properties": [
1558              {
1559                "id": "color",
1560                "value": {
1561                  "fixedColor": "orange",
1562                  "mode": "fixed"
1563                }
1564              }
1565            ]
1566          },
1567          {
1568            "matcher": {
1569              "id": "byName",
1570              "options": ">1s"
1571            },
1572            "properties": [
1573              {
1574                "id": "color",
1575                "value": {
1576                  "fixedColor": "red",
1577                  "mode": "fixed"
1578                }
1579              }
1580            ]
1581          }
1582        ]
1583      },
1584      "gridPos": {
1585        "h": 6,
1586        "w": 8,
1587        "x": 16,
1588        "y": 16
1589      },
1590      "id": 19,
1591      "options": {
1592        "legend": {
1593          "calcs": [],
1594          "displayMode": "list",
1595          "placement": "bottom",
1596          "showLegend": true
1597        },
1598        "tooltip": {
1599          "hideZeros": false,
1600          "maxHeight": 600,
1601          "mode": "single",
1602          "sort": "none"
1603        }
1604      },
1605      "pluginVersion": "11.5.1",
1606      "targets": [
1607        {
1608          "datasource": {
1609            "type": "prometheus",
1610            "uid": "${DS_PROMETHEUS}"
1611          },
1612          "disableTextWrap": false,
1613          "editorMode": "code",
1614          "expr": "sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"0\"}[$__rate_interval]))",
1615          "fullMetaSearch": false,
1616          "hide": false,
1617          "includeNullMetadata": true,
1618          "instant": false,
1619          "interval": "$auto_step",
1620          "legendFormat": "<1ms",
1621          "range": true,
1622          "refId": "A",
1623          "useBackend": false
1624        },
1625        {
1626          "datasource": {
1627            "type": "prometheus",
1628            "uid": "${DS_PROMETHEUS}"
1629          },
1630          "disableTextWrap": false,
1631          "editorMode": "code",
1632          "expr": "sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"5\"}[$__rate_interval])) - sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"0\"}[$__rate_interval]))",
1633          "fullMetaSearch": false,
1634          "hide": false,
1635          "includeNullMetadata": true,
1636          "instant": false,
1637          "interval": "$auto_step",
1638          "legendFormat": "1-5ms",
1639          "range": true,
1640          "refId": "B",
1641          "useBackend": false
1642        },
1643        {
1644          "datasource": {
1645            "type": "prometheus",
1646            "uid": "${DS_PROMETHEUS}"
1647          },
1648          "disableTextWrap": false,
1649          "editorMode": "code",
1650          "exemplar": false,
1651          "expr": "sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"10\"}[$__rate_interval])) - sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"5\"}[$__rate_interval]))",
1652          "fullMetaSearch": false,
1653          "hide": false,
1654          "includeNullMetadata": true,
1655          "instant": false,
1656          "interval": "$auto_step",
1657          "legendFormat": "5-10ms",
1658          "range": true,
1659          "refId": "C",
1660          "useBackend": false
1661        },
1662        {
1663          "datasource": {
1664            "type": "prometheus",
1665            "uid": "${DS_PROMETHEUS}"
1666          },
1667          "disableTextWrap": false,
1668          "editorMode": "code",
1669          "exemplar": false,
1670          "expr": "sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"50\"}[$__rate_interval])) - sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"10\"}[$__rate_interval]))",
1671          "fullMetaSearch": false,
1672          "hide": false,
1673          "includeNullMetadata": true,
1674          "instant": false,
1675          "interval": "$auto_step",
1676          "legendFormat": "10-50ms",
1677          "range": true,
1678          "refId": "D",
1679          "useBackend": false
1680        },
1681        {
1682          "datasource": {
1683            "type": "prometheus",
1684            "uid": "${DS_PROMETHEUS}"
1685          },
1686          "disableTextWrap": false,
1687          "editorMode": "code",
1688          "expr": "sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"100\"}[$__rate_interval])) - sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"50\"}[$__rate_interval]))",
1689          "fullMetaSearch": false,
1690          "hide": false,
1691          "includeNullMetadata": true,
1692          "instant": false,
1693          "interval": "$auto_step",
1694          "legendFormat": "50-100ms",
1695          "range": true,
1696          "refId": "E",
1697          "useBackend": false
1698        },
1699        {
1700          "datasource": {
1701            "type": "prometheus",
1702            "uid": "${DS_PROMETHEUS}"
1703          },
1704          "disableTextWrap": false,
1705          "editorMode": "code",
1706          "expr": "sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"1000\"}[$__rate_interval])) - sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"100\"}[$__rate_interval]))",
1707          "fullMetaSearch": false,
1708          "hide": false,
1709          "includeNullMetadata": true,
1710          "instant": false,
1711          "interval": "$auto_step",
1712          "legendFormat": "100-1000ms",
1713          "range": true,
1714          "refId": "F",
1715          "useBackend": false
1716        },
1717        {
1718          "datasource": {
1719            "type": "prometheus",
1720            "uid": "${DS_PROMETHEUS}"
1721          },
1722          "disableTextWrap": false,
1723          "editorMode": "code",
1724          "expr": "sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"+Inf\"}[$__rate_interval])) - sum(rate(go_sql_query_timing_bucket{instance=\"$host\", le=\"1000\"}[$__rate_interval]))",
1725          "fullMetaSearch": false,
1726          "hide": false,
1727          "includeNullMetadata": true,
1728          "instant": false,
1729          "interval": "$auto_step",
1730          "legendFormat": ">1s",
1731          "range": true,
1732          "refId": "G",
1733          "useBackend": false
1734        }
1735      ],
1736      "title": "SQL queries latency",
1737      "type": "timeseries"
1738    }
1739  ],
1740  "refresh": "5m",
1741  "schemaVersion": 40,
1742  "tags": [],
1743  "templating": {
1744    "list": [
1745      {
1746        "current": {},
1747        "includeAll": false,
1748        "label": "Datasource",
1749        "name": "DS_PROMETHEUS",
1750        "options": [],
1751        "query": "prometheus",
1752        "refresh": 1,
1753        "regex": "",
1754        "type": "datasource"
1755      },
1756      {
1757        "current": {},
1758        "datasource": {
1759          "type": "prometheus",
1760          "uid": "${DS_PROMETHEUS}"
1761        },
1762        "definition": "label_values(gotosocial_instance_total_users,instance)",
1763        "includeAll": false,
1764        "label": "Hostname",
1765        "name": "host",
1766        "options": [],
1767        "query": {
1768          "qryType": 1,
1769          "query": "label_values(gotosocial_instance_total_users,instance)",
1770          "refId": "PrometheusVariableQueryEditor-VariableQuery"
1771        },
1772        "refresh": 1,
1773        "regex": "",
1774        "type": "query"
1775      },
1776      {
1777        "auto": true,
1778        "auto_count": 50,
1779        "auto_min": "10s",
1780        "current": {
1781          "text": "1m",
1782          "value": "1m"
1783        },
1784        "description": "Calculate \"Min step\" for histogram rendering",
1785        "hide": 2,
1786        "label": "Automatic Min step",
1787        "name": "auto_step",
1788        "options": [
1789          {
1790            "selected": true,
1791            "text": "1m",
1792            "value": "1m"
1793          },
1794          {
1795            "selected": false,
1796            "text": "1h",
1797            "value": "1h"
1798          },
1799          {
1800            "selected": false,
1801            "text": "6h",
1802            "value": "6h"
1803          }
1804        ],
1805        "query": "1m,1h,6h",
1806        "refresh": 2,
1807        "type": "interval"
1808      }
1809    ]
1810  },
1811  "time": {
1812    "from": "now-24h",
1813    "to": "now"
1814  },
1815  "timepicker": {},
1816  "timezone": "",
1817  "title": "GoToSocial",
1818  "uid": "ae12wzrgcub5sc",
1819  "version": 80,
1820  "weekStart": "",
1821  "gnetId": 23416
1822}