Grafana dashboard: Azkaban
Description: need config variables azkaban_address, example: http(s)://host:port

### NEED AZKABAN EXPORTER

https://github.com/rea1shane/azkaban_exporter

### NEED config variables azkaban_address, example: http(s)://host:port

![image](https://raw.githubusercontent.com/rea1shane/azkaban_exporter/main/img/3.png)

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    },
    {
      "name": "VAR_AZKABAN_ADDRESS",
      "type": "constant",
      "label": "azkaban_address",
      "value": "http(s)://{host}:{port}",
      "description": ""
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.1.2"
    },
    {
      "type": "panel",
      "id": "histogram",
      "name": "Histogram",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "need config variables azkaban_address, example: http(s)://host:port",
  "editable": true,
  "gnetId": 15429,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1640671717890,
  "links": [],
  "panels": [
    {
      "datasource": null,
      "description": "",
      "gridPos": {
        "h": 2,
        "w": 8,
        "x": 0,
        "y": 0
      },
      "id": 13,
      "links": [
        {
          "targetBlank": true,
          "title": "webui",
          "url": "${azkaban_address}"
        }
      ],
      "options": {
        "content": "<center>${azkaban_address}</center>",
        "mode": "markdown"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "${azkaban_address}",
          "interval": "$interval",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Azkaban Address",
      "type": "text"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 8,
        "x": 8,
        "y": 0
      },
      "id": 4,
      "options": {
        "colorMode": "none",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "count(count(azkaban_flow_last_status{project=~\"$project\"}) by (project))",
          "interval": "$interval",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Projects",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 8,
        "x": 16,
        "y": 0
      },
      "id": 5,
      "options": {
        "colorMode": "none",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "count(azkaban_flow_last_status{project=~\"$project\"})",
          "interval": "$interval",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Flows",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "0": {
                  "color": "super-light-red",
                  "index": 2,
                  "text": "FAILED"
                },
                "1": {
                  "color": "super-light-green",
                  "index": 3,
                  "text": "SUCCEEDED"
                },
                "2": {
                  "color": "super-light-blue",
                  "index": 4,
                  "text": "RUNNING"
                },
                "3": {
                  "color": "super-light-yellow",
                  "index": 5,
                  "text": "PREPARING"
                },
                "4": {
                  "color": "#bdebee",
                  "index": 6,
                  "text": "NEW"
                },
                "-1": {
                  "color": "#00000080",
                  "index": 1,
                  "text": "UNKNOW"
                },
                "-2": {
                  "color": "super-light-orange",
                  "index": 0,
                  "text": "KILLED"
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#00000080",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 14,
        "w": 21,
        "x": 0,
        "y": 2
      },
      "id": 2,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "none"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "azkaban_flow_last_status{project=~\"$project\"}",
          "interval": "$interval",
          "legendFormat": "project: {{project}} | flow: {{flow}}",
          "refId": "A"
        }
      ],
      "title": "Flows Last Status",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "PREPARING"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "text",
                      "value": null
                    },
                    {
                      "color": "yellow",
                      "value": 1
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "RUNNING"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "text",
                      "value": null
                    },
                    {
                      "color": "blue",
                      "value": 1
                    }
                  ]
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 3,
        "x": 21,
        "y": 2
      },
      "id": 9,
      "links": [
        {
          "targetBlank": true,
          "title": "RUNNING",
          "url": "${azkaban_address}/history?advfilter=true&projcontain=&flowcontain=&usercontain=&status=30&begin=&end="
        },
        {
          "targetBlank": true,
          "title": "PREPARING",
          "url": "${azkaban_address}/history?advfilter=true&projcontain=&flowcontain=&usercontain=&status=20&begin=&end="
        }
      ],
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(azkaban_flow_preparing{project=~\"$project\"})",
          "instant": true,
          "interval": "$interval",
          "legendFormat": "PREPARING",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum(azkaban_flow_running{project=~\"$project\"})",
          "hide": false,
          "instant": true,
          "interval": "$interval",
          "legendFormat": "RUNNING",
          "refId": "B"
        }
      ],
      "title": "Current",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "match": "nan",
                "result": {
                  "index": 0,
                  "text": "0"
                }
              },
              "type": "special"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1e-11
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Percent Of Already Run"
            },
            "properties": [
              {
                "id": "unit",
                "value": "%"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 3,
        "x": 21,
        "y": 9
      },
      "id": 7,
      "links": [
        {
          "targetBlank": true,
          "title": "FAILED",
          "url": "${azkaban_address}/history?advfilter=true&projcontain=&flowcontain=&usercontain=&status=70&begin=&end="
        },
        {
          "targetBlank": true,
          "title": "KILLED",
          "url": "${azkaban_address}/history?advfilter=true&projcontain=&flowcontain=&usercontain=&status=60&begin=&end="
        }
      ],
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(azkaban_flow_unknow{project=~\"$project\"} + azkaban_flow_killed{project=~\"$project\"} + azkaban_flow_failed{project=~\"$project\"})",
          "instant": true,
          "interval": "$interval",
          "legendFormat": "Count",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "sum(azkaban_flow_unknow{project=~\"$project\"} + azkaban_flow_killed{project=~\"$project\"} + azkaban_flow_failed{project=~\"$project\"}) / sum(azkaban_flow_unknow{project=~\"$project\"} + azkaban_flow_killed{project=~\"$project\"} + azkaban_flow_failed{project=~\"$project\"} + azkaban_flow_succeeded{project=~\"$project\"}+ azkaban_flow_running{project=~\"$project\"} + azkaban_flow_preparing{project=~\"$project\"}) * 100",
          "hide": false,
          "instant": true,
          "interval": "$interval",
          "legendFormat": "Percent Of Already Run",
          "refId": "B"
        }
      ],
      "title": "NOT Success Flows",
      "type": "stat"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "stepAfter",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 3,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "links": [],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 8,
        "x": 0,
        "y": 16
      },
      "id": 20,
      "options": {
        "legend": {
          "calcs": [
            "range",
            "last"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "azkaban_flow_succeeded_total{project=~\"$project\"}",
          "format": "time_series",
          "hide": false,
          "instant": false,
          "interval": "$interval",
          "intervalFactor": 1,
          "legendFormat": "{{project}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Succeeded",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "stepAfter",
            "lineWidth": 3,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "links": [],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 8,
        "x": 8,
        "y": 16
      },
      "id": 21,
      "options": {
        "legend": {
          "calcs": [
            "range",
            "last"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "azkaban_flow_failed_total{project=~\"$project\"}",
          "format": "time_series",
          "hide": false,
          "instant": false,
          "interval": "$interval",
          "intervalFactor": 1,
          "legendFormat": "{{project}}",
          "refId": "B"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Failed",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "stepAfter",
            "lineWidth": 3,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "links": [],
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 8,
        "x": 16,
        "y": 16
      },
      "id": 22,
      "options": {
        "legend": {
          "calcs": [
            "range",
            "last"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "azkaban_flow_killed_total{project=~\"$project\"}",
          "format": "time_series",
          "hide": false,
          "instant": false,
          "interval": "$interval",
          "intervalFactor": 1,
          "legendFormat": "{{project}}",
          "refId": "C"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Killed",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-BlPu"
          },
          "decimals": 1,
          "mappings": [
            {
              "options": {
                "match": "null+nan",
                "result": {
                  "color": "text",
                  "index": 0,
                  "text": "No Flow Running"
                }
              },
              "type": "special"
            }
          ],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "dtdurationms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 0,
        "y": 27
      },
      "id": 11,
      "options": {
        "displayMode": "gradient",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "limit": 10,
          "values": true
        },
        "showUnfilled": false,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "sort_desc(azkaban_flow_running_duration_ms{project=~\"$project\"})",
          "format": "time_series",
          "instant": true,
          "interval": "$interval",
          "legendFormat": "{{project}}.{{flow}}",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "0",
          "format": "time_series",
          "hide": false,
          "instant": true,
          "interval": "$interval",
          "legendFormat": "Placeholder",
          "refId": "B"
        }
      ],
      "title": "Running Duration (top 10)",
      "transformations": [],
      "type": "bargauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "blue",
            "mode": "fixed"
          },
          "custom": {
            "fillOpacity": 80,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineWidth": 0
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "dtdurationms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 12,
        "y": 27
      },
      "id": 18,
      "options": {
        "bucketOffset": 0,
        "combine": true,
        "legend": {
          "calcs": [],
          "displayMode": "hidden",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "azkaban_flow_running_duration_ms{project=~\"$project\"}",
          "format": "time_series",
          "instant": true,
          "interval": "$interval",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Running Duration Distribution",
      "type": "histogram"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-BlPu"
          },
          "decimals": 1,
          "mappings": [
            {
              "options": {
                "match": "null+nan",
                "result": {
                  "color": "text",
                  "index": 0,
                  "text": "No Flow Finished"
                }
              },
              "type": "special"
            }
          ],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "dtdurationms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 0,
        "y": 38
      },
      "id": 12,
      "options": {
        "displayMode": "gradient",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "limit": 10,
          "values": true
        },
        "showUnfilled": false,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "sort_desc(azkaban_flow_last_duration_ms{project=~\"$project\"})",
          "format": "time_series",
          "instant": true,
          "interval": "$interval",
          "legendFormat": "{{project}}.{{flow}}",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "0",
          "format": "time_series",
          "hide": false,
          "instant": true,
          "interval": "$interval",
          "legendFormat": "Placeholder",
          "refId": "B"
        }
      ],
      "title": "Last Finished Duration (top 10)",
      "transformations": [],
      "type": "bargauge"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "blue",
            "mode": "fixed"
          },
          "custom": {
            "fillOpacity": 80,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineWidth": 0
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "dtdurationms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 12,
        "x": 12,
        "y": 38
      },
      "id": 17,
      "options": {
        "bucketOffset": 0,
        "combine": true,
        "legend": {
          "calcs": [],
          "displayMode": "hidden",
          "placement": "bottom"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "azkaban_flow_last_duration_ms{project=~\"$project\"}",
          "format": "time_series",
          "instant": true,
          "interval": "$interval",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Last Finished Duration Distribution",
      "type": "histogram"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "bars",
            "fillOpacity": 100,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 0,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 49
      },
      "id": 14,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "last"
          ],
          "displayMode": "table",
          "placement": "right"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "azkaban_flow_running{project=~\"$project\"}",
          "hide": false,
          "interval": "$interval",
          "legendFormat": "{{project}} RUNNING",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "azkaban_flow_preparing{project=~\"$project\"}",
          "interval": "$interval",
          "legendFormat": "{{project}} PREPARING",
          "refId": "A"
        }
      ],
      "title": "Prepare & Running Of Each Project",
      "transformations": [],
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "bars",
            "fillOpacity": 100,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 0,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": " running 1440"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": " running 300"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": " running 60"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": " running 0"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "duration >  1 day"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "5 hours < duration <= 1 day"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "yellow",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "1 hours < duration <= 5 hours"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "blue",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "duration <= 1 hours"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "green",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 11,
        "w": 24,
        "x": 0,
        "y": 60
      },
      "id": 8,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "last"
          ],
          "displayMode": "table",
          "placement": "right"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(azkaban_flow_running_1440{project=~\"$project\"})",
          "hide": false,
          "interval": "$interval",
          "legendFormat": "duration >  1 day",
          "refId": "D"
        },
        {
          "exemplar": true,
          "expr": "sum(azkaban_flow_running_300{project=~\"$project\"})",
          "hide": false,
          "interval": "$interval",
          "legendFormat": "5 hours < duration <= 1 day",
          "refId": "C"
        },
        {
          "exemplar": true,
          "expr": "sum(azkaban_flow_running_60{project=~\"$project\"})",
          "hide": false,
          "interval": "$interval",
          "legendFormat": "1 hours < duration <= 5 hours",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum(azkaban_flow_running_0{project=~\"$project\"})",
          "interval": "$interval",
          "legendFormat": "duration <= 1 hours",
          "refId": "A"
        }
      ],
      "title": "Running Duration Distribution",
      "transformations": [],
      "type": "timeseries"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 30,
  "style": "dark",
  "tags": [
    "azkaban"
  ],
  "templating": {
    "list": [
      {
        "auto": false,
        "auto_count": 30,
        "auto_min": "10s",
        "current": {
          "selected": false,
          "text": "10s",
          "value": "10s"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "label": null,
        "name": "interval",
        "options": [
          {
            "selected": true,
            "text": "10s",
            "value": "10s"
          },
          {
            "selected": false,
            "text": "15s",
            "value": "15s"
          },
          {
            "selected": false,
            "text": "30s",
            "value": "30s"
          },
          {
            "selected": false,
            "text": "1m",
            "value": "1m"
          },
          {
            "selected": false,
            "text": "10m",
            "value": "10m"
          },
          {
            "selected": false,
            "text": "30m",
            "value": "30m"
          },
          {
            "selected": false,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": false,
            "text": "1d",
            "value": "1d"
          },
          {
            "selected": false,
            "text": "7d",
            "value": "7d"
          },
          {
            "selected": false,
            "text": "14d",
            "value": "14d"
          },
          {
            "selected": false,
            "text": "30d",
            "value": "30d"
          }
        ],
        "query": "10s,15s,30s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(azkaban_flow_last_status{job=\"azkaban_exporter\"}, project)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "project",
        "multi": true,
        "name": "project",
        "options": [],
        "query": {
          "query": "label_values(azkaban_flow_last_status{job=\"azkaban_exporter\"}, project)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "description": null,
        "error": null,
        "hide": 2,
        "label": "azkaban_address",
        "name": "azkaban_address",
        "query": "${VAR_AZKABAN_ADDRESS}",
        "skipUrlSync": false,
        "type": "constant",
        "current": {
          "value": "${VAR_AZKABAN_ADDRESS}",
          "text": "${VAR_AZKABAN_ADDRESS}",
          "selected": false
        },
        "options": [
          {
            "value": "${VAR_AZKABAN_ADDRESS}",
            "text": "${VAR_AZKABAN_ADDRESS}",
            "selected": false
          }
        ]
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Azkaban",
  "uid": "G3lZ5m07z",
  "version": 1
}