Skip to content

Always on /alertmanager and /grafana - #7

Merged
lavr merged 6 commits into
mainfrom
always-on-alertmanager-grafana
Mar 21, 2026
Merged

lavr merged 6 commits into
mainfrom
always-on-alertmanager-grafana

Conversation

@lavr

@lavr lavr commented Mar 21, 2026

Copy link
Copy Markdown
Owner

No description provided.

lavr and others added 6 commits March 21, 2026 23:05
Remove nil-gates so /alertmanager and /grafana routes are registered
unconditionally. When config sections are absent, empty defaults are
used. This is a zero-config approach: endpoints work out of the box.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- docs/integrations.md: note that endpoints are enabled by default
- docs/configuration.md: mark alertmanager/grafana sections as optional
- plan status: Proposed -> Done

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Unconditional route registration caused enqueue mode to expose
alertmanager/grafana endpoints as 500 (not configured) instead of
the previous clean 404. Restore nil-guards in server.go so routes
are only registered when WithAlertmanager/WithGrafana options are
provided. Since runServe always provides these options now, the
always-on behavior in serve mode is preserved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The plan described unconditional route registration and 500 for library
users, but review iteration 1 intentionally restored nil-guards to
prevent enqueue mode regression. Update plan sections 2-4 and backward
compatibility to match the actual implementation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lavr
lavr merged commit e82e478 into main Mar 21, 2026
6 checks passed
@lavr
lavr deleted the always-on-alertmanager-grafana branch March 21, 2026 20:27
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