a minimal tool for writing system metrics to an influxdb - written in golang
SYSMON_INTERVAL_MSthe interval for metrics collection, defaults to5000SYSMON_INFLUX_HOSTthe influx host to write toSYSMON_INFLUX_DBthe dateabase to write to, defaults togo-sysmonSYSMON_INFLUX_TAGthe tag value fornamein the timeseries
SYSMON_INFLUX_TAG=system1 SYSMON_INFLUX_HOST=192.168.1.60 ./go-sysmon
docker build -t go-sysmon .
docker run -e SYSMON_INFLUX_TAG=sys1 -e SYSMON_INFLUX_HOST=192.168.1.60 -it --rm go-sysmon