system-reporting/build.sh
Solomon Wagner 3ef0218f30 Initial commit
This is a system daemon for my home network that will report system
stats to my influxdb instance.
2025-02-07 15:39:39 -05:00

9 lines
268 B
Bash
Executable File

#!/bin/bash
set -x
INFLUX_HOST=${INFLUX_HOST:-"http://192.168.1.83:8086/write?db=metrics"}
HOST=$(hostname)
go build -ldflags "-X solow.xyz/system-reporting/config.Device=${HOST} -X solow.xyz/system-reporting/config.InfluxHost=${INFLUX_HOST}" ./system-reporting.go