Nextcloud prometeus exporter
This commit is contained in:
parent
fc106060b7
commit
334331e4a9
4 changed files with 34 additions and 7 deletions
|
@ -92,9 +92,20 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- "docker.group=monitoring"
|
- "docker.group=monitoring"
|
||||||
|
|
||||||
|
# https://github.com/xperimental/nextcloud-exporter
|
||||||
|
nextcloud-exporter:
|
||||||
|
image: ghcr.io/xperimental/nextcloud-exporter
|
||||||
|
networks:
|
||||||
|
- monitoring
|
||||||
|
environment:
|
||||||
|
- NEXTCLOUD_SERVER=${NEXTCLOUD_URL}
|
||||||
|
- NEXTCLOUD_AUTH_TOKEN=${NEXTCLOUD_MONITORING_AUTH_TOKEN}
|
||||||
|
- NEXTCLOUD_LISTEN_ADDRESS=:9205
|
||||||
|
labels:
|
||||||
|
- "docker.group=monitoring"
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# here starts data collection
|
# here starts data collection of local host
|
||||||
|
|
||||||
telegraf_host:
|
telegraf_host:
|
||||||
image: telegraf:${TELEGRAF_VERSION}
|
image: telegraf:${TELEGRAF_VERSION}
|
||||||
|
|
|
@ -35,3 +35,8 @@ scrape_configs:
|
||||||
- job_name: "grafana"
|
- job_name: "grafana"
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["grafana:3000"]
|
- targets: ["grafana:3000"]
|
||||||
|
|
||||||
|
- job_name: 'nextcloud'
|
||||||
|
scrape_interval: 60s
|
||||||
|
static_configs:
|
||||||
|
- targets: ['nextcloud-exporter:9205']
|
||||||
|
|
11
nextcloud/update-nc.sh
Executable file
11
nextcloud/update-nc.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#docker compose build --pull
|
||||||
|
#docker compose pull --ignore-buildable
|
||||||
|
#docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ status
|
||||||
|
#docker compose up -d
|
||||||
|
#watch docker compose ps
|
||||||
|
docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ upgrade
|
||||||
|
docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ maintenance:repair
|
||||||
|
docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ db:add-missing-indices
|
||||||
|
docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ db:add-missing-columns
|
||||||
|
docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ db:add-missing-primary-keys
|
||||||
|
docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ status
|
Loading…
Reference in a new issue