Nextcloud Exporter
Install the Prometheus exporter for Nextcloud from its release package as a systemd service.
nextcloud-exporter.sh installs the xperimental/nextcloud-exporter release
package and runs it against one Nextcloud server.
| Run it | On any system that can reach your Nextcloud server. The script has no Proxmox VE host check |
| Supported OS | Debian or Ubuntu (require_debian_like: Alpine and systems without apt-get exit with code 238) |
| Port | 9205 |
| Source | tools/addon/nextcloud-exporter.sh |
Run
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/nextcloud-exporter.sh)"Prompts
| Prompt | Answer |
|---|---|
Install Nextcloud-Exporter? (y/N): | y installs. Anything else exits |
Enter URL of Nextcloud, example: (http://127.0.0.1:8080): | Written as NEXTCLOUD_SERVER |
Enter Nextcloud auth token (press Enter to use username/password instead): | Hidden input, written as NEXTCLOUD_AUTH_TOKEN. Empty asks the next two questions |
Enter Nextcloud username: / Enter Nextcloud password: | Only without a token. Written as NEXTCLOUD_USERNAME and NEXTCLOUD_PASSWORD |
Query additional info for apps? [Y/n]: | n sets NEXTCLOUD_INFO_APPS=false. Default is true |
Query update information? [Y/n]: | n sets NEXTCLOUD_INFO_UPDATE=false. Default is true |
Do you want to skip TLS-Verification (if using a self-signed Certificate on Nextcloud) [y/N]: | y sets NEXTCLOUD_TLS_SKIP_VERIFY=true. Default is false |
When /usr/bin/nextcloud-exporter already exists:
| Prompt | Answer |
|---|---|
Uninstall Nextcloud-Exporter? (y/N): | y removes it |
Update Nextcloud-Exporter? (y/N): | y updates. Anything else exits with No action selected |
What it creates
| Item | Value |
|---|---|
| Binary | /usr/bin/nextcloud-exporter, from the release package |
| Configuration | /etc/nextcloud-exporter.env, including NEXTCLOUD_LISTEN_ADDRESS=":9205" |
| Service | nextcloud-exporter (/etc/systemd/system/nextcloud-exporter.service), runs as root |
| Update helper | /usr/local/bin/update_nextcloud-exporter |
| Metrics | http://<ip>:9205/metrics |
The configuration file holds the token or password in plain text. Restart the service after editing it.
Update
Run update_nextcloud-exporter, answer y to the update prompt, or let the
container's update command offer it (see
how update finds add-ons).
If a newer release exists, the service is stopped, the new package is
installed and the service is started. The configuration is kept.
Remove
The uninstall prompt stops and disables the service, deletes the service
file, removes the nextcloud-exporter package, and deletes
/etc/nextcloud-exporter.env and the update helper.