Skip to content

Extend scrape error metric to show service unavailable and maintenance mode#131

Merged
xperimental merged 4 commits intomasterfrom
error-unavailable
Oct 4, 2025
Merged

Extend scrape error metric to show service unavailable and maintenance mode#131
xperimental merged 4 commits intomasterfrom
error-unavailable

Conversation

@xperimental
Copy link
Owner

Nextcloud maintenance mode will cause the exporter to not be able to fetch the metrics anymore, which shows as nextcloud_scrape_errors_total increasing. This PR adds new labels to that metric that show generic HTTP 503 ("Service Unavailable") errors and such errors which also have the header emitted by Nextcloud when in maintenance mode.

This PR adds new labels on the error metric to distinguish these errors from others.

@xperimental xperimental self-assigned this Oct 4, 2025
@xperimental xperimental merged commit 6192015 into master Oct 4, 2025
3 checks passed
@xperimental xperimental deleted the error-unavailable branch October 4, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant