a minimal tool for writing system metrics to an influxdb - written in golang
SYSMON_INTERVAL_MS
the interval for metrics collection, defaults to5000
SYSMON_INFLUX_HOST
the influx host to write toSYSMON_INFLUX_DB
the dateabase to write to, defaults togo-sysmon
SYSMON_INFLUX_TAG
the tag value forname
in 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