Skip to content

Instantly share code, notes, and snippets.

@LeoCavaille
Created February 4, 2015 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeoCavaille/f86117909e0022ac01ff to your computer and use it in GitHub Desktop.
Save LeoCavaille/f86117909e0022ac01ff to your computer and use it in GitHub Desktop.
Using Anchors in dd-agent YAML check configs
defaults: &DEFAULTS
collect_response_time: true
timeout: 42
tags:
- "test:tag"
skip_event: true
init_config:
# Change default path of trusted certificates
# ca_certs: /etc/ssl/certs/ca-certificates.crt
instances:
- <<: *DEFAULTS
name: service 1
url: http://google.com
- <<: *DEFAULTS
name: service 2
url: http://datadog.com
- <<: *DEFAULTS
name: service 3
url: http://linuxfr.org
@VynceMontgomery
Copy link

perfect, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment