address pr comment

switch to toml, not yaml in a toml 🤦

default disable

update examples
This commit is contained in:
Cody Lee
2022-01-18 09:50:23 -06:00
parent 6c6ae18b7c
commit 7d27b8bd52

View File

@@ -67,52 +67,51 @@
[datadog]
# How often to poll UniFi and report to Datadog.
interval: "2m"
interval = "2m"
# To disable this output plugin
disable: false
disable = true
# Datadog Custom Options
# address to talk to the datadog agent, by default this uses the local statsd UDP interface
# address: "..."
# address = "localhost:8125"
# namespace to prepend to all data
# namespace: ""
# namespace to prepend to all data, default is no additional prefix.
# namespace = ""
# tags to append to all data
# tags:
# - foo
# tags = [ "customer:abc_corp" ]
# max_bytes_per_payload is the maximum number of bytes a single payload will contain.
# The magic value 0 will set the option to the optimal size for the transport
# protocol used when creating the client: 1432 for UDP and 8192 for UDS.
# max_bytes_per_payload: 0
# max_bytes_per_payload = 0
# max_messages_per_payload is the maximum number of metrics, events and/or service checks a single payload will contain.
# This option can be set to `1` to create an unbuffered client.
# max_messages_per_payload: 0
# max_messages_per_payload = 0
# BufferPoolSize is the size of the pool of buffers in number of buffers.
# The magic value 0 will set the option to the optimal size for the transport
# protocol used when creating the client: 2048 for UDP and 512 for UDS.
# buffer_pool_size: 0
# buffer_pool_size = 0
# buffer_flush_interval is the interval after which the current buffer will get flushed.
# buffer_flush_interval: 0
# buffer_flush_interval = 0
# buffer_shard_count is the number of buffer "shards" that will be used.
# Those shards allows the use of multiple buffers at the same time to reduce
# lock contention.
# buffer_shard_count: 0
# buffer_shard_count = 0
# sender_queue_size is the size of the sender queue in number of buffers.
# The magic value 0 will set the option to the optimal size for the transport
# protocol used when creating the client: 2048 for UDP and 512 for UDS.
# sender_queue_size: 0
# sender_queue_size = 0
# write_timeout_uds is the timeout after which a UDS packet is dropped.
# write_timeout_uds: 5000
# write_timeout_uds = 5000
# receive_mode determines the behavior of the client when receiving to many
# metrics. The client will either drop the metrics if its buffers are
@@ -133,13 +132,13 @@
# using many goroutines, sending the same metrics at a very high
# volume. The goal is to not slow down the application at the cost of
# dropping metrics and having a lower max throughput.
# receive_mode: 0
# receive_mode = 0
# channel_mode_buffer_size is the size of the channel holding incoming metrics
# channel_mode_buffer_size: 0
# channel_mode_buffer_size = 0
# aggregation_flush_interval is the interval for the aggregator to flush metrics
# aggregation_flush_interval: 0
# aggregation_flush_interval = 0
# Unpoller has an optional web server. To turn it on, set enable to true. If you
# wish to use SSL, provide SSL cert and key paths. This interface is currently