Update README.md

This commit is contained in:
Alexey Nizhegolenko 2018-10-12 22:16:00 +03:00 committed by GitHub
parent 27b24e3336
commit 8f979d170f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,13 +19,15 @@ Json format that script send to InfluxDB looks like:
},
'measurement': 'geo_cube',
'tags': {
'host': 'cube'
'geohash': 'u8mb76rpv69r',
'country_code': 'UA'
}
}
]
```
As you can see there is two tags fields, so you can build dashboards using geohash (with a point on the map) or country code, also count for any metric equal 1. This script don't parse log file from the begining but parse it line by line after runing. So you can build dashboards using **count** of geohashes or country codes after some time will pass.
As you can see there is three tags fields, so you can build dashboards using geohash (with a point on the map) or country code, or build dashboards with variables based on host name tag. A count for any metric equal 1. This script don't parse log file from the begining but parse it line by line after runing. So you can build dashboards using **count** of geohashes or country codes after some time will pass.
You can see the example Grafana dashboard in geomap.json file.
### Tech