nixos/telegraf: make example a bit more compact
commit0f84e08fcde535c4513b038220f57cb73924f85d
authorJörg Thalheim <joerg@thalheim.io>
dateWed 18 Nov 2020, 21:30 (6 years ago)
parent69caedc
nixos/modules/services/monitoring/telegraf.nix+6−10
@@ -38,17 +38,13 @@ in {
3838 description = "Extra configuration options for telegraf";
3939 type = settingsFormat.type;
4040 example = {
41− outputs = {
42− influxdb = {
43− urls = ["http://localhost:8086"];
44− database = "telegraf";
45− };
41+ outputs.influxdb = {
42+ urls = ["http://localhost:8086"];
43+ database = "telegraf";
4644 };
47− inputs = {
48− statsd = {
49− service_address = ":8125";
50− delete_timings = true;
51− };
45+ inputs.statsd = {
46+ service_address = ":8125";
47+ delete_timings = true;
5248 };
5349 };
5450 };