2018-10-12 21:20:07 +02:00
|
|
|
{
|
2018-10-12 21:49:52 +02:00
|
|
|
"__inputs": [
|
|
|
|
{
|
|
|
|
"name": "DS_INFLUXDB",
|
2022-07-18 12:30:09 +02:00
|
|
|
"label": "InfluxDB",
|
2018-10-12 21:49:52 +02:00
|
|
|
"description": "",
|
|
|
|
"type": "datasource",
|
|
|
|
"pluginId": "influxdb",
|
|
|
|
"pluginName": "InfluxDB"
|
|
|
|
}
|
|
|
|
],
|
2022-07-18 12:30:09 +02:00
|
|
|
"__elements": [],
|
2018-10-12 21:49:52 +02:00
|
|
|
"__requires": [
|
|
|
|
{
|
|
|
|
"type": "grafana",
|
|
|
|
"id": "grafana",
|
|
|
|
"name": "Grafana",
|
2022-07-18 12:30:09 +02:00
|
|
|
"version": "9.0.2"
|
2018-10-12 21:49:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "panel",
|
|
|
|
"id": "grafana-worldmap-panel",
|
|
|
|
"name": "Worldmap Panel",
|
2022-07-18 12:30:09 +02:00
|
|
|
"version": "0.3.3"
|
2018-10-12 21:49:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "datasource",
|
|
|
|
"id": "influxdb",
|
|
|
|
"name": "InfluxDB",
|
2022-07-18 12:30:09 +02:00
|
|
|
"version": "1.0.0"
|
2018-10-12 21:49:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "panel",
|
2022-07-18 12:30:09 +02:00
|
|
|
"id": "table-old",
|
|
|
|
"name": "Table (old)",
|
|
|
|
"version": ""
|
2018-10-12 21:49:52 +02:00
|
|
|
}
|
|
|
|
],
|
2018-10-12 21:20:07 +02:00
|
|
|
"annotations": {
|
|
|
|
"list": [
|
|
|
|
{
|
|
|
|
"builtIn": 1,
|
2022-07-18 12:30:09 +02:00
|
|
|
"datasource": {
|
|
|
|
"type": "datasource",
|
|
|
|
"uid": "grafana"
|
|
|
|
},
|
2018-10-12 21:20:07 +02:00
|
|
|
"enable": true,
|
|
|
|
"hide": true,
|
|
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
|
|
"name": "Annotations & Alerts",
|
2022-07-18 12:30:09 +02:00
|
|
|
"target": {
|
|
|
|
"limit": 100,
|
|
|
|
"matchAny": false,
|
|
|
|
"tags": [],
|
|
|
|
"type": "dashboard"
|
|
|
|
},
|
2018-10-12 21:20:07 +02:00
|
|
|
"type": "dashboard"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-07-18 12:30:09 +02:00
|
|
|
"description": "Dashboard for showing GEOIP information from Nginx logs, for the GeoStat script. ",
|
2018-10-12 21:20:07 +02:00
|
|
|
"editable": true,
|
2022-07-18 12:30:09 +02:00
|
|
|
"fiscalYearStartMonth": 0,
|
|
|
|
"gnetId": 8342,
|
2018-10-12 21:20:07 +02:00
|
|
|
"graphTooltip": 0,
|
2018-10-12 21:49:52 +02:00
|
|
|
"id": null,
|
2022-07-18 12:30:09 +02:00
|
|
|
"iteration": 1658128917676,
|
2018-10-12 21:20:07 +02:00
|
|
|
"links": [],
|
2022-07-18 12:30:09 +02:00
|
|
|
"liveNow": false,
|
2018-10-12 21:20:07 +02:00
|
|
|
"panels": [
|
|
|
|
{
|
|
|
|
"circleMaxSize": "8",
|
|
|
|
"circleMinSize": 2,
|
|
|
|
"colors": [
|
|
|
|
"rgba(245, 54, 54, 0.9)",
|
|
|
|
"rgba(237, 129, 40, 0.89)",
|
|
|
|
"rgba(50, 172, 45, 0.97)"
|
|
|
|
],
|
2022-07-18 12:30:09 +02:00
|
|
|
"datasource": {
|
|
|
|
"type": "influxdb",
|
|
|
|
"uid": "${DS_INFLUXDB}"
|
|
|
|
},
|
2018-10-12 21:20:07 +02:00
|
|
|
"decimals": 0,
|
|
|
|
"esMetric": "Count",
|
|
|
|
"gridPos": {
|
|
|
|
"h": 13,
|
|
|
|
"w": 18,
|
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"hideEmpty": true,
|
|
|
|
"hideZero": true,
|
|
|
|
"id": 2,
|
|
|
|
"initialZoom": "2",
|
|
|
|
"links": [],
|
|
|
|
"locationData": "table",
|
|
|
|
"mapCenter": "custom",
|
|
|
|
"mapCenterLatitude": "40",
|
|
|
|
"mapCenterLongitude": "20",
|
|
|
|
"maxDataPoints": 1,
|
|
|
|
"mouseWheelZoom": true,
|
|
|
|
"showLegend": true,
|
|
|
|
"stickyLabels": true,
|
|
|
|
"tableQueryOptions": {
|
|
|
|
"geohashField": "geohash",
|
|
|
|
"labelField": "",
|
|
|
|
"latitudeField": "latitude",
|
|
|
|
"longitudeField": "longitude",
|
|
|
|
"metricField": "metric",
|
|
|
|
"queryType": "geohash"
|
|
|
|
},
|
|
|
|
"targets": [
|
|
|
|
{
|
2022-07-18 12:30:09 +02:00
|
|
|
"datasource": {
|
|
|
|
"type": "influxdb",
|
|
|
|
"uid": "${DS_INFLUXDB}"
|
|
|
|
},
|
2018-10-12 21:20:07 +02:00
|
|
|
"groupBy": [
|
|
|
|
{
|
|
|
|
"params": [
|
|
|
|
"geohash"
|
|
|
|
],
|
|
|
|
"type": "tag"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"measurement": "geodata",
|
|
|
|
"orderByTime": "ASC",
|
|
|
|
"policy": "default",
|
|
|
|
"refId": "A",
|
|
|
|
"resultFormat": "table",
|
|
|
|
"select": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"params": [
|
|
|
|
"count"
|
|
|
|
],
|
|
|
|
"type": "field"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"params": [],
|
|
|
|
"type": "sum"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"params": [
|
|
|
|
"metric"
|
|
|
|
],
|
|
|
|
"type": "alias"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
{
|
|
|
|
"key": "host",
|
|
|
|
"operator": "=~",
|
|
|
|
"value": "/^$host$/"
|
2022-07-18 12:30:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"condition": "AND",
|
|
|
|
"key": "website",
|
|
|
|
"operator": "=~",
|
|
|
|
"value": "/^$website$/"
|
2018-10-12 21:20:07 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"thresholds": "0,10",
|
|
|
|
"title": "GEOMAP",
|
|
|
|
"type": "grafana-worldmap-panel",
|
|
|
|
"unitPlural": "",
|
|
|
|
"unitSingle": "",
|
|
|
|
"unitSingular": "",
|
|
|
|
"valueName": "total"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"columns": [],
|
2022-07-18 12:30:09 +02:00
|
|
|
"datasource": {
|
|
|
|
"type": "influxdb",
|
|
|
|
"uid": "${DS_INFLUXDB}"
|
|
|
|
},
|
2018-10-12 21:20:07 +02:00
|
|
|
"fontSize": "100%",
|
|
|
|
"gridPos": {
|
|
|
|
"h": 13,
|
|
|
|
"w": 6,
|
|
|
|
"x": 18,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"id": 4,
|
|
|
|
"links": [],
|
|
|
|
"pageSize": 20,
|
|
|
|
"scroll": true,
|
|
|
|
"showHeader": true,
|
|
|
|
"sort": {
|
|
|
|
"col": 2,
|
|
|
|
"desc": true
|
|
|
|
},
|
|
|
|
"styles": [
|
|
|
|
{
|
|
|
|
"alias": "Country",
|
2022-07-18 12:30:09 +02:00
|
|
|
"align": "auto",
|
2018-10-12 21:20:07 +02:00
|
|
|
"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": "country_code",
|
|
|
|
"thresholds": [],
|
|
|
|
"type": "number",
|
|
|
|
"unit": "short"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"alias": "",
|
2022-07-18 12:30:09 +02:00
|
|
|
"align": "auto",
|
2018-10-12 21:20:07 +02:00
|
|
|
"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": false,
|
|
|
|
"mappingType": 1,
|
|
|
|
"pattern": "Time",
|
|
|
|
"thresholds": [],
|
|
|
|
"type": "hidden",
|
|
|
|
"unit": "short"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"alias": "Count",
|
2022-07-18 12:30:09 +02:00
|
|
|
"align": "auto",
|
2018-10-12 21:20:07 +02:00
|
|
|
"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": 0,
|
|
|
|
"mappingType": 1,
|
|
|
|
"pattern": "sum",
|
|
|
|
"thresholds": [],
|
|
|
|
"type": "number",
|
|
|
|
"unit": "short"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
{
|
2022-07-18 12:30:09 +02:00
|
|
|
"datasource": {
|
|
|
|
"type": "influxdb",
|
|
|
|
"uid": "${DS_INFLUXDB}"
|
|
|
|
},
|
2018-10-12 21:20:07 +02:00
|
|
|
"groupBy": [
|
|
|
|
{
|
|
|
|
"params": [
|
|
|
|
"country_code"
|
|
|
|
],
|
|
|
|
"type": "tag"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"measurement": "geodata",
|
|
|
|
"orderByTime": "ASC",
|
|
|
|
"policy": "default",
|
|
|
|
"refId": "A",
|
|
|
|
"resultFormat": "table",
|
|
|
|
"select": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"params": [
|
|
|
|
"count"
|
|
|
|
],
|
|
|
|
"type": "field"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"params": [],
|
|
|
|
"type": "sum"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"tags": [
|
|
|
|
{
|
|
|
|
"key": "country_code",
|
|
|
|
"operator": "=~",
|
|
|
|
"value": "/^*/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"condition": "AND",
|
|
|
|
"key": "host",
|
|
|
|
"operator": "=~",
|
|
|
|
"value": "/^$host$/"
|
2022-07-18 12:30:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"condition": "AND",
|
|
|
|
"key": "website",
|
|
|
|
"operator": "=~",
|
|
|
|
"value": "/^$website$/"
|
2018-10-12 21:20:07 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"title": "Country SUM",
|
|
|
|
"transform": "table",
|
2022-07-18 12:30:09 +02:00
|
|
|
"type": "table-old"
|
2018-10-12 21:20:07 +02:00
|
|
|
}
|
|
|
|
],
|
2022-07-18 12:30:09 +02:00
|
|
|
"refresh": "5s",
|
|
|
|
"schemaVersion": 36,
|
2018-10-12 21:20:07 +02:00
|
|
|
"style": "dark",
|
|
|
|
"tags": [],
|
|
|
|
"templating": {
|
|
|
|
"list": [
|
|
|
|
{
|
|
|
|
"current": {
|
2022-07-18 12:30:09 +02:00
|
|
|
"selected": false,
|
2018-10-12 21:49:52 +02:00
|
|
|
"text": "default",
|
|
|
|
"value": "default"
|
2018-10-12 21:20:07 +02:00
|
|
|
},
|
|
|
|
"hide": 0,
|
2022-07-18 12:30:09 +02:00
|
|
|
"includeAll": false,
|
|
|
|
"multi": false,
|
2018-10-12 21:20:07 +02:00
|
|
|
"name": "datasource",
|
|
|
|
"options": [],
|
|
|
|
"query": "influxdb",
|
2022-07-18 12:30:09 +02:00
|
|
|
"queryValue": "",
|
2018-10-12 21:20:07 +02:00
|
|
|
"refresh": 1,
|
|
|
|
"regex": "",
|
2022-07-18 12:30:09 +02:00
|
|
|
"skipUrlSync": false,
|
2018-10-12 21:20:07 +02:00
|
|
|
"type": "datasource"
|
|
|
|
},
|
|
|
|
{
|
2018-10-12 21:49:52 +02:00
|
|
|
"current": {},
|
2022-07-18 12:30:09 +02:00
|
|
|
"datasource": {
|
|
|
|
"type": "influxdb",
|
|
|
|
"uid": "${DS_INFLUXDB}"
|
|
|
|
},
|
|
|
|
"definition": "",
|
2018-10-12 21:20:07 +02:00
|
|
|
"hide": 0,
|
|
|
|
"includeAll": false,
|
|
|
|
"multi": false,
|
|
|
|
"name": "host",
|
|
|
|
"options": [],
|
|
|
|
"query": "SHOW TAG VALUES FROM \"geodata\" WITH KEY = \"host\"",
|
|
|
|
"refresh": 1,
|
|
|
|
"regex": "",
|
2022-07-18 12:30:09 +02:00
|
|
|
"skipUrlSync": false,
|
2018-10-12 21:20:07 +02:00
|
|
|
"sort": 0,
|
|
|
|
"tagValuesQuery": "",
|
|
|
|
"tagsQuery": "",
|
|
|
|
"type": "query",
|
|
|
|
"useTags": false
|
2022-07-18 12:30:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"current": {},
|
|
|
|
"datasource": {
|
|
|
|
"type": "influxdb",
|
|
|
|
"uid": "${DS_INFLUXDB}"
|
|
|
|
},
|
|
|
|
"definition": "SHOW TAG VALUES FROM \"geodata\" WITH KEY = \"website\"",
|
|
|
|
"hide": 0,
|
|
|
|
"includeAll": false,
|
|
|
|
"multi": false,
|
|
|
|
"name": "website",
|
|
|
|
"options": [],
|
|
|
|
"query": "SHOW TAG VALUES FROM \"geodata\" WITH KEY = \"website\"",
|
|
|
|
"refresh": 1,
|
|
|
|
"regex": "",
|
|
|
|
"skipUrlSync": false,
|
|
|
|
"sort": 0,
|
|
|
|
"type": "query"
|
2018-10-12 21:20:07 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"time": {
|
2022-07-18 12:30:09 +02:00
|
|
|
"from": "now-5m",
|
2018-10-12 21:20:07 +02:00
|
|
|
"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": "",
|
2022-07-18 12:30:09 +02:00
|
|
|
"title": "Nginx GEOIP Statistic",
|
2018-10-12 21:20:07 +02:00
|
|
|
"uid": "IYo4xyJmz",
|
2022-07-18 12:30:09 +02:00
|
|
|
"version": 5,
|
|
|
|
"weekStart": ""
|
|
|
|
}
|