Bull Queue Dashboard
Dashboard for bull queue metrics. To be used with https://hub.docker.com/r/ejhayes/nodejs-bull-monitor
{
  "__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": "7.5.6"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart v2",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 14537,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1622777858964,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 23,
      "panels": [],
      "title": "Vitals",
      "type": "row"
    },
    {
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "jobs"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 9,
        "x": 0,
        "y": 1
      },
      "id": 9,
      "options": {
        "displayLabels": [
          "name",
          "value",
          "percent"
        ],
        "legend": {
          "displayMode": "list",
          "placement": "right",
          "values": [
            "value"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "jobs_waiting_total{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"} + jobs_delayed_total{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "Total Waiting",
          "refId": "waiting"
        },
        {
          "exemplar": true,
          "expr": "jobs_active_total{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "Total Active",
          "refId": "active"
        },
        {
          "exemplar": true,
          "expr": "jobs_failed_total{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}",
          "instant": true,
          "interval": "",
          "legendFormat": "Total Failed",
          "queryType": "randomWalk",
          "refId": "failed"
        }
      ],
      "title": "Current Job Counts",
      "type": "piechart"
    },
    {
      "datasource": "${DS_PROMETHEUS}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "jobs"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 15,
        "x": 9,
        "y": 1
      },
      "id": 17,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": true,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum without(job_name) (rate(jobs_active{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\"}[1m]) * 60)",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "Processed/minute",
          "refId": "active"
        },
        {
          "exemplar": true,
          "expr": "sum without (job_name) (rate(jobs_completed{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\"}[1m]) * 60)",
          "instant": true,
          "interval": "",
          "legendFormat": "Completed/minute",
          "queryType": "randomWalk",
          "refId": "completed"
        },
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(jobs_failed{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\"}[1m]) * 60)",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "Failed/minute",
          "refId": "failed"
        }
      ],
      "title": "Current Rates",
      "type": "gauge"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 13,
        "w": 14,
        "x": 0,
        "y": 8
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:371",
          "alias": "Failed",
          "color": "#F2495C"
        },
        {
          "$$hashKey": "object:379",
          "alias": "Completed",
          "color": "#73BF69"
        },
        {
          "$$hashKey": "object:387",
          "alias": "Active",
          "color": "#5794F2"
        },
        {
          "$$hashKey": "object:779",
          "alias": "Total Waiting",
          "color": "#FADE2A",
          "dashes": true,
          "fill": 0,
          "yaxis": 2
        },
        {
          "$$hashKey": "object:1346",
          "alias": "Total Failed",
          "color": "#F2495C",
          "dashes": true,
          "fill": 0,
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum without (job_name) (rate(jobs_active{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}[1m]) * 60)",
          "instant": false,
          "interval": "",
          "legendFormat": "Active",
          "queryType": "randomWalk",
          "refId": "active"
        },
        {
          "exemplar": true,
          "expr": "sum without (job_name) (rate(jobs_completed{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}[1m]) * 60)",
          "hide": false,
          "interval": "",
          "legendFormat": "Completed",
          "refId": "completed"
        },
        {
          "exemplar": true,
          "expr": "sum without (error_type) (rate(jobs_failed{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}[1m]) * 60)",
          "hide": false,
          "interval": "",
          "legendFormat": "Failed",
          "refId": "failed"
        },
        {
          "exemplar": true,
          "expr": "jobs_waiting_total{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"} + jobs_delayed_total{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "Total Waiting",
          "refId": "pending"
        },
        {
          "exemplar": true,
          "expr": "jobs_failed_total{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}",
          "hide": false,
          "interval": "",
          "legendFormat": "Total Failed",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Processing Rates",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:94",
          "format": "opm",
          "label": "Jobs Processes (jobs/minute)",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:95",
          "decimals": null,
          "format": "jobs",
          "label": "Job Counts",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 10,
      "fillGradient": 0,
      "gridPos": {
        "h": 13,
        "w": 10,
        "x": 14,
        "y": 8
      },
      "hiddenSeries": false,
      "id": 7,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": true,
        "min": true,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "rate(jobs_failed{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\"}[1m]) * 60",
          "interval": "",
          "legendFormat": "{{job_name}}:{{error_type}}",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Error rates by type",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:561",
          "format": "opm",
          "label": "Fail Rate (jobs/minute)",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:562",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 21
      },
      "id": 25,
      "panels": [],
      "title": "Job Details",
      "type": "row"
    },
    {
      "datasource": "${DS_PROMETHEUS}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "jobs"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 7,
        "x": 0,
        "y": 22
      },
      "id": 27,
      "options": {
        "displayLabels": [
          "name",
          "percent",
          "value"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "values": [
            "percent",
            "value"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "increase(jobs_completed{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}[$__range])",
          "interval": "",
          "legendFormat": "{{job_name}}",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "title": "Completed Job Types",
      "type": "piechart"
    },
    {
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "jobs"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 7,
        "x": 7,
        "y": 22
      },
      "id": 28,
      "options": {
        "displayLabels": [
          "name",
          "percent",
          "value"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "values": [
            "percent",
            "value"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum by (job_name) (increase(jobs_failed{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}[$__range]))",
          "instant": false,
          "interval": "",
          "legendFormat": "{{job_name}}",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "title": "Failed Job Types",
      "type": "piechart"
    },
    {
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "jobs"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 9,
        "x": 14,
        "y": 22
      },
      "id": 29,
      "options": {
        "displayLabels": [
          "name",
          "percent",
          "value"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "bottom",
          "values": [
            "percent",
            "value"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "exemplar": true,
          "expr": "increase(jobs_failed{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\"}[$__range])",
          "instant": false,
          "interval": "",
          "legendFormat": "{{job_name}}:{{error_type}}",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "title": "Failed Job Types",
      "type": "piechart"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 31
      },
      "hiddenSeries": false,
      "id": 12,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum without (job_name) (job_duration{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\",quantile=~\"0.5|0.9|0.95|0.99\",status=\"completed\"})",
          "interval": "",
          "legendFormat": "duration:{{quantile}}",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Successful Job Duration",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1522",
          "format": "ms",
          "label": "Job Duration",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:1523",
          "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": "${DS_PROMETHEUS}",
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 31
      },
      "hiddenSeries": false,
      "id": 18,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(job_wait_duration{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\",quantile=\"0.95\",status=\"completed\"}[1m]) * 60)",
          "interval": "",
          "legendFormat": "{{status}}:wait[1m]",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(job_wait_duration{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\",quantile=\"0.95\",status=\"completed\"}[5m]) * 60)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{status}}:wait[5m]",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(job_wait_duration{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\",quantile=\"0.95\",status=\"completed\"}[30m]) * 60)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{status}}:wait[30m]",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(job_wait_duration{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\",quantile=\"0.95\",status=\"completed\"}[1h]) * 60)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{status}}:wait[1h]",
          "refId": "D"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Successful Job Wait Time (0.95 quantile)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1910",
          "format": "ms",
          "label": "Wait Duration",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:1911",
          "format": "ms",
          "label": "failed jobs wait time",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 39
      },
      "hiddenSeries": false,
      "id": 13,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (job_duration{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\",quantile=~\"0.5|0.9|0.95|0.99\",status=\"failed\"})",
          "interval": "",
          "legendFormat": "duration:{{quantile}}",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Failed Job Duration",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1522",
          "format": "ms",
          "label": "Job Duration",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:1523",
          "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": "${DS_PROMETHEUS}",
      "description": "",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 39
      },
      "hiddenSeries": false,
      "id": 19,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(job_wait_duration{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\",quantile=\"0.95\",status=\"failed\"}[1m]) * 60)",
          "interval": "",
          "legendFormat": "{{status}}:wait[1m]",
          "queryType": "randomWalk",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(job_wait_duration{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\",quantile=\"0.95\",status=\"failed\"}[5m]) * 60)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{status}}:wait[5m]",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(job_wait_duration{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\",quantile=\"0.95\",status=\"failed\"}[30m]) * 60)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{status}}:wait[30m]",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "sum without (error_type, job_name) (rate(job_wait_duration{queue_name=\"$queue_name\",queue_prefix=\"$queue_prefix\",quantile=\"0.95\",status=\"failed\"}[1h]) * 60)",
          "hide": false,
          "interval": "",
          "legendFormat": "{{status}}:wait[1h]",
          "refId": "D"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Failed Job Wait Time (0.95 quantile)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1910",
          "format": "ms",
          "label": "Wait Duration",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:1911",
          "format": "ms",
          "label": "failed jobs wait time",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "fieldConfig": {
        "defaults": {},
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 47
      },
      "hiddenSeries": false,
      "id": 11,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "7.5.6",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum without(job_name) (job_attempts{queue_prefix=\"$queue_prefix\",queue_name=\"$queue_name\",quantile=~\"0.5|0.9|0.95|0.99\",status=\"completed\"})",
          "interval": "",
          "legendFormat": "attempts:{{quantile}}",
          "queryType": "randomWalk",
          "refId": "A"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Attempts per job",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1522",
          "format": "short",
          "label": "Attempts Made",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:1523",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(jobs_completed_total,queue_prefix)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Queue Prefix",
        "multi": false,
        "name": "queue_prefix",
        "options": [],
        "query": {
          "query": "label_values(jobs_completed_total,queue_prefix)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(jobs_completed_total{queue_prefix=\"$queue_prefix\"}, queue_name)",
        "description": "Queue Name",
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": "Queue Name",
        "multi": false,
        "name": "queue_name",
        "options": [],
        "query": {
          "query": "label_values(jobs_completed_total{queue_prefix=\"$queue_prefix\"}, queue_name)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 5,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Bull Queue Dashboard",
  "uid": "wqoZc5eGk",
  "version": 75,
  "description": "Dashboard for bull queue metrics. To be used with https://hub.docker.com/r/ejhayes/nodejs-bull-monitor"
}