{"id":15282739,"url":"https://github.com/trazfr/prometheus-nextcloud-exporter","last_synced_at":"2025-10-26T07:36:01.015Z","repository":{"id":59144683,"uuid":"242598282","full_name":"trazfr/prometheus-nextcloud-exporter","owner":"trazfr","description":"Monitoring of a Nextcloud instance using the servinfo plugin","archived":false,"fork":false,"pushed_at":"2025-04-22T19:30:42.000Z","size":84,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T03:39:29.074Z","etag":null,"topics":["nextcloud","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trazfr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-23T22:06:35.000Z","updated_at":"2025-04-22T19:30:46.000Z","dependencies_parsed_at":"2024-06-20T04:22:50.606Z","dependency_job_id":"592637f4-0bf1-4a71-a0b7-9809d4a08c3d","html_url":"https://github.com/trazfr/prometheus-nextcloud-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trazfr/prometheus-nextcloud-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trazfr%2Fprometheus-nextcloud-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trazfr%2Fprometheus-nextcloud-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trazfr%2Fprometheus-nextcloud-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trazfr%2Fprometheus-nextcloud-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trazfr","download_url":"https://codeload.github.com/trazfr/prometheus-nextcloud-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trazfr%2Fprometheus-nextcloud-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281074239,"owners_count":26439421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextcloud","prometheus","prometheus-exporter"],"created_at":"2024-09-30T14:38:14.739Z","updated_at":"2025-10-26T07:36:00.970Z","avatar_url":"https://github.com/trazfr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prometheus-nextcloud-exporter\n\nMonitoring of a Nextcloud instance using the servinfo plugin\n\n## Purpose\n\nThis repository has been made to monitor a Nextcloud instance using Prometheus through the serverinfo plugin.\n\n## Install\n\nHaving a working Golang environment:\n\n```bash\ngo install github.com/trazfr/prometheus-nextcloud-exporter@latest\n```\n\n## Use\n\nThis program is configured through a JSON configuration file.\n\nTo run, just `prometheus-nextcloud-exporter config.json`\n\n## Examples of configuration file\n\nThis configuration file sets the exporter:\n\n- With a timeout of 20 seconds for each requests (default=`5`)\n- To Listen to the port `9092` (default value=`:9091`)\n- To connect to a Nextcloud instance:\n  - using HTTPS (you may also use `http`)\n  - with credentials: user is `myuser` and the password is `mypassword`\n  - the server is `cloud.example.com`\n  - it is using the default path for the serverinfo plugin: `/ocs/v2.php/apps/serverinfo/api/v1/info`\n  - and pass the 2 parameters `skipApps` and `skipUpdate` set to `false`\n\n```json\n{\n    \"timeout\": 20,\n    \"nextcloud_url\": \"https://myuser:mypassword@cloud.example.com\",\n    \"skip_apps\": false,\n    \"skip_update\": false,\n    \"listen\": \":9092\"\n}\n```\n\nAnother example where the Nextcloud is installed in the path `/mynextcloud`:\n\n```json\n{\n    \"nextcloud_url\": \"https://anotheruser:anotherpassword@server.example.com/mynextcloud\"\n}\n```\n\nYour server may have an exotic configuration and the serverinfo endpoints may be behind another path.\nFor instance if you have a reverse proxy which rewrites `/serverinfo` into `/ocs/v2.php/apps/serverinfo/api/v1/info`:\n\n```json\n{\n    \"nextcloud_url\": \"https://anotheruser:anotherpassword@exotic.example.com/serverinfo\",\n    \"append_default_serverinfo_path\": false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrazfr%2Fprometheus-nextcloud-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrazfr%2Fprometheus-nextcloud-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrazfr%2Fprometheus-nextcloud-exporter/lists"}