Configure custom grafana server URL

This commit is contained in:
Prathamesh Musale 2024-01-17 12:47:49 +05:30
parent d0b15af840
commit 1dc79fb202
3 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,8 @@ services:
grafana:
image: grafana/grafana:10.2.2
restart: always
environment:
GF_SERVER_ROOT_URL: ${GF_SERVER_ROOT_URL}
volumes:
- ../config/monitoring/grafana/provisioning:/etc/grafana/provisioning
- ../config/monitoring/grafana/dashboards:/etc/grafana/dashboards

View File

@ -140,6 +140,10 @@ Set the following env variables in the deployment env config file (`monitoring-d
# External ETH RPC endpoint (filecoin)
# (Optional, default: https://api.node.glif.io/rpc/v1)
CERC_FIL_RPC_ENDPOINT=
# Grafana server host URL (used in various links in alerts, etc.)
# (Optional, default: http://localhost:3000)
GF_SERVER_ROOT_URL=
```
## Start the stack

View File

@ -130,6 +130,10 @@ Set the following env variables in the deployment env config file (`monitoring-w
```bash
# Infura key to be used
CERC_INFURA_KEY=
# Grafana server host URL to be used
# (Optional, default: http://localhost:3000)
GF_SERVER_ROOT_URL=
```
## Start the stack