Config by Confd with ssm backend
This image its pre configured to get the secrets from ssm. you can use directly from environment vars, but its not the best practice for secrets. If you want to doy it:
- change the docker-entrypoint and deelete the backend flag for confd.
- update the confd template reemplace getv for getenv as the others env vars in this template.
Environment viarables defined in the confd template in confd/template/prometheus.yml
API_TARGET_URL = api.yourapp.io:9000 AWS_REGION (for ssm backend)
- SCRAPE_INTERVAL_SECS (default 40)
- EVAL_INTERVAL_SECS (default 70)
- AWS_REGION (default eu-west-1)
- /path/to/your/prometheus/access_key
- /path/to/your/prometheus/secret_key
- /path/to/your/prometheus/barer_token