This is Golang Project for monitoring server with Curl hit & database Influx
-
First you must install influxd v1.2 & golang.
- InfluxDb v1.2 docs : https://archive.docs.influxdata.com/influxdb/v1.2/
- Golang docs : https://golang.org/doc/
-
Create db gomondb in influxdb.
-
Clone this project.
-
Go to cloned project directory.
example :
cd $your_dir/Go-Monitor
-
Rename config.yml.example file to config.yml
-
Input the influxdb configuration in the config.yml file
example:
database: influxdb: host: "localhot" port: "8080" username: "root" password: "my_pasword12" database: "gomondb"
-
Run Program
go run .
-
after program running, program auto insert data to database every 15 second. You can check data in you db gomondb.