nixos/telegraf: make example a bit more compact
This commit is contained in:
parent
69caedcc42
commit
0f84e08fcd
@ -38,17 +38,13 @@ 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 = {
|
inputs.statsd = {
|
||||||
statsd = {
|
service_address = ":8125";
|
||||||
service_address = ":8125";
|
delete_timings = true;
|
||||||
delete_timings = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user