mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-19 10:23:40 -05:00
Initial commit
This commit is contained in:
22
templates/telegraf/leader.conf.j2
Normal file
22
templates/telegraf/leader.conf.j2
Normal file
@@ -0,0 +1,22 @@
|
||||
[[processors.regex]]
|
||||
namepass = ["consul_health_checks"]
|
||||
|
||||
# Tag and field conversions defined in a separate sub-tables
|
||||
[[processors.regex.tags]]
|
||||
## Tag to change
|
||||
key = "check_name"
|
||||
## Regular expression to match on a tag value
|
||||
pattern = "^service: \\W(\\w+)\\W check$"
|
||||
## Matches of the pattern will be replaced with this string. Use ${1}
|
||||
## notation to use the text of the first submatch.
|
||||
replacement = "${1}"
|
||||
|
||||
[[inputs.consul]]
|
||||
address = "consul.service.consul:8500"
|
||||
scheme = "http"
|
||||
insecure_skip_verify = true
|
||||
metric_version = 2
|
||||
namedrop = ["traefik.http*","traefik.enable*","traefik.tcp*"]
|
||||
tagexclude = ["traefik.http*","traefik.enable*", "traefik.tcp*"]
|
||||
[inputs.consul.tagdrop]
|
||||
check_name = [ "Nomad Client*", "Nomad Server*", "Serf Health Status" ]
|
||||
Reference in New Issue
Block a user