change ports
This commit is contained in:
@@ -10,14 +10,12 @@ alerting:
|
|||||||
alertmanagers:
|
alertmanagers:
|
||||||
- static_configs:
|
- static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
# We're not setting up Alertmanager in this config
|
|
||||||
# but you can add it later if needed
|
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
# Prometheus itself
|
# Prometheus itself
|
||||||
- job_name: 'prometheus'
|
- job_name: 'prometheus'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['localhost:9090']
|
- targets: ['prometheus:9090']
|
||||||
|
|
||||||
# Container metrics via cAdvisor
|
# Container metrics via cAdvisor
|
||||||
- job_name: 'cadvisor'
|
- job_name: 'cadvisor'
|
||||||
@@ -44,4 +42,4 @@ scrape_configs:
|
|||||||
# Alloy metrics
|
# Alloy metrics
|
||||||
- job_name: 'alloy'
|
- job_name: 'alloy'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['alloy:12345'] # Default metrics port for Alloy
|
- targets: ['alloy:12345']
|
||||||
|
|||||||
+3
-3
@@ -4,12 +4,12 @@ services:
|
|||||||
image: grafana/grafana:latest
|
image: grafana/grafana:latest
|
||||||
container_name: grafana
|
container_name: grafana
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:9010"]
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3003"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
ports:
|
ports:
|
||||||
- "9010:3000"
|
- "3003:3000"
|
||||||
environment:
|
environment:
|
||||||
- GF_SECURITY_ADMIN_USER=admin
|
- GF_SECURITY_ADMIN_USER=admin
|
||||||
- GF_SECURITY_ADMIN_PASSWORD=password # Change this in production
|
- GF_SECURITY_ADMIN_PASSWORD=password # Change this in production
|
||||||
@@ -62,7 +62,7 @@ services:
|
|||||||
image: prom/prometheus:latest
|
image: prom/prometheus:latest
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
ports:
|
ports:
|
||||||
- "9040:9090"
|
- "3004:9090"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
|
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
- ./config/prometheus-alerts.yml:/etc/prometheus/alerts.yml
|
- ./config/prometheus-alerts.yml:/etc/prometheus/alerts.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user