Skip to content

Commit 7ca3144

Browse files
committed
Updated grafana configuration
1 parent c511b49 commit 7ca3144

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

docker-compose.prod.yml

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ services:
5353
- prometheus
5454
networks:
5555
- monitoring
56+
volumes:
57+
- grafana_storage:/var/lib/grafana
5658

5759
prometheus:
5860
image: prom/prometheus:latest
@@ -105,6 +107,7 @@ services:
105107
volumes:
106108
my_database:
107109
nginx_secrets:
110+
grafana_storage:
108111

109112
networks:
110113
api_db:

docker-compose.yml

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ services:
6363
- prometheus
6464
networks:
6565
- monitoring
66+
volumes:
67+
- grafana_storage:/var/lib/grafana
6668

6769
prometheus:
6870
image: prom/prometheus:latest
@@ -107,6 +109,7 @@ services:
107109

108110
volumes:
109111
db:
112+
grafana_storage:
110113

111114
networks:
112115
api_db:

nginx/nginx-conf-dev.conf

+6
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@ server {
2323
resolver 127.0.0.11;
2424
}
2525

26+
# location ~ ^/prometheus(.*)$ {
27+
# proxy_pass http://prometheus:9090$1;
28+
# proxy_redirect / /prometheus/;
29+
# resolver 127.0.0.11;
30+
# }
31+
2632
}

0 commit comments

Comments
 (0)