Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
f061d8720c | ||
|
ede996af6e |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
data-graphana
|
||||||
|
data-influx
|
||||||
|
data-prometheus
|
70
docker-compose.yaml
Normal file
70
docker-compose.yaml
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana:7.0.0
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- ./data-graphana:/var/lib/grafana
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
image: prom/prometheus:latest
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 9090:9090
|
||||||
|
command:
|
||||||
|
- --config.file=/etc/prometheus/prometheus.yml
|
||||||
|
volumes:
|
||||||
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
||||||
|
- ./data-prometheus:/prometheus
|
||||||
|
depends_on:
|
||||||
|
- cadvisor
|
||||||
|
|
||||||
|
cadvisor:
|
||||||
|
image: gcr.io/google-containers/cadvisor:latest
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 8090:8080
|
||||||
|
volumes:
|
||||||
|
- /:/rootfs:ro
|
||||||
|
- /var/run:/var/run:rw
|
||||||
|
- /sys:/sys:ro
|
||||||
|
- /var/lib/docker/:/var/lib/docker:ro
|
||||||
|
|
||||||
|
nextcloud-exporter:
|
||||||
|
image: xperimental/nextcloud-exporter:v0.2.0
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 9205:9205
|
||||||
|
environment:
|
||||||
|
# - NEXTCLOUD_LISTEN_ADDRESS=":9205"
|
||||||
|
- NEXTCLOUD_SERVERINFO_URL=http://moma:8080
|
||||||
|
- NEXTCLOUD_USERNAME=stefan
|
||||||
|
- NEXTCLOUD_PASSWORD=iwidTs33
|
||||||
|
|
||||||
|
node-exporter:
|
||||||
|
image: prom/node-exporter:v1.0.0
|
||||||
|
ports:
|
||||||
|
- 9100:9100
|
||||||
|
|
||||||
|
# influxdb:
|
||||||
|
# image: influxdb:1.8.0
|
||||||
|
# restart: always
|
||||||
|
# ports:
|
||||||
|
# - 8086:8086
|
||||||
|
# volumes:
|
||||||
|
# - ./data-influx:/var/lib/influxdb
|
||||||
|
# environment:
|
||||||
|
# - INFLUXDB_DB=fritzbox
|
||||||
|
# - INFLUXDB_WRITE_USER=stefan
|
||||||
|
# - INFLUXDB_WRITE_USER_PASSWORD=iwidTs33
|
||||||
|
#
|
||||||
|
# fritzcollectd:
|
||||||
|
# image: gizmoh/fritzcollectd
|
||||||
|
# restart: always
|
||||||
|
# ports:
|
||||||
|
# - 25826:25826
|
||||||
|
# volumes:
|
||||||
|
# - ./fritzcollectd.conf:/etc/collectd/collectd.conf.d/fritz.conf:ro
|
17
fritzcollectd.conf
Normal file
17
fritzcollectd.conf
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<Plugin network>
|
||||||
|
Server "influxdb" "25826"
|
||||||
|
</Plugin>
|
||||||
|
|
||||||
|
<Plugin python>
|
||||||
|
Import "fritzcollectd"
|
||||||
|
|
||||||
|
<Module fritzcollectd>
|
||||||
|
Address "192.168.0.1"
|
||||||
|
Port 49000
|
||||||
|
User "stefan"
|
||||||
|
Password "j5HTBYWFc3cgcDP_Yf8k"
|
||||||
|
Hostname "FritzBox"
|
||||||
|
Instance "1"
|
||||||
|
Verbose "False"
|
||||||
|
</Module>
|
||||||
|
</Plugin>
|
14
prometheus.yml
Normal file
14
prometheus.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
scrape_configs:
|
||||||
|
- job_name: cadvisor
|
||||||
|
scrape_interval: 10s
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- moma:8090
|
||||||
|
- job_name: nextcloud
|
||||||
|
scrape_interval: 90s
|
||||||
|
static_configs:
|
||||||
|
- targets: [moma:9205]
|
||||||
|
- job_name: 'node-exporter'
|
||||||
|
scrape_interval: 90s
|
||||||
|
static_configs:
|
||||||
|
- targets: [moma:9100]
|
Loading…
x
Reference in New Issue
Block a user