-
This commit is contained in:
14
README.md
Normal file
14
README.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
```bash
|
||||||
|
mkdir -p ./v/grafana
|
||||||
|
|
||||||
|
sudo ufw allow in on br-monitor
|
||||||
|
sudo ufw allow out on br-monitor
|
||||||
|
|
||||||
|
autossh -M 20002 -N \
|
||||||
|
-L 127.0.0.1:3000:127.0.0.1:3000 \
|
||||||
|
-L 127.0.0.1:6060:127.0.0.1:6060 \
|
||||||
|
-R 10.0.10.1:6379:127.0.0.1:6379 \
|
||||||
|
gcp-tunnel
|
||||||
|
|
||||||
|
curl 'http://localhost:6060/api/v1/metrics?service=redis&t0=0&t1=1798732800' | jq
|
||||||
|
```
|
||||||
@@ -3,6 +3,6 @@ port=6060
|
|||||||
db_path=./data/metrics.duckdb
|
db_path=./data/metrics.duckdb
|
||||||
|
|
||||||
[redis]
|
[redis]
|
||||||
host=host.docker.internal
|
host=10.0.10.1
|
||||||
port=6379
|
port=6379
|
||||||
; password=boingboing
|
; password=boingboing
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ services:
|
|||||||
build: ./datasource
|
build: ./datasource
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:6060:6060
|
- 127.0.0.1:6060:6060
|
||||||
|
networks:
|
||||||
|
- monitor
|
||||||
volumes:
|
volumes:
|
||||||
- ./datasource/config.ini:/app/config.ini:ro
|
- ./datasource/config.ini:/app/config.ini:ro
|
||||||
- ./v/datasource/data:/app/data
|
- ./v/datasource/data:/app/data
|
||||||
@@ -17,10 +19,22 @@ services:
|
|||||||
- GF_SECURITY_ADMIN_PASSWORD=boingboing
|
- GF_SECURITY_ADMIN_PASSWORD=boingboing
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:3000:3000
|
- 127.0.0.1:3000:3000
|
||||||
|
networks:
|
||||||
|
- monitor
|
||||||
volumes:
|
volumes:
|
||||||
- ./v/grafana:/var/lib/grafana
|
- ./v/grafana:/var/lib/grafana
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
monitor:
|
||||||
|
driver: bridge
|
||||||
|
driver_opts:
|
||||||
|
com.docker.network.bridge.name: br-monitor
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 10.0.10.0/24
|
||||||
|
gateway: 10.0.10.1
|
||||||
|
|
||||||
# redis:
|
# redis:
|
||||||
# image: redis:8.0.3-alpine3.21
|
# image: redis:8.0.3-alpine3.21
|
||||||
# ports:
|
# ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user