-
-
Save skyrocknroll/dc487f9e00b7f44a3fd2e163d7d06ba6 to your computer and use it in GitHub Desktop.
Receive consul and nomad telemetry in influx in usable form
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
[agent] | |
interval = "10s" | |
round_interval = true | |
metric_batch_size = 1000 | |
metric_buffer_limit = 10000 | |
collection_jitter = "0s" | |
flush_interval = "10s" | |
flush_jitter = "3s" | |
precision = "" | |
debug = false | |
quiet = false | |
hostname = "" | |
omit_hostname = true | |
[[outputs.influxdb]] | |
urls = ["http://influxdb.service.consul:8086"] # required | |
database = "statsd" # required | |
retention_policy = "" | |
timeout = "5s" | |
[[inputs.statsd]] | |
service_address = ":8125" | |
delete_gauges = false | |
delete_counters = false | |
delete_sets = false | |
delete_timings = true | |
percentiles = [90] | |
metric_separator = "_" | |
templates = [ | |
"consul.consul.* measurement.field*", | |
"consul.memberlist.* measurement.field*", | |
"consul.runtime.* measurement.field*", | |
"consul.serf.* measurement.field*", | |
"consul.*.runtime.* measurement.hostname.field*", | |
"nomad.runtime.* measurement.field*", | |
"nomad.raft.* measurement.field*", | |
"nomad.broker.* measurement.field*", | |
"nomad.plan.* measurement.field*", | |
"nomad.worker.* measurement.field*", | |
"nomad.heartbeat.* measurement.field*", | |
"nomad.memberlist.* measurement.field*", | |
"nomad.nomad.* .measurement.field*", | |
"nomad.serf.queue.* measurement.field*", | |
"nomad.rpc.* measurement.field*", | |
"nomad.*.uptime measurement.hostname.field", | |
"nomad.*.nomad.* measurement.hostname.field*", | |
"nomad.*.client.allocs.* measurement.hostname.measurement.measurement.job.task-group.alloc-id.task.field*", | |
"nomad.*.client.host.cpu.* measurement.hostname.measurement.field.field.host-id.cpu-core.field", | |
"nomad.*.client.host.disk.* measurement.hostname.measurement.field.field.host-id.device-name.field", | |
"nomad.*.client.host.memory.* measurement.hostname.measurement.field.field.host-id.field", | |
"nomad.*.runtime.* measurement.hostname.field*" | |
] | |
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