Add scrape option for host.docker.internal
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tobias Manske 2024-01-10 08:19:30 +01:00
parent d3704bf4da
commit bd750a2ae1
Signed by: tobias
GPG Key ID: 9164B527694A0709
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@ services:
- prometheus-docker-sd
- cadvisor
- node-exporter
extra_hosts:
- host.docker.internal:host-gateway
networks:
- default # send
- backend

View File

@ -20,7 +20,7 @@ services:
labels:
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=9091"
- "prometheus-scrape.hostname=tobiasmanske.de"
- "prometheus-scrape.hostname=host.docker.internal"
{% if deploy_traefik_fa %}
traefik-fa: