Skip to content

Conversation

@Altahrim
Copy link
Collaborator

@Altahrim Altahrim commented Jan 26, 2026

Summary

Fix issues on OpenMetrics exporter:

  • remove empty lines
  • ensure unit is part of metric name

Checklist

@Altahrim Altahrim added this to the Nextcloud 34 milestone Jan 26, 2026
@Altahrim Altahrim self-assigned this Jan 26, 2026
@Altahrim Altahrim requested a review from a team as a code owner January 26, 2026 09:49
@Altahrim Altahrim added bug 3. to review Waiting for reviews labels Jan 26, 2026
@Altahrim Altahrim requested review from ArtificialOwl, CarlSchwan, icewind1991 and sorbaugh and removed request for a team January 26, 2026 09:49
@Altahrim
Copy link
Collaborator Author

/backport to stable33 please

Copy link
Contributor

@SystemKeeper SystemKeeper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

I think instead of

# TYPE nextcloud_apps_count gauge
# UNIT nextcloud_apps_count apps
# HELP nextcloud_apps_count Number of apps in Nextcloud
nextcloud_apps_count{status="disabled"} 10
nextcloud_apps_count{status="enabled"} 34

it needs to be

# TYPE nextcloud_apps gauge
# UNIT nextcloud_apps apps
# HELP nextcloud_apps Number of apps in Nextcloud
nextcloud_apps_count{status="disabled"} 10
nextcloud_apps_count{status="enabled"} 34

?

@Altahrim
Copy link
Collaborator Author

I find nextcloud_apps a bit short to be meaningful but I guess you are right :)

@Altahrim Altahrim force-pushed the fix/openmetrics_exporters branch from ea94197 to dba083d Compare January 26, 2026 15:04
@SystemKeeper
Copy link
Contributor

image

sorry

@Altahrim
Copy link
Collaborator Author

Ah, this one isn't covered by tests…

@Altahrim Altahrim force-pushed the fix/openmetrics_exporters branch from dba083d to 366d513 Compare January 27, 2026 07:58
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>
@Altahrim Altahrim force-pushed the fix/openmetrics_exporters branch from 366d513 to e81f01e Compare January 27, 2026 09:13
Copy link
Contributor

@SystemKeeper SystemKeeper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine now 👍

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@Altahrim Altahrim merged commit 149c8b3 into master Jan 27, 2026
212 of 216 checks passed
@Altahrim Altahrim deleted the fix/openmetrics_exporters branch January 27, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants