Grafana dashboard: GPSTI
Description: Twitter Dashboard


{
  "__inputs": [
    {
      "name": "DS_TEST",
      "label": "test",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    }
  ],
  "__requires": [
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "5.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "5.1.3"
    },
    {
      "type": "panel",
      "id": "grafana-worldmap-panel",
      "name": "Worldmap Panel",
      "version": "0.0.21"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "petrslavotinek-carpetplot-panel",
      "name": "Carpet plot",
      "version": "0.1.1"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 10003,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1528884226524,
  "links": [],
  "panels": [
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TEST}",
      "fill": 1,
      "gridPos": {
        "h": 7,
        "w": 11,
        "x": 0,
        "y": 0
      },
      "id": 10,
      "legend": {
        "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,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "created_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "(lang:$lang) AND (country:$country) AND (flood_probability:>=$probability)",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total number of Tweets",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "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
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "circleMaxSize": 30,
      "circleMinSize": 2,
      "colors": [
        "#cffaff",
        "#1f78c1",
        "#052b51"
      ],
      "datasource": "${DS_TEST}",
      "decimals": 0,
      "esGeoPoint": "location",
      "esLocationName": "",
      "esMetric": "Count",
      "gridPos": {
        "h": 14,
        "w": 13,
        "x": 11,
        "y": 0
      },
      "hideEmpty": false,
      "hideZero": false,
      "id": 6,
      "initialZoom": 1,
      "links": [],
      "locationData": "geohash",
      "mapCenter": "(0°, 0°)",
      "mapCenterLatitude": 0,
      "mapCenterLongitude": 0,
      "maxDataPoints": 1,
      "showLegend": true,
      "stickyLabels": false,
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "location",
              "id": "2",
              "settings": {
                "precision": 6
              },
              "type": "geohash_grid"
            }
          ],
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "(lang:$lang) AND (country:$country) AND (flood_probability:>=$probability)",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "thresholds": "0,10",
      "title": "Panel Title",
      "type": "grafana-worldmap-panel",
      "unitPlural": "",
      "unitSingle": "",
      "valueName": "total"
    },
    {
      "aggregate": "AVG",
      "color": {
        "colorScheme": "interpolateRdYlGn",
        "colorSpace": "RGB",
        "customColors": [
          {
            "color": "rgba(0, 104, 55, 0)"
          },
          {
            "color": "#0a437c"
          }
        ],
        "invert": false,
        "mode": "CUSTOM",
        "nullColor": "rgba(207, 250, 255, 0)"
      },
      "data": {
        "decimals": 1,
        "unitFormat": "short"
      },
      "datasource": "${DS_TEST}",
      "fragment": "HOUR",
      "gridPos": {
        "h": 7,
        "w": 11,
        "x": 0,
        "y": 7
      },
      "id": 8,
      "legend": {
        "show": true
      },
      "links": [],
      "scale": {
        "max": null,
        "min": null
      },
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "created_at",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 0,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "select field",
              "id": "1",
              "type": "count"
            }
          ],
          "query": "(lang:$lang) AND (country:$country) AND (flood_probability:>=$probability)",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "Distribution of Tweets During Daytime",
      "tooltip": {
        "show": true
      },
      "type": "petrslavotinek-carpetplot-panel",
      "xAxis": {
        "hideLabels": false,
        "labelFormat": "%m-%d",
        "minBucketWidthToShowWeekends": 10,
        "show": true,
        "showCrosshair": true,
        "showWeekends": true
      },
      "yAxis": {
        "hideLabels": false,
        "show": true,
        "showCrosshair": false
      }
    },
    {
      "columns": [
        {
          "text": "created_at",
          "value": "created_at"
        },
        {
          "text": "place",
          "value": "place"
        },
        {
          "text": "country",
          "value": "country"
        },
        {
          "text": "lang",
          "value": "lang"
        },
        {
          "text": "text",
          "value": "text"
        },
        {
          "text": "flood_probability",
          "value": "flood_probability"
        }
      ],
      "datasource": "${DS_TEST}",
      "fontSize": "100%",
      "gridPos": {
        "h": 25,
        "w": 24,
        "x": 0,
        "y": 14
      },
      "height": "",
      "id": 2,
      "links": [],
      "minSpan": null,
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": true
      },
      "styles": [
        {
          "alias": "Tarih",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "timestamp_ms",
          "type": "date"
        },
        {
          "alias": "Profil Resmi",
          "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,
          "link": true,
          "linkTargetBlank": true,
          "linkTooltip": "Profil Resmini Görmek İçin Tıklayınız",
          "linkUrl": "\"/><img src=\"$__cell_3\" style=\"text-align:center\" /><a style=\"visibility:hidden; width:0px\"\" ",
          "pattern": "user.profile_image_url_https",
          "preserveFormat": false,
          "sanitize": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Kullanıcı",
          "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,
          "pattern": "user.name",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Yeri",
          "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,
          "pattern": "user.location",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Tweet",
          "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,
          "pattern": "text",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Takipçi Sayısı",
          "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,
          "pattern": "user.followers_count",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "bucketAggs": [],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "user.followers_count",
              "id": "1",
              "meta": {},
              "settings": {
                "size": 500
              },
              "type": "raw_document"
            }
          ],
          "query": "(lang:$lang) AND (country:$country) AND (flood_probability:>=$probability)",
          "refId": "A",
          "timeField": "created_at"
        }
      ],
      "title": "Tweets",
      "transform": "json",
      "transparent": false,
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 16,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "datasource": "test",
        "filters": [],
        "hide": 0,
        "label": "",
        "name": "Filters",
        "type": "adhoc"
      },
      {
        "allValue": null,
        "current": {
          "selected": true,
          "tags": [],
          "text": "\"ESP\"",
          "value": [
            "\"ESP\""
          ]
        },
        "hide": 0,
        "includeAll": true,
        "label": "Country",
        "multi": true,
        "name": "country",
        "options": [
          {
            "selected": false,
            "text": "All",
            "value": "$__all"
          },
          {
            "selected": true,
            "text": "\"ESP\"",
            "value": "\"ESP\""
          },
          {
            "selected": false,
            "text": "\"DEU\"",
            "value": "\"DEU\""
          },
          {
            "selected": false,
            "text": "\"GBR\"",
            "value": "\"GBR\""
          },
          {
            "selected": false,
            "text": "\"ITA\"",
            "value": "\"ITA\""
          },
          {
            "selected": false,
            "text": "\"FRA\"",
            "value": "\"FRA\""
          }
        ],
        "query": "\"ESP\",\"DEU\",\"GBR\",\"ITA\",\"FRA\"",
        "type": "custom"
      },
      {
        "allValue": null,
        "current": {
          "selected": true,
          "text": "All",
          "value": "$__all"
        },
        "hide": 0,
        "includeAll": true,
        "label": "Language",
        "multi": true,
        "name": "lang",
        "options": [
          {
            "selected": true,
            "text": "All",
            "value": "$__all"
          },
          {
            "selected": false,
            "text": "\"en\"",
            "value": "\"en\""
          },
          {
            "selected": false,
            "text": "\"de\"",
            "value": "\"de\""
          },
          {
            "selected": false,
            "text": "\"it\"",
            "value": "\"it\""
          },
          {
            "selected": false,
            "text": "\"es\"",
            "value": "\"es\""
          }
        ],
        "query": "\"en\",\"de\",\"it\",\"es\"",
        "type": "custom"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TEST}",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "test",
        "options": [],
        "query": "{\"find\": \"terms\", \"field\": \"lang\", \"query\":\"*\"}",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": true,
          "tags": [],
          "text": "0.8",
          "value": "0.8"
        },
        "hide": 0,
        "includeAll": false,
        "label": "Flood Probability",
        "multi": false,
        "name": "probability",
        "options": [
          {
            "selected": false,
            "text": "0.2",
            "value": "0.2"
          },
          {
            "selected": false,
            "text": "0.4",
            "value": "0.4"
          },
          {
            "selected": false,
            "text": "0.6",
            "value": "0.6"
          },
          {
            "selected": true,
            "text": "0.8",
            "value": "0.8"
          }
        ],
        "query": "0.2,0.4,0.6,0.8",
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-7d",
    "to": "now"
  },
  "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": "GPSTI",
  "uid": "eseukeIiz",
  "version": 2,
  "description": "Twitter Dashboard"
}