nixos/telegraf: make example a bit more compact

This commit is contained in:
Jörg Thalheim 2020-11-18 21:30:04 +01:00
parent 69caedcc42
commit 0f84e08fcd
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92

View File

@ -38,14 +38,11 @@ in {
description = "Extra configuration options for telegraf"; description = "Extra configuration options for telegraf";
type = settingsFormat.type; type = settingsFormat.type;
example = { example = {
outputs = { outputs.influxdb = {
influxdb = {
urls = ["http://localhost:8086"]; urls = ["http://localhost:8086"];
database = "telegraf"; database = "telegraf";
}; };
}; inputs.statsd = {
inputs = {
statsd = {
service_address = ":8125"; service_address = ":8125";
delete_timings = true; delete_timings = true;
}; };
@ -53,7 +50,6 @@ in {
}; };
}; };
}; };
};
###### implementation ###### implementation