peshming/config.toml.sample
Jan Christian Grünhage 1c1a31dbec chore!: refactor config file format
There are substructs for the different parts of the config now, as a
preparation of a larger refactor coming in.

BREAKING CHANGE: config file format changed
2022-03-17 00:16:29 +01:00

17 lines
583 B
Plaintext

# Defines where the metrics will be served.
# Takes the format IPv4:port or [IPv6]:port
listener = "[::]:9898"
# Array of hosts to ping. Currently only supports plain IPs, no DNS names.
# The format here is `"host" = interval in milliseconds`, so these examples
# will ping the primary and secondary IP of cloudflare's 1.1.1.1 DNS service
# every 500ms, or twice per second.
[ping.hosts]
"1.1.1.1" = 500
"1.0.0.1" = 500
# Configure logging is also possible here instead of using the CLI. If both are
# specified, the more verbose of the two will be used.
# [log]
# level = "ERROR"