Skip to content

Instantly share code, notes, and snippets.

@jamesmoriarty
Last active October 25, 2019 05:49
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 jamesmoriarty/d09b366d336c6164b3bac2798eaba256 to your computer and use it in GitHub Desktop.
Save jamesmoriarty/d09b366d336c6164b3bac2798eaba256 to your computer and use it in GitHub Desktop.
Manifest with heredoc config.file on start.
command:
- /bin/sh
- -c
- |
cat << EOF > blackbox.yml && /bin/blackbox_exporter --config.file=blackbox.yml
modules:
http_2xx:
prober: http
http:
tls_config:
insecure_skip_verify: true
preferred_ip_protocol: "ip4" # defaults to "ip6"
ip_protocol_fallback: false # no fallback to "ip6"
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment