Grafana dashboard: GETNG Dashboard
Description: Dashboard


{
  "__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": "grafana-worldmap-panel",
      "name": "Worldmap Panel",
      "version": "0.2.1"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "$$hashKey": "object:442",
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12189,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "panels": [
    {
      "circleMaxSize": 30,
      "circleMinSize": 2,
      "colors": [
        "rgba(245, 54, 54, 0.9)",
        "rgba(237, 129, 40, 0.89)",
        "rgba(50, 172, 45, 0.97)"
      ],
      "datasource": "${DS_GETNG_AZURE MONITOR}",
      "decimals": 0,
      "esMetric": "Count",
      "gridPos": {
        "h": 14,
        "w": 19,
        "x": 0,
        "y": 0
      },
      "hideEmpty": false,
      "hideZero": false,
      "id": 4,
      "initialZoom": 1,
      "locationData": "table",
      "mapCenter": "(0°, 0°)",
      "mapCenterLatitude": 0,
      "mapCenterLongitude": 0,
      "maxDataPoints": 1,
      "mouseWheelZoom": false,
      "showLegend": true,
      "stickyLabels": false,
      "tableQueryOptions": {
        "geohashField": "geohash",
        "labelField": "Station",
        "latitudeField": "latitude",
        "longitudeField": "longitude",
        "metricField": "UserCount",
        "queryType": "coordinates"
      },
      "targets": [
        {
          "appInsights": {
            "dimension": "none",
            "metricName": "select",
            "rawQuery": false,
            "rawQueryString": "",
            "timeColumn": "timestamp",
            "timeGrain": "auto",
            "valueColumn": ""
          },
          "azureLogAnalytics": {
            "query": "ContainerLog\r\n| where LogEntry contains \"flightsAndEvents Request:\" and LogEntry contains \"GETNGController\" \r\n| parse LogEntry with * \"GETNGController\" * \"- \" MachineId \"_\" UserId \"_\" Station \"_\" Time \"flightsAndEvents Request:\" *\r\n| distinct UserId, Station\r\n| summarize UserCount=count(UserId) by Station \r\n| order by UserCount\r\n| join kind= inner (\r\nexternaldata(latitude:decimal , longitude:decimal, Station:string) [@\"https://getngnpeast.blob.core.windows.net/dashboardinfo/rlp_station.csv;5gwFPOZp5vr/jmYu8NrP67o7fl3TmLNKAOTeiLkvR1myMFqOeYj9kAmXbXaauxS/RhCEcvScpR1tO1LIQrf7/w==\"]\r\n) on $left.Station == $right.Station\r\n",
            "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"
        }
      ],
      "thresholds": "10,50",
      "timeFrom": null,
      "timeShift": null,
      "title": "Usage Map for Last 24 Hrs",
      "type": "grafana-worldmap-panel",
      "unitPlural": "",
      "unitSingle": "",
      "valueName": "total"
    },
    {
      "columns": [],
      "datasource": "${DS_GETNG_AZURE MONITOR}",
      "description": "GETNG Usage for last 24 Hrs by Station",
      "fontSize": "80%",
      "gridPos": {
        "h": 14,
        "w": 5,
        "x": 19,
        "y": 0
      },
      "id": 2,
      "pageSize": null,
      "pluginVersion": "6.7.2",
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": false
      },
      "styles": [
        {
          "$$hashKey": "object:1723",
          "alias": "Station Name",
          "align": "left",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Station",
          "type": "string"
        },
        {
          "$$hashKey": "object:1724",
          "alias": "User Count",
          "align": "right",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "UserCount",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "appInsights": {
            "dimension": "none",
            "metricName": "select",
            "rawQuery": false,
            "rawQueryString": "",
            "timeColumn": "timestamp",
            "timeGrain": "auto",
            "valueColumn": ""
          },
          "azureLogAnalytics": {
            "query": "let UserCountRaw=ContainerLog\r\n| where LogEntry contains \"flightsAndEvents Request:\" and LogEntry contains \"GETNGController\" \r\n| parse LogEntry with * \"GETNGController\" * \"- \" MachineId \"_\" UserId \"_\" Station \"_\" Time \"flightsAndEvents Request:\" *\r\n| distinct UserId, Station\r\n| summarize UserCount=count(UserId) by Station \r\n| order by UserCount;\r\nUserCountRaw\r\n| union (UserCountRaw | extend Station = \"Total\" | summarize UserCount=sum(UserCount) by Station)",
            "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": "Usage for last 24 Hrs",
      "transform": "table",
      "type": "table"
    }
  ],
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-6h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "GETNG Dashboard",
  "uid": "lCJA1AjWk",
  "variables": {
    "list": []
  },
  "version": 22,
  "description": "Dashboard"
}