Grafana dashboard: Elasticsearch
Description: Logistics Shipment & PO Analysis


{
  "__inputs": [
    {
      "name": "DS_GTNX_SHIPMENT",
      "label": "GTNX_Shipment",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "3.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.6.2"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "heatmap",
      "name": "Heatmap",
      "version": ""
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 10901,
  "graphTooltip": 0,
  "hideControls": false,
  "id": null,
  "links": [],
  "refresh": false,
  "rows": [
    {
      "collapse": false,
      "height": 285,
      "panels": [
        {
          "aliasColors": {
            "Fully Shipped": "rgb(53, 184, 170)",
            "Fully Shipped Shipment": "rgb(94, 214, 168)",
            "Missing DD Date": "#f29191"
          },
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_GTNX_SHIPMENT}",
          "fill": 1,
          "id": 1,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 3,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "ShipmentStatus",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_term",
                    "size": "10"
                  },
                  "type": "terms"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "label": "Shipment",
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1w",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "SHIPMENT ID",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Shipment Count",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {
            "Fully Shipped": "rgb(53, 184, 170)",
            "Missing DD Date": "#f29191"
          },
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_GTNX_SHIPMENT}",
          "fill": 3,
          "id": 9,
          "legend": {
            "avg": true,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 3,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 3,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Fully Shipped"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "label": "Shipment",
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1w",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "DEST_Days",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "avg"
                },
                {
                  "field": "PTP_Days",
                  "id": "5",
                  "meta": {},
                  "settings": {},
                  "type": "avg"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "AVG Delivery Days vs AVG PTP Days (Shipped)",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_GTNX_SHIPMENT}",
          "fill": 1,
          "id": 15,
          "legend": {
            "alignAsTable": false,
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 3,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "Carrier",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "1",
                    "size": "0"
                  },
                  "type": "terms"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "auto",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "SHIPMENT ID",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Shipment Count by Carrier",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "series",
            "name": null,
            "show": false,
            "values": [
              "total"
            ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": true,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_GTNX_SHIPMENT}",
          "fill": 1,
          "id": 18,
          "legend": {
            "alignAsTable": false,
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 3,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "Supplier",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "1",
                    "size": "5"
                  },
                  "type": "terms"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "auto",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "SHIPMENT ID",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Shipment Count by Top 5 Supplier",
          "tooltip": {
            "shared": false,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "series",
            "name": null,
            "show": false,
            "values": [
              "total"
            ]
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": 192,
      "panels": [
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#f29191",
            "#f2c96d",
            "rgb(58, 190, 151)"
          ],
          "datasource": "${DS_GTNX_SHIPMENT}",
          "format": "none",
          "gauge": {
            "maxValue": 5000,
            "minValue": 0,
            "show": true,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "height": "",
          "id": 3,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 2,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1w",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "SHIPMENT ID",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": "1800,3600",
          "title": "All Shipment",
          "transparent": false,
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "total"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#f29191",
            "#f2c96d",
            "rgb(58, 190, 151)"
          ],
          "datasource": "${DS_GTNX_SHIPMENT}",
          "format": "none",
          "gauge": {
            "maxValue": 5000,
            "minValue": 0,
            "show": true,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 5,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 2,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Fully Shipped"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1w",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "SHIPMENT ID",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": "1800,3600",
          "title": "Fully Shipped",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "total"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#f29191",
            "#f2c96d",
            "rgb(58, 190, 151)"
          ],
          "datasource": "${DS_GTNX_SHIPMENT}",
          "format": "none",
          "gauge": {
            "maxValue": 5000,
            "minValue": 0,
            "show": true,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 4,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 2,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Missing DD Date"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1w",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "SHIPMENT ID",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": "1800,3600",
          "title": "Missing Delivery Date",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "total"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#f29191",
            "#f2c96d",
            "rgb(58, 190, 151)"
          ],
          "datasource": "${DS_GTNX_SHIPMENT}",
          "format": "none",
          "gauge": {
            "maxValue": 120,
            "minValue": 0,
            "show": true,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 10,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 3,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "label": "Shipment",
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Fully Shipped"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1w",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "DEST_Days",
                  "id": "1",
                  "inlineScript": "_value",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value"
                    }
                  },
                  "type": "avg"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": "40,80",
          "title": "Shipment AVG Days (Destination)",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "avg"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorValue": false,
          "colors": [
            "#f29191",
            "#f2c96d",
            "rgb(58, 190, 151)"
          ],
          "datasource": "${DS_GTNX_SHIPMENT}",
          "format": "none",
          "gauge": {
            "maxValue": 120,
            "minValue": 0,
            "show": true,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "id": 19,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "name": "value to text",
              "value": 1
            },
            {
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "",
          "prefixFontSize": "50%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "span": 3,
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "label": "Shipment",
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Fully Shipped"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1w",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "PTP_Days",
                  "id": "1",
                  "inlineScript": "_value*1",
                  "meta": {},
                  "settings": {
                    "script": {
                      "inline": "_value*1"
                    }
                  },
                  "type": "avg"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "thresholds": "40,80",
          "title": "Shipment AVG Days (Destination)",
          "type": "singlestat",
          "valueFontSize": "80%",
          "valueMaps": [
            {
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "avg"
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    },
    {
      "collapse": false,
      "height": 280,
      "panels": [
        {
          "cards": {
            "cardPadding": null,
            "cardRound": null
          },
          "color": {
            "cardColor": "#b4ff00",
            "colorScale": "sqrt",
            "colorScheme": "interpolateSpectral",
            "exponent": 0.5,
            "max": null,
            "min": null,
            "mode": "spectrum"
          },
          "dataFormat": "timeseries",
          "datasource": "${DS_GTNX_SHIPMENT}",
          "heatmap": {},
          "highlightCards": true,
          "id": 16,
          "legend": {
            "show": false
          },
          "links": [],
          "span": 3,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Fully Shipped"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1d",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "Cargo_Days",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "title": "Average Cargo Days (Created vs Cargo Ready)",
          "tooltip": {
            "show": true,
            "showHistogram": false
          },
          "type": "heatmap",
          "xAxis": {
            "show": true
          },
          "xBucketNumber": 1,
          "xBucketSize": "1w",
          "yAxis": {
            "decimals": null,
            "format": "short",
            "logBase": 1,
            "max": null,
            "min": null,
            "show": true,
            "splitFactor": null
          },
          "yBucketNumber": null,
          "yBucketSize": null
        },
        {
          "cards": {
            "cardPadding": null,
            "cardRound": null
          },
          "color": {
            "cardColor": "#b4ff00",
            "colorScale": "sqrt",
            "colorScheme": "interpolateGreens",
            "exponent": 0.5,
            "max": null,
            "min": null,
            "mode": "spectrum"
          },
          "dataFormat": "timeseries",
          "datasource": "${DS_GTNX_SHIPMENT}",
          "heatmap": {},
          "highlightCards": true,
          "id": 13,
          "legend": {
            "show": false
          },
          "links": [],
          "span": 3,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Fully Shipped"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1d",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "POL_Days",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "avg"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "title": "Average POL Days (ETD vs Actual Depart POL)",
          "tooltip": {
            "show": true,
            "showHistogram": false
          },
          "type": "heatmap",
          "xAxis": {
            "show": true
          },
          "xBucketNumber": 1,
          "xBucketSize": "1w",
          "yAxis": {
            "decimals": null,
            "format": "short",
            "logBase": 1,
            "max": null,
            "min": null,
            "show": true,
            "splitFactor": null
          },
          "yBucketNumber": null,
          "yBucketSize": null
        },
        {
          "cards": {
            "cardPadding": null,
            "cardRound": null
          },
          "color": {
            "cardColor": "#b4ff00",
            "colorScale": "sqrt",
            "colorScheme": "interpolateYlOrRd",
            "exponent": 0.5,
            "max": null,
            "min": null,
            "mode": "spectrum"
          },
          "dataFormat": "timeseries",
          "datasource": "${DS_GTNX_SHIPMENT}",
          "heatmap": {},
          "highlightCards": true,
          "id": 14,
          "legend": {
            "show": false
          },
          "links": [],
          "span": 3,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Fully Shipped"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "field": "SHIPMENT ID",
                  "id": "5",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_term",
                    "size": "0"
                  },
                  "type": "terms"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1d",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "PTP_Days",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "sum"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "title": "PTP Days (Depart POL vs Arrive POD)",
          "tooltip": {
            "show": true,
            "showHistogram": false
          },
          "type": "heatmap",
          "xAxis": {
            "show": true
          },
          "xBucketNumber": 1,
          "xBucketSize": "1w",
          "yAxis": {
            "decimals": null,
            "format": "short",
            "logBase": 1,
            "max": null,
            "min": "0",
            "show": true,
            "splitFactor": null
          },
          "yBucketNumber": null,
          "yBucketSize": 5
        },
        {
          "cards": {
            "cardPadding": null,
            "cardRound": null
          },
          "color": {
            "cardColor": "#b4ff00",
            "colorScale": "sqrt",
            "colorScheme": "interpolateGnBu",
            "exponent": 0.5,
            "max": null,
            "min": null,
            "mode": "spectrum"
          },
          "dataFormat": "timeseries",
          "datasource": "${DS_GTNX_SHIPMENT}",
          "heatmap": {},
          "highlightCards": true,
          "id": 12,
          "legend": {
            "show": false
          },
          "links": [],
          "span": 3,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "id": "3",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "ShipmentRow:1"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "fake": true,
                  "id": "4",
                  "query": "*",
                  "settings": {
                    "filters": [
                      {
                        "query": "Fully Shipped"
                      }
                    ]
                  },
                  "type": "filters"
                },
                {
                  "field": "Last Updated",
                  "id": "2",
                  "settings": {
                    "interval": "1d",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "format": "time_series",
              "metrics": [
                {
                  "field": "DEST_Days",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "avg"
                }
              ],
              "rawSql": "SELECT\n  UNIX_TIMESTAMP(<time_column>) as time_sec,\n  <value column> as value,\n  <series name column> as metric\nFROM <table name>\nWHERE $__timeFilter(time_column)\nORDER BY <time_column> ASC\n",
              "refId": "A",
              "timeField": "Last Updated"
            }
          ],
          "title": "Destination Delivery (Depart POL vs Delivery)",
          "tooltip": {
            "show": true,
            "showHistogram": false
          },
          "type": "heatmap",
          "xAxis": {
            "show": true
          },
          "xBucketNumber": 1,
          "xBucketSize": "1w",
          "yAxis": {
            "decimals": null,
            "format": "short",
            "logBase": 1,
            "max": null,
            "min": null,
            "show": true,
            "splitFactor": null
          },
          "yBucketNumber": null,
          "yBucketSize": null
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "2016-11-23T05:20:07.260Z",
    "to": "2017-08-30T08:30:47.808Z"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Elasticsearch",
  "version": 36,
  "description": "Logistics Shipment & PO Analysis"
}