Skip to content

Commit 06bf10f

Browse files
committed
added platform to cadvisor - still displaying erro
1 parent 6e8e352 commit 06bf10f

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

examples/docker/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ services:
8585
image: gcr.io/cadvisor/cadvisor:latest
8686
container_name: cadvisor
8787
privileged: true
88+
platform: linux/amd64
8889
ports:
8990
- 8080:8080
9091
volumes:
@@ -119,7 +120,7 @@ services:
119120
- 2999:3000
120121
volumes:
121122
# Share the named volume with the grafana container
122-
- grafana-dir:/etc/grafana
123+
- ./grafana/datasources:/etc/grafana/provisioning/datasources
123124
environment:
124125
GF_PATHS_CONFIG: /etc/grafana/grafana.ini
125126
GF_SECURITY_ALLOW_EMBEDDING: 'true'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: 1
2+
3+
datasources:
4+
- name: Prometheus
5+
type: prometheus
6+
access: proxy
7+
url: http://prometheus-service.default.svc:9090

examples/docker/prometheus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ scrape_configs:
3535
# - job_name: 'orders'
3636
# static_configs:
3737
# - targets: ['localhost:7777']
38+

0 commit comments

Comments
 (0)