Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the ports for Prometheus and Grafana #52

Merged
merged 1 commit into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ services:
grafana:
image: grafana/grafana:latest
container_name: grafana
network_mode: host
ports:
- '3000:3000'
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
Expand All @@ -35,7 +36,8 @@ services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
network_mode: host
ports:
- '9090:9090'
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ datasources:
type: prometheus
access: proxy
orgId: 1
url: http://127.0.0.1:9090
url: http://prometheus:9090
password:
user:
database:
Expand Down
10 changes: 5 additions & 5 deletions docker-compose/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ scrape_configs:
scrape_interval: 5s
static_configs:
- targets:
- 127.0.0.1:9090
- prometheus:9090
- job_name: builds
scrape_interval: 5s
static_configs:
- targets:
- 127.0.0.1:8282
- gitlab-ci-build-statuses:8282
- job_name: nodeexporter
scrape_interval: 5s
static_configs:
- targets:
- 127.0.0.1:9100
- node-exporter:9100
- job_name: cadvisor
scrape_interval: 5s
static_configs:
- targets:
- 127.0.0.1:8081
- cadvisor:8081
- job_name: grafana
scrape_interval: 5s
static_configs:
- targets:
- 127.0.0.1:3000
- grafana:3000