Grafana dashboard: Zammad: Tickets
Description: ample Dashboard for displaying Ticket Statistics of your Zammad instance. Features SLA, Ticket-Meta and distributions.

You can find a full setup how to on our documentation: [Zammad documentation](https://docs.zammad.org/en/latest/appendix/reporting-tools-thirdparty/grafana.html).

All our sample dashboards are stored in this GitHub repository:
[https://github.com/zammad/grafana-dashboards](https://github.com/zammad/grafana-dashboards)

If you have trouble with Zammad or your particular Zammad related dashboards, please consult the [Zammad community](https://community.zammad.org) - we're not monitoring other places.

---

Wanna fiddle on your own? You may find our documentation page for [Elasticsearch index attributes](https://docs.zammad.org/en/latest/install/elasticsearch/indexed-attributes.html) useful!

{
  "__inputs": [
    {
      "name": "DS_ES_- TICKETS BY CREATED_AT",
      "label": "ES - Tickets by created_at",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    },
    {
      "name": "DS_ES_- TICKETS BY CLOSED_AT",
      "label": "ES - Tickets by closed_at",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    },
    {
      "name": "DS_ES_- TICKET ARTICLES",
      "label": "ES - Ticket Articles",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.1"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart v2",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "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",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 14222,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1619163165790,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 31,
      "panels": [],
      "repeat": null,
      "title": "General metrics",
      "type": "row"
    },
    {
      "datasource": "-- Mixed --",
      "description": "1h time range minimum",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 25,
            "gradientMode": "opacity",
            "hideFrom": {
              "graph": false,
              "legend": false,
              "tooltip": false
            },
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true
          },
          "decimals": 0,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "Tickets"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 16,
        "x": 0,
        "y": 1
      },
      "id": 2,
      "interval": "${interval_graphs}",
      "options": {
        "graph": {},
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltipOptions": {
          "mode": "multi"
        }
      },
      "pluginVersion": "7.5.1",
      "repeat": null,
      "repeatDirection": "h",
      "targets": [
        {
          "alias": "created Tickets",
          "bucketAggs": [
            {
              "field": "created_at",
              "id": "2",
              "settings": {
                "interval": "auto"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "Count of created Tickets",
          "timeField": "created_at"
        },
        {
          "alias": "closed Tickets",
          "bucketAggs": [
            {
              "field": "close_at",
              "id": "2",
              "settings": {
                "interval": "auto"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": "${DS_ES_- TICKETS BY CLOSED_AT}",
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "refId": "Count of closed Tickets",
          "timeField": "close_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Ticket create / close rate",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {}
        },
        {
          "id": "seriesToColumns",
          "options": {}
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 16,
        "y": 1
      },
      "id": 12,
      "interval": "1d",
      "maxDataPoints": null,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "created_at",
              "id": "2",
              "settings": {
                "interval": "1d",
                "min_doc_count": "1"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "hide": false,
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "timeFrom": "1d",
      "timeShift": "1d",
      "title": "Tickets created",
      "type": "stat"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CLOSED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 4,
        "x": 20,
        "y": 1
      },
      "hideTimeOverride": false,
      "id": 13,
      "interval": "1d",
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "close_at",
              "id": "2",
              "settings": {
                "interval": "1d",
                "min_doc_count": "1"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "close_at"
        }
      ],
      "timeFrom": "1d",
      "timeShift": "1d",
      "title": "Tickets closed",
      "type": "stat"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "decimals": 0,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "Tickets"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 16,
        "y": 5
      },
      "id": 18,
      "options": {
        "displayLabels": [
          "name",
          "percent"
        ],
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "values": []
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "group.name.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": "0",
                "order": "desc",
                "orderBy": "1",
                "size": "15"
              },
              "type": "terms"
            },
            {
              "field": "created_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "1"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "Group distribution",
      "transformations": [],
      "type": "piechart"
    },
    {
      "cacheTimeout": null,
      "datasource": "-- Mixed --",
      "description": "Article-Sender-IDs are **NOT** the same on every instance. Run \"Ticket::Article::Sender.find(<value>).name\"  within your rails console to get the renames (see transforms) correctly.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 4,
        "x": 20,
        "y": 5
      },
      "id": 25,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "displayLabels": [
          "percent",
          "name"
        ],
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "values": []
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "article.sender_id",
              "id": "2",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "0"
              },
              "type": "terms"
            },
            {
              "field": "article.created_at",
              "id": "3",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
          "hide": false,
          "metrics": [
            {
              "field": "article.id",
              "hide": false,
              "id": "1",
              "settings": {
                "missing": "0"
              },
              "type": "cardinality"
            }
          ],
          "query": "",
          "refId": "Number of Articles per ID",
          "timeField": "created_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Sender ratio",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^1$",
            "renamePattern": "Agent"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^2$",
            "renamePattern": "Customer"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^3$",
            "renamePattern": "System"
          }
        }
      ],
      "type": "piechart"
    },
    {
      "cacheTimeout": null,
      "datasource": "-- Mixed --",
      "description": "1h time range minimum",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "blue",
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 50,
            "gradientMode": "opacity",
            "hideFrom": {
              "graph": false,
              "legend": false,
              "tooltip": false
            },
            "lineInterpolation": "smooth",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": true
          },
          "decimals": 0,
          "mappings": [],
          "min": 0,
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "Articles"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Total number of articles"
            },
            "properties": [
              {
                "id": "custom.fillOpacity",
                "value": 0
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "light-red",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 11,
        "w": 16,
        "x": 0,
        "y": 11
      },
      "id": 23,
      "interval": "${interval_graphs}",
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "graph": {},
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltipOptions": {
          "mode": "multi"
        }
      },
      "pluginVersion": "7.5.1",
      "repeat": null,
      "targets": [
        {
          "alias": "Article creations",
          "bucketAggs": [
            {
              "field": "article.created_at",
              "id": "2",
              "settings": {
                "interval": "auto"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": "${DS_ES_- TICKET ARTICLES}",
          "hide": false,
          "metrics": [
            {
              "field": "article.id",
              "hide": false,
              "id": "1",
              "type": "cardinality"
            }
          ],
          "query": "",
          "refId": "Number of overall created articles",
          "timeField": "article.created_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Created Articles",
      "transformations": [],
      "type": "timeseries"
    },
    {
      "cacheTimeout": null,
      "datasource": "-- Mixed --",
      "description": "Article-Type-IDs are **NOT** the same on every instance. Run \"Ticket::Article::Type.find(<value>)\"  within your rails console to get the renames (see transforms) correctly.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 4,
        "x": 16,
        "y": 13
      },
      "id": 19,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "displayLabels": [
          "percent",
          "name"
        ],
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "values": []
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "article.type_id",
              "id": "2",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "0"
              },
              "type": "terms"
            },
            {
              "field": "article.created_at",
              "id": "3",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
          "hide": false,
          "metrics": [
            {
              "field": "article.id",
              "hide": false,
              "id": "1",
              "settings": {
                "missing": "0"
              },
              "type": "cardinality"
            }
          ],
          "query": "",
          "refId": "Number of Articles per ID",
          "timeField": "created_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Article type ratio",
      "transformations": [
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^1$",
            "renamePattern": "E-Mail"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^2$",
            "renamePattern": "SMS"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^3$",
            "renamePattern": "Chat"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^4$",
            "renamePattern": "Fax"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^5$",
            "renamePattern": "Phone"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^6$",
            "renamePattern": "Twitter Tweet"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^7$",
            "renamePattern": "Twitter Direct-Message"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^8$",
            "renamePattern": "Facebook Feed Post"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^9$",
            "renamePattern": "Facebook Feed Comment"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^10$",
            "renamePattern": "Note"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^11$",
            "renamePattern": "Web"
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "^12$",
            "renamePattern": "Telegram-Message"
          }
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "decimals": 0,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "Tickets"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 4,
        "x": 20,
        "y": 13
      },
      "id": 45,
      "options": {
        "displayLabels": [
          "name",
          "percent"
        ],
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "values": []
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "article.content_type.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": "0",
                "order": "desc",
                "orderBy": "1",
                "size": "15"
              },
              "type": "terms"
            },
            {
              "field": "created_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "1"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "Content types",
      "transformations": [],
      "type": "piechart"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 22
      },
      "id": 29,
      "panels": [],
      "title": "More details",
      "type": "row"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "left",
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Creation date"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsLocal"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "#"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 105
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 6,
        "x": 0,
        "y": 23
      },
      "id": 6,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "created_at",
              "id": "4",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "created_at",
              "id": "3",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            },
            {
              "field": "title.keyword",
              "id": "5",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {
                "script": "_value * 1"
              },
              "type": "sum"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "Ticket titles",
          "timeField": "created_at"
        },
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "created_at",
              "id": "4",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "created_at",
              "id": "3",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            },
            {
              "field": "number.keyword",
              "id": "5",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {
                "script": "_value * 1"
              },
              "type": "sum"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "Ticket numbers",
          "timeField": "created_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Newest 10 tickets",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "created_at",
                "title.keyword",
                "number.keyword"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Sum": true
            },
            "indexByName": {
              "created_at": 0,
              "number.keyword": 1,
              "title.keyword": 2
            },
            "renameByName": {
              "created_at": "Creation date",
              "number.keyword": "#",
              "title.keyword": "Title"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "left",
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Last update"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsLocal"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "#"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 80
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 6,
        "x": 6,
        "y": 23
      },
      "id": 42,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "updated_at",
              "id": "4",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "updated_at",
              "id": "3",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            },
            {
              "field": "title.keyword",
              "id": "5",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {
                "script": "_value * 1"
              },
              "type": "sum"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "Ticket titles",
          "timeField": "created_at"
        },
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "updated_at",
              "id": "4",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "updated_at",
              "id": "3",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            },
            {
              "field": "number.keyword",
              "id": "5",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {
                "script": "_value * 1"
              },
              "type": "sum"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "Ticket numbers",
          "timeField": "created_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Last 10 ticket updates",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "updated_at",
                "title.keyword",
                "number.keyword"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "number.keyword": 1,
              "title.keyword": 2,
              "updated_at": 0
            },
            "renameByName": {
              "created_at": "Creation date",
              "number.keyword": "#",
              "title.keyword": "Title",
              "updated_at": "Last update"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "left",
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Closed at"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsLocal"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "#"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 115
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 6,
        "x": 12,
        "y": 23
      },
      "id": 49,
      "options": {
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Closed at"
          }
        ]
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "close_at",
              "id": "6",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "close_at",
              "id": "7",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            },
            {
              "field": "title.keyword",
              "id": "8",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {
                "script": "_value * 1"
              },
              "type": "sum"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "Ticket titles",
          "timeField": "created_at"
        },
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "close_at",
              "id": "4",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "close_at",
              "id": "6",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            },
            {
              "field": "number.keyword",
              "id": "7",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {
                "script": "_value * 1"
              },
              "type": "sum"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "Ticket numbers",
          "timeField": "created_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Last 10 closed tickets",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "close_at",
                "title.keyword",
                "number.keyword"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "close_at": 0,
              "number.keyword": 1,
              "title.keyword": 2
            },
            "renameByName": {
              "close_at": "Closed at",
              "created_at": "Creation date",
              "number.keyword": "#",
              "title.keyword": "Title",
              "updated_at": "Last update"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 15
              },
              {
                "color": "red",
                "value": 30
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Count"
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "string"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Tag"
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "basic"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 6,
        "x": 18,
        "y": 23
      },
      "id": 41,
      "interval": "15m",
      "options": {
        "showHeader": true
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "tags.keyword",
              "id": "2",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "metrics": [
            {
              "hide": true,
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "Top 10 ticket tags",
      "transformations": [],
      "type": "table"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "This shows the last owner only and may not display the real workload of each agent.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 15
              },
              {
                "color": "red",
                "value": 30
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Count"
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "string"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Login"
              },
              {
                "id": "mappings",
                "value": [
                  {
                    "from": "",
                    "id": 1,
                    "text": "(not assigned)",
                    "to": "",
                    "type": 1,
                    "value": "-"
                  }
                ]
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "basic"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 6,
        "x": 0,
        "y": 35
      },
      "id": 32,
      "interval": "15m",
      "options": {
        "showHeader": true
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "owner.login.keyword",
              "id": "2",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "metrics": [
            {
              "hide": true,
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "Top 10 owners based on Tickets",
      "transformations": [],
      "type": "table"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Unique Count"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Number of tickets"
              },
              {
                "id": "custom.displayMode",
                "value": "basic"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "organization.name.keyword"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Organization"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 6,
        "x": 6,
        "y": 35
      },
      "id": 53,
      "maxDataPoints": null,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "organization.name.keyword",
              "id": "4",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "D",
          "timeField": "created_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top 10 organizations",
      "transformations": [],
      "type": "table"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 15
              },
              {
                "color": "red",
                "value": 30
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Count"
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "string"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Login"
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "basic"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 6,
        "x": 12,
        "y": 35
      },
      "id": 27,
      "interval": "15m",
      "options": {
        "showHeader": true
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "customer.login.keyword",
              "id": "2",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "metrics": [
            {
              "hide": true,
              "id": "1",
              "type": "count"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "Top 10 customers based on Tickets",
      "transformations": [],
      "type": "table"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CLOSED_AT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Average time accounted"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "basic"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 6,
        "x": 18,
        "y": 35
      },
      "id": 52,
      "maxDataPoints": null,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "group.name.keyword",
              "id": "4",
              "settings": {
                "min_doc_count": "0",
                "order": "desc",
                "orderBy": "_term",
                "size": "0"
              },
              "type": "terms"
            },
            {
              "field": "time_unit",
              "id": "5",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "0"
              },
              "type": "terms"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "time_unit: >0",
          "queryType": "randomWalk",
          "refId": "D",
          "timeField": "close_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Average accounted time of tickets",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "group.name.keyword",
                "time_unit"
              ]
            }
          }
        },
        {
          "id": "groupBy",
          "options": {
            "fields": {
              "Sum": {
                "aggregations": [],
                "operation": null
              },
              "group.name.keyword": {
                "aggregations": [],
                "operation": "groupby"
              },
              "time_unit": {
                "aggregations": [
                  "mean"
                ],
                "operation": "aggregate"
              }
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Sum": false
            },
            "indexByName": {},
            "renameByName": {
              "group.name.keyword": "Group",
              "time_unit (mean)": "Average time accounted"
            }
          }
        },
        {
          "id": "sortBy",
          "options": {
            "fields": {},
            "sort": [
              {
                "desc": true,
                "field": "Average time accounted"
              }
            ]
          }
        }
      ],
      "type": "table"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 47
      },
      "id": 36,
      "panels": [],
      "title": "SLAs",
      "type": "row"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "Negative values indicate violated SLAs",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 0,
          "mappings": [],
          "max": 380,
          "min": -30,
          "noValue": "no data",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "red",
                "value": -1
              },
              {
                "color": "#EAB839",
                "value": 0
              },
              {
                "color": "green",
                "value": 30
              }
            ]
          },
          "unit": "minutes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 0,
        "y": 48
      },
      "id": 15,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "/^first_response_diff$/",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "first_response_diff",
          "bucketAggs": [
            {
              "field": "created_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "1",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "first_response_diff_in_min",
              "id": "1",
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "average first response",
      "transformations": [],
      "type": "gauge"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "Some graphs *may* display current information only and thus hide historical escalations.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 25,
            "gradientMode": "opacity",
            "hideFrom": {
              "graph": false,
              "legend": false,
              "tooltip": false
            },
            "lineInterpolation": "smooth",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false
          },
          "decimals": 0,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgba(115, 191, 105, 0)",
                "value": null
              }
            ]
          },
          "unit": "Tickets"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 12,
        "w": 20,
        "x": 4,
        "y": 48
      },
      "id": 46,
      "interval": "${interval_graphs}",
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltipOptions": {
          "mode": "multi"
        }
      },
      "pluginVersion": "7.5.1",
      "repeat": null,
      "targets": [
        {
          "alias": "First response violated",
          "bucketAggs": [
            {
              "field": "first_response_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "first_response_diff_in_min: <0",
          "queryType": "randomWalk",
          "refId": "first responses that were too late",
          "timeField": "created_at"
        },
        {
          "alias": "First response in time",
          "bucketAggs": [
            {
              "field": "first_response_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "first_response_diff_in_min: >0",
          "queryType": "randomWalk",
          "refId": "first responses that were in time",
          "timeField": "created_at"
        },
        {
          "alias": "Update response violated",
          "bucketAggs": [
            {
              "field": "update_escalation_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "update_diff_in_min: <0",
          "queryType": "randomWalk",
          "refId": "update response that were too late",
          "timeField": "created_at"
        },
        {
          "alias": "Update response in time",
          "bucketAggs": [
            {
              "field": "update_escalation_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "update_diff_in_min: >0",
          "queryType": "randomWalk",
          "refId": "update response that were in time",
          "timeField": "created_at"
        },
        {
          "alias": "Case solve violated",
          "bucketAggs": [
            {
              "field": "close_escalation_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "close_diff_in_min: <0",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        },
        {
          "alias": "Case solve in time",
          "bucketAggs": [
            {
              "field": "close_escalation_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "close_diff_in_min: >0",
          "queryType": "randomWalk",
          "refId": "B",
          "timeField": "created_at"
        }
      ],
      "title": "Escalations: violations vs in time",
      "transformations": [],
      "type": "timeseries"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "Negative values indicate violated SLAs",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 0,
          "mappings": [],
          "max": 380,
          "min": -30,
          "noValue": "no data",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "red",
                "value": -1
              },
              {
                "color": "#EAB839",
                "value": 0
              },
              {
                "color": "green",
                "value": 30
              }
            ]
          },
          "unit": "minutes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 0,
        "y": 55
      },
      "id": 16,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "/^update_diff$/",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "update_diff",
          "bucketAggs": [
            {
              "field": "updated_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "1",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "update_diff_in_min",
              "id": "1",
              "type": "avg"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "average update time",
      "transformations": [],
      "type": "gauge"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "Some indicators *may* display current information only and thus hide historical escalations.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "decimals": 0,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgba(115, 191, 105, 0)",
                "value": null
              }
            ]
          },
          "unit": "Tickets"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 9,
        "w": 6,
        "x": 4,
        "y": 60
      },
      "id": 48,
      "interval": "${interval_graphs}",
      "options": {
        "displayLabels": [
          "percent"
        ],
        "legend": {
          "displayMode": "list",
          "placement": "bottom",
          "values": []
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "text": {}
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "First response violated",
          "bucketAggs": [
            {
              "field": "first_response_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "first_response_diff_in_min: <0",
          "queryType": "randomWalk",
          "refId": "first responses that were too late",
          "timeField": "created_at"
        },
        {
          "alias": "First response in time",
          "bucketAggs": [
            {
              "field": "first_response_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "first_response_diff_in_min: >0",
          "queryType": "randomWalk",
          "refId": "first responses that were in time",
          "timeField": "created_at"
        },
        {
          "alias": "Update response violated",
          "bucketAggs": [
            {
              "field": "update_escalation_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": true,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "update_diff_in_min: <0",
          "queryType": "randomWalk",
          "refId": "update response that were too late",
          "timeField": "created_at"
        },
        {
          "alias": "Update response in time",
          "bucketAggs": [
            {
              "field": "update_escalation_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": true,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "update_diff_in_min: >0",
          "queryType": "randomWalk",
          "refId": "update response that were in time",
          "timeField": "created_at"
        },
        {
          "alias": "Case solve violated",
          "bucketAggs": [
            {
              "field": "close_escalation_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "close_diff_in_min: <0",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        },
        {
          "alias": "Case solve in time",
          "bucketAggs": [
            {
              "field": "close_escalation_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "id": "1",
              "type": "count"
            }
          ],
          "query": "close_diff_in_min: >0",
          "queryType": "randomWalk",
          "refId": "B",
          "timeField": "created_at"
        }
      ],
      "title": "Escalation ratios",
      "transformations": [],
      "type": "piechart"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "This shows current escalated tickets, they will disappear upon solving.",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "left",
            "displayMode": "color-text",
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Escalation date"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsLocal"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "#"
            },
            "properties": [
              {
                "id": "custom.width",
                "value": 100
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 8,
        "x": 16,
        "y": 60
      },
      "id": 43,
      "options": {
        "showHeader": true,
        "sortBy": []
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "escalation_at",
              "id": "4",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "escalation_at",
              "id": "3",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            },
            {
              "field": "title.keyword",
              "id": "5",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {
                "script": "_value * 1"
              },
              "type": "sum"
            }
          ],
          "query": "escalation_at: <now",
          "queryType": "randomWalk",
          "refId": "Ticket titles",
          "timeField": "created_at"
        },
        {
          "alias": "",
          "bucketAggs": [
            {
              "field": "escalation_at",
              "id": "4",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "escalation_at",
              "id": "3",
              "settings": {
                "interval": "auto",
                "min_doc_count": "0",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            },
            {
              "field": "number.keyword",
              "id": "5",
              "settings": {
                "min_doc_count": "1",
                "order": "desc",
                "orderBy": "_term",
                "size": "10"
              },
              "type": "terms"
            }
          ],
          "hide": false,
          "metrics": [
            {
              "field": "id",
              "id": "1",
              "settings": {
                "script": "_value * 1"
              },
              "type": "sum"
            }
          ],
          "query": "escalation_at: <now",
          "queryType": "randomWalk",
          "refId": "Ticket numbers",
          "timeField": "created_at"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Last 10 escalated ticket",
      "transformations": [
        {
          "id": "merge",
          "options": {}
        },
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "escalation_at",
                "title.keyword",
                "number.keyword"
              ]
            }
          }
        },
        {
          "id": "organize",
          "options": {
            "excludeByName": {},
            "indexByName": {
              "escalation_at": 0,
              "number.keyword": 1,
              "title.keyword": 2
            },
            "renameByName": {
              "created_at": "Creation date",
              "escalation_at": "Escalation date",
              "number.keyword": "#",
              "title.keyword": "Title",
              "updated_at": "Last update"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${DS_ES_- TICKETS BY CREATED_AT}",
      "description": "Negative values indicate violated SLAs",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 0,
          "mappings": [],
          "max": 380,
          "min": -30,
          "noValue": "no data",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "red",
                "value": null
              },
              {
                "color": "red",
                "value": -1
              },
              {
                "color": "#EAB839",
                "value": 0
              },
              {
                "color": "green",
                "value": 30
              }
            ]
          },
          "unit": "m"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 4,
        "x": 0,
        "y": 62
      },
      "id": 47,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "/^close_diff$/",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "7.5.1",
      "targets": [
        {
          "alias": "close_diff",
          "bucketAggs": [
            {
              "field": "close_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": "1",
                "trimEdges": "0"
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "close_diff_in_min",
              "id": "1",
              "type": "avg"
            }
          ],
          "query": "",
          "queryType": "randomWalk",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "average close time",
      "transformations": [],
      "type": "gauge"
    }
  ],
  "refresh": false,
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "auto": false,
        "auto_count": 30,
        "auto_min": "10s",
        "current": {
          "selected": false,
          "text": "1d",
          "value": "1d"
        },
        "description": "Allows you to set the minimum data point size. The bigger the less details you'll have.",
        "error": null,
        "hide": 0,
        "label": "Graph Intervall",
        "name": "interval_graphs",
        "options": [
          {
            "selected": false,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": true,
            "text": "1d",
            "value": "1d"
          },
          {
            "selected": false,
            "text": "2d",
            "value": "2d"
          },
          {
            "selected": false,
            "text": "7d",
            "value": "7d"
          },
          {
            "selected": false,
            "text": "30d",
            "value": "30d"
          }
        ],
        "query": "1h,1d,2d,7d,30d",
        "queryValue": "",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      }
    ]
  },
  "time": {
    "from": "now-6M",
    "to": "now"
  },
  "timepicker": {
    "hidden": false
  },
  "timezone": "",
  "title": "Zammad: Tickets",
  "uid": "RwZWyvlMz",
  "version": 127,
  "description": "ample Dashboard for displaying Ticket Statistics of your Zammad instance. Features SLA, Ticket-Meta and distributions."
}