Loading deploy/.env +5 −0 Original line number Diff line number Diff line Loading @@ -3,10 +3,15 @@ STORAGE_TSDB_RETENTION_SIZE=8GB PORT=9090 DATA_PATH=/prometheus CONFIG_PATH=/etc/prometheus INITIAL_CONFIG_FILENAME=prometheus-config.yml FINAL_CONFIG_FILENAME=prometheus.yml ENTRYPOINT_FILENAME=entrypoint.sh DATA_VOL_NAME=prometheus-vol NODE_RULES_NAME=node_rules TRAEFIK_ENTRYPOINT=http TRAEFIK_SUBDOMAIN=prometheus PUBLIC_HOSTNAME=change.me TRAEFIK_AUTH=user:$apr1$md5password deploy/docker-compose.tmpl.yml +6 −4 Original line number Diff line number Diff line Loading @@ -52,10 +52,12 @@ services: update_config: delay: ${UPDATE_DELAY:-1m} labels: traefik.frontend.auth.basic.users: ${UI_AUTH} traefik.frontend.rule: Host:${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME} traefik.backend: prometheus traefik.port: '${PORT}' traefik.enable: 'true' traefik.http.routers.prometheus.entrypoints: ${TRAEFIK_ENTRYPOINT} traefik.http.routers.prometheus.rule: Host(`${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME}`) traefik.http.middlewares.prometheus-auth.basicauth.users: ${TRAEFIK_AUTH} traefik.http.routers.prometheus.middlewares: prometheus-auth traefik.http.services.prometheus.loadbalancer.server.port: ${PORT} networks: metric-net: Loading Loading
deploy/.env +5 −0 Original line number Diff line number Diff line Loading @@ -3,10 +3,15 @@ STORAGE_TSDB_RETENTION_SIZE=8GB PORT=9090 DATA_PATH=/prometheus CONFIG_PATH=/etc/prometheus INITIAL_CONFIG_FILENAME=prometheus-config.yml FINAL_CONFIG_FILENAME=prometheus.yml ENTRYPOINT_FILENAME=entrypoint.sh DATA_VOL_NAME=prometheus-vol NODE_RULES_NAME=node_rules TRAEFIK_ENTRYPOINT=http TRAEFIK_SUBDOMAIN=prometheus PUBLIC_HOSTNAME=change.me TRAEFIK_AUTH=user:$apr1$md5password
deploy/docker-compose.tmpl.yml +6 −4 Original line number Diff line number Diff line Loading @@ -52,10 +52,12 @@ services: update_config: delay: ${UPDATE_DELAY:-1m} labels: traefik.frontend.auth.basic.users: ${UI_AUTH} traefik.frontend.rule: Host:${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME} traefik.backend: prometheus traefik.port: '${PORT}' traefik.enable: 'true' traefik.http.routers.prometheus.entrypoints: ${TRAEFIK_ENTRYPOINT} traefik.http.routers.prometheus.rule: Host(`${TRAEFIK_SUBDOMAIN}.${PUBLIC_HOSTNAME}`) traefik.http.middlewares.prometheus-auth.basicauth.users: ${TRAEFIK_AUTH} traefik.http.routers.prometheus.middlewares: prometheus-auth traefik.http.services.prometheus.loadbalancer.server.port: ${PORT} networks: metric-net: Loading