A simple way to visualize the Node.js Machines inventory and perform a cyclical ping to collect network metrics with a full dockerize environment and a fancy dashboard.
- Docker and Docker-compose
- Node.js
- Download and digest the last inventory available in nodejs/build repository
- Simple NPM commands to manage the docker-compose infra
- Fancy dashboard
- Metrics are generated with Telegraf
- Metrics are stored in Influxdb
- Filter out non public Ips from the Node.js inventory
- Get the last inventory version by running
npm run start. This will generate the file./telegraf.confwith all the IPs and domains. - Start the Docker infra by running
npm run infra:start. This can take some minutes depending on your network - Go to http://localhost:3000/login
- Login it with user
adminand passadmin
- Login it with user
- Add new data source in http://localhost:3000/datasources/new as follows:
- Select
InfluxDb - HTTP url:
http://influxdb:8086 - InfluxDB Details Database:
telegraf - InfluxDB Details User:
root - Click in
Save & Test
- Select
- Import a fancy dashboard in http://localhost:3000/dashboard/import
- Add id
2690and pressLoad - (In the next page) Select
InfluxDBand pressImport
- Add id
Just run npm run infra:stop
- Stop the infra
npm run infra:stop - Update the hosts lists
npm run start - Start the infra
npm run infra:start
Make any change in src/telegraf.conf and this file is extended with the hosts ips
