Grafana dashboard: PGbouncer
Description: https://github.com/spreaker/prometheus-pgbouncer-exporter

```
docker run -d \
  --name pgbouncer-exporter \
  -v /etc/timezone:/etc/timezone \
  -v /etc/localtime:/etc/localtime \
  -p 9127:9127 \
  -v /etc/pgbouncer-exporter/config.yml:/etc/pgbouncer-exporter/config.yml \
  --restart=unless-stopped \
  spreaker/prometheus-pgbouncer-exporter:2.0.3
```

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.5.2"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "https://github.com/spreaker/prometheus-pgbouncer-exporter",
  "editable": true,
  "gnetId": 11806,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1585041261969,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "$datasource",
      "format": "none",
      "gauge": {
        "maxValue": 30000,
        "minValue": 0,
        "show": true,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 0,
        "y": 0
      },
      "id": 6,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "options": {},
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "repeat": null,
      "repeatDirection": "h",
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "expr": "sum (pgbouncer_pools_client_active_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"})",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "thresholds": "15000,25000,30000",
      "title": "Client active connections $db",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "datasource": "$datasource",
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 5,
        "y": 0
      },
      "id": 4,
      "links": [],
      "options": {
        "fieldOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "defaults": {
            "mappings": [
              {
                "id": 0,
                "op": "=",
                "text": "N/A",
                "type": 1,
                "value": "null"
              }
            ],
            "max": 300000,
            "min": 0,
            "nullValueMode": "connected",
            "thresholds": [
              {
                "color": "#299c46",
                "value": null
              },
              {
                "color": "rgba(237, 129, 40, 0.89)",
                "value": 200000
              },
              {
                "color": "#d44a3a",
                "value": 280000
              }
            ],
            "unit": "short"
          },
          "override": {},
          "values": false
        },
        "orientation": "horizontal",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.5.2",
      "repeatDirection": "h",
      "targets": [
        {
          "expr": "sort_desc( sum ( rate(pgbouncer_stats_queries_total{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}[5m]) ) )",
          "format": "time_series",
          "intervalFactor": 1,
          "refId": "A"
        }
      ],
      "title": "Stats queries total $db",
      "transparent": true,
      "type": "gauge"
    },
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "decimals": null,
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 10,
        "y": 0
      },
      "hiddenSeries": false,
      "hideTimeOverride": false,
      "id": 2,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": false,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum by (project,server,pool_id,database) (pgbouncer_databases_database_pool_size{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"})",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{database}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Database pool size",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "series",
        "name": null,
        "show": false,
        "values": [
          "current"
        ]
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "decimals": null,
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 16,
        "y": 0
      },
      "hiddenSeries": false,
      "hideTimeOverride": false,
      "id": 17,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "hideEmpty": false,
        "hideZero": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": false,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum by (project,server,pool_id,database) (pgbouncer_databases_database_reserve_pool_size{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"})",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{database}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Databases database reserve pool size",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "series",
        "name": null,
        "show": false,
        "values": [
          "current"
        ]
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "decimals": null,
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 24,
        "x": 0,
        "y": 6
      },
      "hiddenSeries": false,
      "id": 16,
      "legend": {
        "avg": true,
        "current": false,
        "hideEmpty": true,
        "hideZero": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 1,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sort_desc( sum by (project,server,pool_id,database) ( rate(pgbouncer_stats_queries_duration_microseconds{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}[5m]) ) )",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{database}}",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Total Query Time",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "µs",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Stats queries duration microseconds": "#5195ce"
      },
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 0,
        "y": 13
      },
      "hiddenSeries": false,
      "id": 12,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "hideEmpty": true,
        "hideZero": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": ""
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sort_desc( sum by (project,server,pool_id,database) ( rate(pgbouncer_stats_queries_duration_microseconds{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}[5m]) ) )",
          "format": "time_series",
          "hide": false,
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Stats queries duration microseconds",
          "refId": "B"
        },
        {
          "expr": "sort_desc( sum by (project,server,pool_id,database) ( rate(pgbouncer_stats_waiting_duration_microseconds{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}[5m]) ) ) ",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Stats waiting duration microseconds",
          "refId": "C"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Stats queries $db",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Stats transactions duration microseconds": "#cca300",
        "Stats transactions total": "#962d82"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "decimals": 2,
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 12,
        "y": 13
      },
      "hiddenSeries": false,
      "id": 13,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "hideEmpty": true,
        "hideZero": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": true,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sort_desc( sum by (project,server,pool_id,database) ( rate(pgbouncer_stats_transactions_duration_microseconds{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}[5m]) ) )  ",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Stats transactions duration microseconds",
          "refId": "D"
        },
        {
          "expr": "sort_desc( sum by (project,server,pool_id,database) ( rate(pgbouncer_stats_transactions_total{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}[5m]) ) )",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Stats transactions total",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Transactions stats $db",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Client active connections": "#b7dbab"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 0,
        "y": 23
      },
      "hiddenSeries": false,
      "id": 15,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "hideEmpty": true,
        "hideZero": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "pgbouncer_pools_client_active_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}",
          "format": "time_series",
          "instant": false,
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Client active connections ",
          "refId": "A"
        },
        {
          "expr": "pgbouncer_pools_client_waiting_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Client waiting connections",
          "refId": "C"
        },
        {
          "expr": "pgbouncer_pools_server_active_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Server active connections",
          "refId": "B"
        },
        {
          "expr": "pgbouncer_pools_server_idle_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Server idle connections",
          "refId": "D"
        },
        {
          "expr": "pgbouncer_pools_server_used_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Server used connections",
          "refId": "E"
        },
        {
          "expr": "pgbouncer_pools_server_testing_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Server testing connections",
          "refId": "F"
        },
        {
          "expr": "pgbouncer_pools_server_login_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Server login connections",
          "refId": "G"
        },
        {
          "expr": "pgbouncer_databases_database_current_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Database current connections",
          "refId": "H"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Pgbouncer pools connections",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "Stats received bytes total": "#3333ff",
        "Stats sent bytes total": "#00aa00"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$datasource",
      "fill": 3,
      "fillGradient": 0,
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 12,
        "y": 23
      },
      "hiddenSeries": false,
      "id": 14,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "hideEmpty": true,
        "hideZero": true,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/.*sent.*/",
          "transform": "negative-Y"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sort_desc( sum by (project,server,pool_id,database) ( rate(pgbouncer_stats_received_bytes_total{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}[5m])*8 ) )",
          "format": "time_series",
          "hide": false,
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Stats received bytes total",
          "refId": "B"
        },
        {
          "expr": "sort_desc( sum by (project,server,pool_id,database) ( rate(pgbouncer_stats_sent_bytes_total{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\",database=~\"$db\"}[5m])*8 ) )",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{ database }}: Stats sent bytes total",
          "refId": "C"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Total of incoming / outgoing bytes $db",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": "10s",
  "schemaVersion": 21,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "text": "Prometheus",
          "value": "Prometheus"
        },
        "hide": 2,
        "includeAll": false,
        "label": "Datasource",
        "multi": false,
        "name": "datasource",
        "options": [],
        "query": "prometheus",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(pgbouncer_up , project)",
        "hide": 0,
        "includeAll": false,
        "label": "项目",
        "multi": false,
        "name": "project",
        "options": [],
        "query": "label_values(pgbouncer_up , project)",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(pgbouncer_up{project=~\"$project\"}, server)",
        "hide": 0,
        "includeAll": false,
        "label": "服务",
        "multi": false,
        "name": "server",
        "options": [],
        "query": "label_values(pgbouncer_up{project=~\"$project\"}, server)",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(pgbouncer_up{project=~\"$project\",server=~\"$server\"}, pool_id)",
        "hide": 0,
        "includeAll": false,
        "label": "",
        "multi": false,
        "name": "pool_id",
        "options": [],
        "query": "label_values(pgbouncer_up{project=~\"$project\",server=~\"$server\"}, pool_id)",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(pgbouncer_databases_database_current_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\"},database)",
        "hide": 0,
        "includeAll": true,
        "label": "db",
        "multi": true,
        "name": "db",
        "options": [],
        "query": "label_values(pgbouncer_databases_database_current_connections{project=~\"$project\",server=~\"$server\",pool_id=~\"$pool_id\"},database)",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "PGbouncer",
  "uid": "PGbouncer",
  "version": 1
}