some good readme is needed :)
required things you do beforehand
- create influxdb nginxproxymanagergraf
- Create username and password for nginxproxymanagergraf
- get your GeoLite2-City.mmdb google is your friend upload it somewhere where you'll find it
- Copy http_top.conf into your nginx proxy manager /data/nginx/custom/ folder. If the folder custom does not exist, please create it.
- For each of your proxy hosts on Nginx Proxy Manager, add a line to the advanced tab - "access_log /data/logs/NAME-json.log json_analytics;" replace NAME with the name you want to use.
- Start the docker container
- Add data source into grafana
- Import the dashboard file and set the new data source
start docker on the same host where nginx proxy manger runs
docker run --name npmgraf -it
-v /home/docker/nginx-proxy-manager/data/logs:/logs \
-v /home/docker/nginx-proxy-manager/GeoLite2-City.mmdb:/GeoLite2-City.mmdb \
-e HOME_IPS="192.168.0.*\|192.168.10.*" \
-e INFLUX_USER=admin -e INFLUX_PW=password \
-e INFLUX_DB=nginxproxymanagergraf \
-e INFLUX_HOST=192.168.0.189 \
-e INFLUX_PORT=8086 \
makarai/nginx-proxy-manager-graf
world map
SELECT count("IP") AS "counts" FROM "ReverseProxyConnections" WHERE $timeFilter GROUP BY "latitude", "longitude", "IP"
Obviously I'd appreciate a grafana Wiz to add some things here :) first time i worked with grafana.
