Grafana dashboard: GETNG Services Dashboard
Description: services


{
  "__inputs": [
    {
      "name": "DS_GETNG_AZURE MONITOR",
      "label": "GETNG Azure Monitor",
      "description": "",
      "type": "datasource",
      "pluginId": "grafana-azure-monitor-datasource",
      "pluginName": "Azure Monitor"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.7.2"
    },
    {
      "type": "datasource",
      "id": "grafana-azure-monitor-datasource",
      "name": "Azure Monitor",
      "version": "0.3.0"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "$$hashKey": "object:4392",
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12192,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1587705377486,
  "links": [],
  "panels": [
    {
      "alert": {
        "alertRuleTags": {},
        "conditions": [
          {
            "evaluator": {
              "params": [
                1
              ],
              "type": "gt"
            },
            "operator": {
              "type": "and"
            },
            "query": {
              "params": [
                "A",
                "5m",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          }
        ],
        "executionErrorState": "alerting",
        "for": "5m",
        "frequency": "1m",
        "handler": 1,
        "message": "GETNG - Average  response times  above threshold limit",
        "name": "Service Response Times alert",
        "noDataState": "no_data",
        "notifications": [
          {
            "uid": "6G872RqWz"
          }
        ]
      },
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_GETNG_AZURE MONITOR}",
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": [
          {
            "targetBlank": true,
            "title": "Test Link",
            "url": "http://localhost:3000/d/FEmEW-jWk/getng-test?orgId=1"
          }
        ]
      },
      "percentage": false,
      "pluginVersion": "6.7.2",
      "pointradius": 2,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "appInsights": {
            "dimension": "none",
            "metricName": "select",
            "rawQuery": false,
            "rawQueryString": "",
            "timeColumn": "timestamp",
            "timeGrain": "auto",
            "valueColumn": ""
          },
          "azureLogAnalytics": {
            "query": "ContainerLog\r\n| where $__timeFilter()\r\n| where LogEntry contains \"GETNGController\"  or LogEntry contains \"FlightDataController\"\r\n| where LogEntry contains \"Time taken\" or LogEntry contains \"Time Taken\"\r\n| project TimeGenerated , LogEntry\r\n| parse LogEntry  with * \" - \" MachineID \"_\" USERID \"_\" STATION \"_\" TIME \"_\" ServiceNo \" \" ServiceName \" \" * \"Time taken: \" ResponseTime \" ms.\" *\r\n| project TimeGenerated, ServiceName , STATION, ResponseTime \r\n| where isnotempty(ServiceName)\r\n| where $__contains(ServiceName, $serviceName) and $__contains(STATION, $stationId) \n| summarize avg(toreal(ResponseTime)) by ServiceName, _time = bin(TimeGenerated, 5m)\r\n",
            "resultFormat": "time_series",
            "workspace": "13c933e4-b797-43ee-9390-5b2ce4e3be89"
          },
          "azureMonitor": {
            "aggOptions": [],
            "dimensionFilter": "*",
            "metricDefinition": "select",
            "metricName": "select",
            "metricNamespace": "select",
            "resourceGroup": "select",
            "resourceName": "select",
            "timeGrain": "auto",
            "timeGrains": [],
            "top": "10"
          },
          "queryType": "Azure Log Analytics",
          "refId": "A",
          "subscription": "0bc507f3-ad14-4edd-8f76-a91458390da2"
        }
      ],
      "thresholds": [
        {
          "$$hashKey": "object:981",
          "colorMode": "critical",
          "fill": true,
          "line": true,
          "op": "gt",
          "value": 1,
          "yaxis": "left"
        }
      ],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Service Response Times",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:589",
          "decimals": null,
          "format": "ms",
          "label": "Time Taken",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:590",
          "format": "ms",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "getRampStatus": "semi-dark-orange"
      },
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_GETNG_AZURE MONITOR}",
      "fill": 2,
      "fillGradient": 2,
      "gridPos": {
        "h": 7,
        "w": 14,
        "x": 0,
        "y": 8
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 2,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 1,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "appInsights": {
            "dimension": "none",
            "metricName": "select",
            "rawQuery": false,
            "rawQueryString": "",
            "timeColumn": "timestamp",
            "timeGrain": "auto",
            "valueColumn": ""
          },
          "azureLogAnalytics": {
            "query": "ContainerLog\r\n| where $__timeFilter()\r\n| where LogEntry contains \"GETNGController\"  or LogEntry contains \"FlightDataController\"\r\n| where LogEntry contains \"Time taken\" or LogEntry contains \"Time Taken\"\r\n| project TimeGenerated , LogEntry\r\n| parse LogEntry  with * \" - \" MachineID \"_\" USERID \"_\" STATION \"_\" TIME \"_\" ServiceNo \" \" ServiceName \" \" * \"Time taken: \" ResponseTime \" ms.\" *\r\n| project TimeGenerated, ServiceName, STATION, toreal(ResponseTime) \r\n| where isnotempty(ServiceName)\r\n| where $__contains(ServiceName, $serviceName) and $__contains(STATION, $stationId) \r\n| where ResponseTime > 15000\r\n| sort by ResponseTime desc\r\n",
            "resultFormat": "time_series",
            "workspace": "13c933e4-b797-43ee-9390-5b2ce4e3be89"
          },
          "azureMonitor": {
            "aggOptions": [],
            "dimensionFilter": "*",
            "metricDefinition": "select",
            "metricName": "select",
            "metricNamespace": "select",
            "resourceGroup": "select",
            "resourceName": "select",
            "timeGrain": "auto",
            "timeGrains": [],
            "top": "10"
          },
          "queryType": "Azure Log Analytics",
          "refId": "A",
          "subscription": "0bc507f3-ad14-4edd-8f76-a91458390da2"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Services Taking Over 15 seconds",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1502",
          "decimals": null,
          "format": "ms",
          "label": "Time Taken",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:1503",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "columns": [],
      "datasource": "${DS_GETNG_AZURE MONITOR}",
      "fontSize": "80%",
      "gridPos": {
        "h": 7,
        "w": 10,
        "x": 14,
        "y": 8
      },
      "id": 6,
      "pageSize": null,
      "showHeader": true,
      "sort": {
        "col": 2,
        "desc": false
      },
      "styles": [
        {
          "$$hashKey": "object:2201",
          "alias": "Time Generated",
          "align": "left",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "TimeGenerated",
          "type": "date"
        },
        {
          "$$hashKey": "object:2202",
          "alias": "Response Time",
          "align": "left",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "ResponseTime",
          "preserveFormat": false,
          "thresholds": [],
          "type": "number",
          "unit": "ms"
        },
        {
          "$$hashKey": "object:5547",
          "alias": "Service Name",
          "align": "left",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "ServiceName",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "appInsights": {
            "dimension": "none",
            "metricName": "select",
            "rawQuery": false,
            "rawQueryString": "",
            "timeColumn": "timestamp",
            "timeGrain": "auto",
            "valueColumn": ""
          },
          "azureLogAnalytics": {
            "query": "ContainerLog\r\n| where $__timeFilter()\r\n| where LogEntry contains \"GETNGController\"  or LogEntry contains \"FlightDataController\"\r\n| where LogEntry contains \"Time taken\" or LogEntry contains \"Time Taken\"\r\n| project TimeGenerated , LogEntry\r\n| parse LogEntry  with * \" - \" MachineID \"_\" USERID \"_\" STATION \"_\" TIME \"_\" ServiceNo \" \" ServiceName \" \" * \"Time taken: \" ResponseTime \" ms.\" *\r\n| project TimeGenerated, ServiceName, STATION, toreal(ResponseTime) \r\n| where isnotempty(ServiceName)\r\n| where $__contains(ServiceName, $serviceName) and $__contains(STATION, $stationId)\r\n//| where ResponseTime > 15000\r\n| sort by ResponseTime desc",
            "resultFormat": "table",
            "workspace": "13c933e4-b797-43ee-9390-5b2ce4e3be89"
          },
          "azureMonitor": {
            "aggOptions": [],
            "dimensionFilter": "*",
            "metricDefinition": "select",
            "metricName": "select",
            "metricNamespace": "select",
            "resourceGroup": "select",
            "resourceName": "select",
            "timeGrain": "auto",
            "timeGrains": [],
            "top": "10"
          },
          "queryType": "Azure Log Analytics",
          "refId": "A",
          "subscription": "0bc507f3-ad14-4edd-8f76-a91458390da2"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Service Response Time",
      "transform": "table",
      "type": "table"
    },
    {
      "aliasColors": {
        "ServiceCount": "semi-dark-purple"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_GETNG_AZURE MONITOR}",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 14,
        "x": 0,
        "y": 15
      },
      "hiddenSeries": false,
      "id": 10,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "appInsights": {
            "dimension": "none",
            "metricName": "select",
            "rawQuery": false,
            "rawQueryString": "",
            "timeColumn": "timestamp",
            "timeGrain": "auto",
            "valueColumn": ""
          },
          "azureLogAnalytics": {
            "query": "ContainerLog\r\n| where $__timeFilter()\r\n| where LogEntry contains \"GETNGController\"  or LogEntry contains \"FlightDataController\"\r\n| where LogEntry contains \"Time taken\" or LogEntry contains \"Time Taken\"\r\n| parse LogEntry  with * \" - \" MachineID \"_\" USERID \"_\" STATION \"_\" TIME \"_\" ServiceNo \" \" ServiceName \" \" *\r\n| where $__contains(ServiceName, $serviceName)\r\n| summarize ServiceCount=count(USERID) by bin(TimeGenerated, 1d) \r\n| sort by ServiceCount desc\r\n| order by TimeGenerated asc\r\n",
            "resultFormat": "time_series",
            "workspace": "13c933e4-b797-43ee-9390-5b2ce4e3be89"
          },
          "azureMonitor": {
            "aggOptions": [],
            "dimensionFilter": "*",
            "metricDefinition": "select",
            "metricName": "select",
            "metricNamespace": "select",
            "resourceGroup": "select",
            "resourceName": "select",
            "timeGrain": "auto",
            "timeGrains": [],
            "top": "10"
          },
          "queryType": "Azure Log Analytics",
          "refId": "A",
          "subscription": "0bc507f3-ad14-4edd-8f76-a91458390da2"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Total Number of Service Calls",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:2600",
          "format": "short",
          "label": "Service Count",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:2601",
          "format": "short",
          "label": "TimeGenerated",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "columns": [],
      "datasource": "${DS_GETNG_AZURE MONITOR}",
      "fontSize": "80%",
      "gridPos": {
        "h": 8,
        "w": 10,
        "x": 14,
        "y": 15
      },
      "id": 8,
      "pageSize": null,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": true
      },
      "styles": [
        {
          "$$hashKey": "object:2428",
          "alias": "Station",
          "align": "left",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "STATION",
          "type": "string"
        },
        {
          "$$hashKey": "object:2429",
          "alias": "Time Generated",
          "align": "left",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "TimeGenerated",
          "thresholds": [],
          "type": "number",
          "unit": "dateTimeAsIso"
        },
        {
          "$$hashKey": "object:5481",
          "alias": "Service Calls Count",
          "align": "left",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "ServiceCount",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "appInsights": {
            "dimension": "none",
            "metricName": "select",
            "rawQuery": false,
            "rawQueryString": "",
            "timeColumn": "timestamp",
            "timeGrain": "auto",
            "valueColumn": ""
          },
          "azureLogAnalytics": {
            "query": "ContainerLog\r\n| where $__timeFilter()\r\n| where LogEntry contains \"GETNGController\"  or LogEntry contains \"FlightDataController\"\r\n| where LogEntry contains \"Time taken\" or LogEntry contains \"Time Taken\"\r\n| parse LogEntry  with * \" - \" MachineID \"_\" USERID \"_\" STATION \"_\" TIME \"_\" ServiceNo \" \" ServiceName \" \" *\r\n//| where $__contains(ServiceName, $serviceName) and $__contains(STATION, $stationId)\r\n| summarize ServiceCount=count(USERID) by STATION \r\n| sort by ServiceCount desc",
            "resultFormat": "table",
            "workspace": "13c933e4-b797-43ee-9390-5b2ce4e3be89"
          },
          "azureMonitor": {
            "aggOptions": [],
            "dimensionFilter": "*",
            "metricDefinition": "select",
            "metricName": "select",
            "metricNamespace": "select",
            "resourceGroup": "select",
            "resourceName": "select",
            "timeGrain": "auto",
            "timeGrains": [],
            "top": "10"
          },
          "queryType": "Azure Log Analytics",
          "refId": "A",
          "subscription": "0bc507f3-ad14-4edd-8f76-a91458390da2"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Service Calls Break Down by Station",
      "transform": "table",
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_GETNG_AZURE MONITOR}",
        "definition": "ContainerLog\n| where TimeGenerated > ago(24h)\n| where LogEntry contains \"GETNGController\"  or LogEntry contains \"FlightDataController\"\n| project TimeGenerated , LogEntry\n| parse LogEntry  with * \" - \" MachineID \"_\" USERID \"_\" STATION \"_\" TIME \"_\" ServiceNo \" \" ServiceName \" \" * \"Time taken: \" ResponseTime \" ms.\" *\n| project ServiceName \n| where isnotempty(ServiceName) \n| distinct(ServiceName)\n| sort by ServiceName asc \n",
        "hide": 0,
        "includeAll": true,
        "index": -1,
        "label": "Service",
        "multi": true,
        "name": "serviceName",
        "options": [],
        "query": "ContainerLog\n| where TimeGenerated > ago(24h)\n| where LogEntry contains \"GETNGController\"  or LogEntry contains \"FlightDataController\"\n| project TimeGenerated , LogEntry\n| parse LogEntry  with * \" - \" MachineID \"_\" USERID \"_\" STATION \"_\" TIME \"_\" ServiceNo \" \" ServiceName \" \" * \"Time taken: \" ResponseTime \" ms.\" *\n| project ServiceName \n| where isnotempty(ServiceName) \n| distinct(ServiceName)\n| sort by ServiceName asc \n",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "text": "All",
          "value": [
            "$__all"
          ]
        },
        "hide": 0,
        "includeAll": true,
        "label": "Station",
        "multi": true,
        "name": "stationId",
        "options": [
          {
            "$$hashKey": "object:5111",
            "selected": true,
            "text": "All",
            "value": "$__all"
          },
          {
            "$$hashKey": "object:5112",
            "selected": false,
            "text": "ABE",
            "value": "ABE"
          },
          {
            "$$hashKey": "object:5113",
            "selected": false,
            "text": "BOS",
            "value": "BOS"
          },
          {
            "$$hashKey": "object:5114",
            "selected": false,
            "text": "CLT",
            "value": "CLT"
          },
          {
            "$$hashKey": "object:5115",
            "selected": false,
            "text": "DFW",
            "value": "DFW"
          },
          {
            "$$hashKey": "object:5116",
            "selected": false,
            "text": "DTW",
            "value": "DTW"
          },
          {
            "$$hashKey": "object:5117",
            "selected": false,
            "text": "LAX",
            "value": "LAX"
          },
          {
            "$$hashKey": "object:5118",
            "selected": false,
            "text": "LHR",
            "value": "LHR"
          },
          {
            "$$hashKey": "object:5119",
            "selected": false,
            "text": "MIA",
            "value": "MIA"
          },
          {
            "$$hashKey": "object:5120",
            "selected": false,
            "text": "ORD",
            "value": "ORD"
          },
          {
            "$$hashKey": "object:5121",
            "selected": false,
            "text": "PHX",
            "value": "PHX"
          },
          {
            "$$hashKey": "object:5122",
            "selected": false,
            "text": "SAN",
            "value": "SAN"
          },
          {
            "$$hashKey": "object:5123",
            "selected": false,
            "text": "SFO",
            "value": "SFO"
          }
        ],
        "query": "ABE, BOS, CLT, DFW, DTW, LAX, LHR, MIA, ORD, PHX, SAN, SFO",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "GETNG Services Dashboard",
  "uid": "ouXWw0CZk",
  "variables": {
    "list": []
  },
  "version": 96,
  "description": "services"
}