monitoring

This commit is contained in:
cventastic
2021-12-29 20:37:01 +01:00
parent b023484aee
commit 93a0c059cb
6 changed files with 6210 additions and 0 deletions

54
docker-compose-mon.yml Normal file
View 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:

View 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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View 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