mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-25 07:55:00 +08:00
1.5 KiB
1.5 KiB
Prometheus Nextcloud Exporter
A Prometheus exporter that collects metrics from your Nextcloud instance for monitoring and alerting.
How to install
See the Community Containers documentation for instructions on how to install this in your Nextcloud All-in-One setup.
What it does
- Monitors user activity, file counts, and storage usage
- Tracks system health, database size, and app statistics
- Exposes metrics on port
9205
for Prometheus to scrape - Uses Nextcloud's serverinfo API with secure token authentication
Use cases
- Monitor Nextcloud performance and capacity
- Set up alerts for system issues or resource limits
- Create dashboards showing usage trends and system health
- Track active users and storage growth over time
Prometheus Configuration
Add this to your prometheus.yml
to scrape the exporter:
scrape_configs:
- job_name: 'nextcloud'
scrape_interval: 90s
static_configs:
- targets: ['your-nextcloud-domain.com:9205']
metrics_path: /metrics
scheme: http
Replace your-nextcloud-domain.com
with your actual Nextcloud domain.
Notes
- Automatically configures the required serverinfo token for authentication between Nextcloud and the exporter.
- Compatible with Grafana for visualization (dashboard ID
20716
available). - https://grafana.com/grafana/dashboards/20716-nextcloud/
Repository
https://github.com/xperimental/nextcloud-exporter