Skip to content

Instantly share code, notes, and snippets.

@leafnode
Created July 4, 2019 12:53
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 leafnode/e3816897e75182af4bdf0b55187115df to your computer and use it in GitHub Desktop.
Save leafnode/e3816897e75182af4bdf0b55187115df to your computer and use it in GitHub Desktop.
Extract the default Prometheus config from the Docker image
#!/bin/bash
docker run --entrypoint='' -ti quay.io/prometheus/prometheus:latest /bin/cat /etc/prometheus/prometheus.yml > prometheus.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment