feat: platform admins can switch off check types
ci / image (pull_request) Successful in 2m32s
ci / build (pull_request) Successful in 7m28s
ci / lint (pull_request) Successful in 8m54s
ci / test (pull_request) Successful in 13m7s

Types an installation cannot offer, such as Docker on shared cloud
checkers, can be switched off in the admin panel. They are not offered
in the editor or accepted by the API for new monitors or type changes;
existing monitors keep running and stay editable. The setting lives in
a new platform_settings table and reaches every replica at once through
the versioned cache. GET /api/v1/org/check-types lists what is offered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 16:35:49 +01:00
1 parent 5a644e4ae5
commit fb03b28df7
19 files changed
+627 -160

No files matched your search

+3 -1
View File
@@ -492,6 +492,8 @@ type MonitorForm struct {
Matchers []MatcherRow
StaleHours int
DB DBForm
// Types are the check types to offer.
Types []string
}
// DBForm holds the settings of database checks. The password is never
@@ -588,7 +590,7 @@ templ MonitorEditor(p Page, me Me, f MonitorForm) {
<label class="mb-4 block">
<span class="mb-1 block text-xs font-medium uppercase tracking-wider text-muted">{ i18n.T(ctx, "monitors.type") }</span>
<select name="type" data-type-select class="w-full border border-rule bg-transparent px-2 py-1.5 text-sm">
for _, t := range []string{"http", "json", "prometheus", "tcp", "tls", "dns", "icmp", "postgres", "mysql", "mssql", "mongodb", "redis", "heartbeat", "alertmanager"} {
for _, t := range f.Types {
<option value={ t } selected?={ t == f.Type }>{ i18n.T(ctx, "monitors.type_"+t) }</option>
}
</select>