Initial generalization of source workers

This commit is contained in:
2022-11-01 01:36:14 -07:00
parent 82906adca2
commit ed3cb89325
7 changed files with 452 additions and 164 deletions

View File

@@ -1,16 +1,29 @@
[sources.chrony]
enabled = true
poll_interval = 10
timeout = 1
measurement_prefix = "chrony."
tracking_measurement = "tracking"
sources_measurement = "sources"
[sources]
[sources.chrony]
enabled = true
# host = "127.0.0.1:323" # default; port is required
tracking_interval = 10
sources_interval = 60
timeout = 1
measurement_prefix = "chrony."
tracking_measurement = "tracking"
sources_measurement = "sources"
[sources.hwmon]
enabled = true
interval = 60
measurement_prefix = "hwmon."
[sources.hwmon.sensors.temp1]
name = "hwmon0"
sensor = "temp1_input"
[influxdb]
# url = "http://localhost:8086" # defaults to localhost
url = "http://localhost:8086"
org = "default"
bucket = "default"
token = ""
[influxdb.tags]
# host = "localhost" # defaults to gethostname()
# host = "qubit" # default is the local hostname
# arbitrary = "tags" # are allowed