Export more metrics via ocs/v2.php/apps/serverinfo/api/v1/info
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- grafana, javascript, prometheus
- 领域
- api, observability
调研方向
从 /ocs/v2.php/apps/serverinfo/api/v1/info 的 serverinfo 端点开始,检查当前存储指标是如何生成的。将请求的全局使用量(包括外部 S3 存储)与可能的按用户范围以及 user_usage_report 应用进行比较;当端点公开约定的全局存储指标,且其行为可在监控仪表板中验证时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
How to use GitHub
- Please use the 👍 reaction to show that you are interested into the same feature.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Is your feature request related to a problem? Please describe.
I want to have a general overview of Nextcloud usage via Grafana/Prometheus + nextcloud-exporter.
But the data coming from the API /ocs/v2.php/apps/serverinfo/api/v1/info lak at least one very useful information : the storage used, even if primary storage is on an external S3 system.
I don't know if it's possible to go further and add storage by user (perhaps not in that general API but associated with the app https://apps.nextcloud.com/apps/user_usage_report)
Perhaps that's what should be in the actual num_storages_other metric ?
Describe the solution you'd like
I'd like to see global storage usage in /ocs/v2.php/apps/serverinfo/api/v1/info, not only for local storage.
Describe alternatives you've considered
I'm in the process of trying an SQL query Prometheus exporter (https://github.com/albertodonato/query-exporter), to see if I can get total and user usage in my Grafana Dashboard.
- 主要语言
- JavaScript
- 星标
- 133
- 派生
- 67
- 平均合并
- 22 小时 11 分钟
- 30 天内合并 PR
- 55
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/serverinfo 的其他 Issue
-
Database checks: `Select_full_join` warning is caused by the setup checks' own schema introspection未关闭
难度 4/5 3-5 天 新手友好度 45/100
nextcloud/serverinfo#1245 ·
维护者通常 1 天内回复
-
Database checks: ∞% reported as Failing when counter is zero; no way to acknowledge/mute a check未关闭0. Needs triage bug
难度 5/5 一周以上 新手友好度 35/100
nextcloud/serverinfo#1231 ·
维护者通常 1 天内回复
-
0. Needs triage bug
难度 4/5 3-5 天 新手友好度 48/100
nextcloud/serverinfo#1224 · 4 条评论 ·
维护者通常 1 天内回复
-
0. Needs triage bug
难度 3/5 1-2 天 新手友好度 55/100
nextcloud/serverinfo#1223 ·
维护者通常 1 天内回复
-
0. Needs triage bug
难度 3/5 1-2 天 新手友好度 55/100
nextcloud/serverinfo#1221 ·
维护者通常 1 天内回复
查看 nextcloud/serverinfo 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
type/bug
难度 2/5 1-3 小时 新手友好度 62/100
flarum/framework#5301 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
AOSSIE-Org/BabyNest#284 ·
维护者通常 1 天内回复
-
status:untriaged
难度 1/5 1 小时以内 新手友好度 86/100
midnightntwrk/servicedesk#275 ·
维护者通常 1 天内回复