diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2020-11-18 21:30:04 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2020-11-18 21:41:58 +0100 |
commit | 0f84e08fcde535c4513b038220f57cb73924f85d (patch) | |
tree | 7e78a9b85683a81b525e189ce8fbdc012f48dc34 | |
parent | 69caedcc4240f1a70d28cec6bf2c67d0f2ade8a0 (diff) |
nixos/telegraf: make example a bit more compact
-rw-r--r-- | nixos/modules/services/monitoring/telegraf.nix | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/nixos/modules/services/monitoring/telegraf.nix b/nixos/modules/services/monitoring/telegraf.nix index 4bfede2e37ba3..b341a9005c2a4 100644 --- a/nixos/modules/services/monitoring/telegraf.nix +++ b/nixos/modules/services/monitoring/telegraf.nix @@ -38,17 +38,13 @@ in { description = "Extra configuration options for telegraf"; type = settingsFormat.type; example = { - outputs = { - influxdb = { - urls = ["http://localhost:8086"]; - database = "telegraf"; - }; + outputs.influxdb = { + urls = ["http://localhost:8086"]; + database = "telegraf"; }; - inputs = { - statsd = { - service_address = ":8125"; - delete_timings = true; - }; + inputs.statsd = { + service_address = ":8125"; + delete_timings = true; }; }; }; |