Uh oh!
There was an error while loading. Please reload this page.
feat(openmetrics): introduce OpenMetrics exporter - #57165
Conversation
19d9463 to
2e73e76Compare9e91442 to
30dd586Comparef043ff3 to
56d654bCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
56d654b to
1c8ebecCompare1c8ebec to
ceb578dCompared8a68fd to
4aaee6fCompareicewind1991
commented
Jan 6, 2026
Some of these (counting files) are going to have a non-trivial cost, might be worth having a way to toggle individual metrics. |
Altahrim
commented
Jan 6, 2026
You are right :) That's why I added a way to disable a metric with |
icewind1991
commented
Jan 6, 2026
Ok, missed that when skimming over the changes 🙈 |
f494623 to
292a77aCompareExpose a `/metrics` endpoint with some basic metrics Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
292a77a to
71fa593Compare| namespace OCA\Comments\OpenMetrics; | ||
| use Generator; | ||
| use OC\DB\Connection; |
| public function __construct( | ||
| private IAppManager $appManager, | ||
| private PsrLoggerAdapter $logger, |
There was a problem hiding this comment.
You are right for both, thank you. I'll do a follow-up PR :)
rizlas
commented
Jan 27, 2026
Hi, |
Altahrim
commented
Jan 28, 2026
@rizlas You are right, there isn't any for now but the exporter can be extended. |
susnux
commented
Jan 28, 2026
rizlas
commented
Jan 28, 2026
@Altahrim Thanks! I was basically thinking about the number of groups and users per group. |
Altahrim
commented
Jan 29, 2026
@rizlas Number of groups and number of users per group can be added in Nextcloud, but I am afraid we don't have any straightforward way to get the metrics. All metrics related to quota must be added in |
Summary
Introduce OpenMetrics endpoint featuring Nextcloud metrics.
It allows to get statistics about the Nextcloud instance but not about hardware (some exporters are already doing that very well). For example: number of files, shares or active users.
It's extensible so every app will be able to expose it's own metrics.
Test
Access it on
/metrics(orindex.php/metricsdepending of configuration)TODO
Checklist
3. to review, feature component)stable32)