Added an optional scrape_auth secret for authenticating scrapes of containers that opt in via prometheus.io/auth labels, no longer reusing the basic_auth secret meant for Prometheus/Loki writes. Made usernames for both write endpoints and authenticated scraping configurable in .env.
14 lines
216 B
YAML
14 lines
216 B
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
secrets:
|
|
- source: scrape_auth
|
|
target: scrape_auth
|
|
|
|
secrets:
|
|
scrape_auth:
|
|
external: true
|
|
name: ${STACK_NAME}_scrape_auth_${SECRET_SCRAPE_AUTH_VERSION}
|