/Go-Monitor

This is Golang Project for monitoring server with Curl hit & database Influx v1.2

Primary LanguageGo

Go-Monitor

This is Golang Project for monitoring server with Curl hit & database Influx

How To Run

  • First you must install influxd v1.2 & golang.

  • 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.

    • List table auto create in db gomondb : loadavg, diskusage, memory, cpu
    • below, log when program running : Log program run

Monit With Grafana (Preview)

Prewie in grafana 1 Prewie in grafana 2