monitoring
This commit is contained in:
54
docker-compose-mon.yml
Normal file
54
docker-compose-mon.yml
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
---
|
||||||
|
version: "3.1"
|
||||||
|
services:
|
||||||
|
wireguard:
|
||||||
|
image: lscr.io/linuxserver/wireguard
|
||||||
|
container_name: wireguard
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYS_MODULE
|
||||||
|
environment:
|
||||||
|
- PUID=$PUID
|
||||||
|
- PGID=$PGID
|
||||||
|
- TZ=Europe/London
|
||||||
|
- SERVERURL=$SERVERURL
|
||||||
|
- SERVERPORT=$SERVERPORT
|
||||||
|
- PEERS=$PEERS
|
||||||
|
- PEERDNS=auto
|
||||||
|
- ALLOWEDIPS=$ALLOWEDIPS
|
||||||
|
- INTERNAL_SUBNET=$INTERNAL_SUBNET
|
||||||
|
volumes:
|
||||||
|
- ./config:/config
|
||||||
|
- /lib/modules:/lib/modules
|
||||||
|
ports:
|
||||||
|
- $SERVERPORT:$SERVERPORT/udp
|
||||||
|
- 127.0.0.1:3000:3000
|
||||||
|
sysctls:
|
||||||
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
|
- net.ipv4.ip_forward=1
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana:8.2.1
|
||||||
|
container_name: grafana
|
||||||
|
volumes:
|
||||||
|
- grafana_data:/var/lib/grafana
|
||||||
|
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
|
||||||
|
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
||||||
|
environment:
|
||||||
|
- GF_SECURITY_ADMIN_USER=$ADMIN
|
||||||
|
- GF_SECURITY_ADMIN_PASSWORD=$PASSWORD
|
||||||
|
- GF_USERS_ALLOW_SIGN_UP=false
|
||||||
|
restart: unless-stopped
|
||||||
|
labels:
|
||||||
|
org.label-schema.group: "monitoring"
|
||||||
|
network_mode: "service:wireguard"
|
||||||
|
|
||||||
|
# DEBUG container wireguard
|
||||||
|
# alpine:
|
||||||
|
#image: alpine
|
||||||
|
#command: sleep infinity
|
||||||
|
#network_mode: "service:wireguard"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
grafana_data:
|
||||||
12
grafana/provisioning/dashboards/dashboard.yml
Normal file
12
grafana/provisioning/dashboards/dashboard.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
providers:
|
||||||
|
- name: 'Prometheus'
|
||||||
|
orgId: 1
|
||||||
|
folder: ''
|
||||||
|
type: file
|
||||||
|
disableDeletion: false
|
||||||
|
editable: true
|
||||||
|
allowUiUpdates: true
|
||||||
|
options:
|
||||||
|
path: /etc/grafana/provisioning/dashboards
|
||||||
1270
grafana/provisioning/dashboards/docker_containers.json
Normal file
1270
grafana/provisioning/dashboards/docker_containers.json
Normal file
File diff suppressed because it is too large
Load Diff
1441
grafana/provisioning/dashboards/docker_host.json
Normal file
1441
grafana/provisioning/dashboards/docker_host.json
Normal file
File diff suppressed because it is too large
Load Diff
3412
grafana/provisioning/dashboards/monitor_services.json
Normal file
3412
grafana/provisioning/dashboards/monitor_services.json
Normal file
File diff suppressed because it is too large
Load Diff
21
grafana/provisioning/datasources/datasources.yml
Normal file
21
grafana/provisioning/datasources/datasources.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
datasources:
|
||||||
|
- name: rpc-node
|
||||||
|
type: prometheus
|
||||||
|
access: proxy
|
||||||
|
orgId: 1
|
||||||
|
url: http://10.13.13.4:9090
|
||||||
|
basicAuth: false
|
||||||
|
isDefault: false
|
||||||
|
editable: true
|
||||||
|
|
||||||
|
- name: pokt-test
|
||||||
|
type: prometheus
|
||||||
|
access: proxy
|
||||||
|
orgId: 1
|
||||||
|
url: http://10.13.13.8:9090
|
||||||
|
basicAuth: false
|
||||||
|
isDefault: false
|
||||||
|
editable: true
|
||||||
|
|
||||||
Reference in New Issue
Block a user