mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 18:03:40 -05:00
23 lines
808 B
Django/Jinja
23 lines
808 B
Django/Jinja
[[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" ]
|