-
-
Save alixander/5e56156a48cf3c3af59ad0137deb8cb9 to your computer and use it in GitHub Desktop.
Simple starter config for Telegraf to collect Statsd metrics and send to Terrastruct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global_tags] | |
# dc = "us-east-1" # will tag all metrics with dc=us-east-1 | |
[agent] | |
interval = "10s" | |
round_interval = true | |
metric_batch_size = 1000 | |
metric_buffer_limit = 10000 | |
collection_jitter = "0s" | |
flush_interval = "10s" | |
flush_jitter = "0s" | |
precision = "" | |
hostname = "" | |
omit_hostname = false | |
[[outputs.http]] | |
url = "https://ingest.terrastruct.com" | |
timeout = "5s" | |
method = "POST" | |
insecure_skip_verify = false | |
data_format = "json" | |
content_encoding = "identity" | |
[outputs.http.headers] | |
Content-Type = "application/json" | |
Authorization = "Bearer <api-key>" | |
idle_conn_timeout = "0" | |
[[inputs.statsd]] | |
protocol = "udp" | |
service_address = ":8125" | |
delete_gauges = true | |
delete_counters = true | |
delete_sets = true | |
delete_timings = true | |
percentiles = [50.0, 90.0, 99.0, 100.0] | |
metric_separator = "_" | |
parse_data_dog_tags = false | |
allowed_pending_messages = 10000 | |
percentile_limit = 1000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment