This TIG Stack is done for monitoring a host using Docker containers of Telegraf, InfluxDB and Grafana.
- Clone repo
git clone https://github.com/igorrecioh/tig-docker-host.git
cd tig-docker-host
- Generate folder infraestructure
mkdir -p confs/{telegraf,telegraf/telegraf.d}
- Generate configuration files
docker run --rm telegraf telegraf config > ./confs/telegraf/telegraf.conf
- Set up Telegraf configuration as commented before
You can modify these settings as desired. Here you have an example of the simplest ones:
[[outputs.influxdb]]
urls = ["http://influxdb:8086"]
database = "telegraf"
retention_policy = ""
write_consistency = "any"
timeout = "5s"
username = "telegraf"
password = "password"
- Start the containers (-d option can be added for detached mode)
docker-compose up
- Setup grafana
- First go to http://localhost:3000
- The default value for user and password is admin/admin
- Once you login, you can change it
- Finally, go to Configuration --> Data Sources to set up the connection with InfluxDB
- Done! Now start creating your own Dashboards!
http://localhost:3000
http://influxdb:8086
https://github.com/ichasco/tick
https://github.com/nicolargo/docker-influxdb-grafana/
https://tsql.tech/a-self-deployable-tick-stack-for-ingesting-data-monitoring-and-alerting-for-any-service-including-sql-server/