-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metrics: provide separate docker-compose files for OSX and Linux (#2397)
* metrics: provide separate docker-compose files for OSX and Linux * Update dashboards/README.md Co-authored-by: Marco Munizaga <git@marcopolo.io> --------- Co-authored-by: Marco Munizaga <git@marcopolo.io>
- Loading branch information
1 parent
4fd6200
commit d616720
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: "3.7" | ||
services: | ||
prometheus: | ||
image: prom/prometheus:latest | ||
ports: | ||
- "9090:9090" | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml | ||
network_mode: "host" | ||
extra_hosts: # define a host.docker.internal alias, so we can use the same datasources.yml and prometheus.yml on Linux and OSX | ||
- "host.docker.internal:127.0.0.1" | ||
grafana: | ||
image: grafana/grafana:latest | ||
depends_on: | ||
- prometheus | ||
ports: | ||
- "3000:3000" | ||
network_mode: "host" | ||
extra_hosts: # define a host.docker.internal alias, so we can use the same datasources.yml and prometheus.yml on Linux and OSX | ||
- "host.docker.internal:127.0.0.1" | ||
environment: | ||
- GF_AUTH_DISABLE_LOGIN_FORM=true | ||
- GF_AUTH_ANONYMOUS_ENABLED=true | ||
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin | ||
volumes: | ||
- ./dashboard.yml:/etc/grafana/provisioning/dashboards/main.yml | ||
- ./datasources.yml:/etc/grafana/provisioning/datasources/prom.yml | ||
- ./autonat/autonat.json:/var/lib/grafana/dashboards/autonat.json | ||
- ./autorelay/autorelay.json:/var/lib/grafana/dashboards/autorelay.json | ||
- ./eventbus/eventbus.json:/var/lib/grafana/dashboards/eventbus.json | ||
- ./holepunch/holepunch.json:/var/lib/grafana/dashboards/holepunch.json | ||
- ./identify/identify.json:/var/lib/grafana/dashboards/identify.json | ||
- ./relaysvc/relaysvc.json:/var/lib/grafana/dashboards/relaysvc.json | ||
- ./swarm/swarm.json:/var/lib/grafana/dashboards/swarm.json |
File renamed without changes.