featurecontrol: feature-flag activation is logged at WARN, so a clean start-up emits warnings
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
- #5415 di @byBrodowski — chiusa senza merge
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Tranquilla
- Stack tecnologico
- go
- Ambito
- observability-sre
Direzione di ricerca
Inizia da featurecontrol/featurecontrol.go e rivedi le chiamate a logger.Warn per ogni attivazione di feature flag, separando le funzionalità stabili richieste dai flag i cui messaggi contengono un avviso operativo. Il lavoro è completato quando le attivazioni stabili vengono registrate a livello INFO, mentre i flag con cardinalità illimitata rimangono a livello WARN, e un avvio pulito non produce più avvisi per i flag stabili richiesti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What did you do?
Started Alertmanager v0.33.1 with three feature flags that are required for correct operation in our
deployment:
--enable-feature=utf8-strict-mode,auto-gomemlimit,receiver-name-in-metrics
What did you expect to see?
A clean start-up log. Enabling a flag we asked for is an acknowledgement, not a warning.
What did you see instead?
Every one of the three activations is logged at WARN, so a healthy start-up emits three warning
lines and nothing else notable:
{"time":"2026-07-30T11:27:37.086790131Z","level":"WARN","source":"featurecontrol.go:160","msg":"UTF-8 strict mode enabled"}
{"time":"2026-07-30T11:27:37.086818731Z","level":"WARN","source":"featurecontrol.go:163","msg":"Automatically set GOMEMLIMIT to match the Linux container or system memory limit."}
{"time":"2026-07-30T11:27:37.086873731Z","level":"WARN","source":"featurecontrol.go:151","msg":"Experimental receiver name in metrics enabled"}
In featurecontrol/featurecontrol.go at v0.33.1 every branch uses logger.Warn(...)
unconditionally — alert-names-in-metrics, receiver-name-in-metrics, group-key-in-metrics,
classic-mode, utf8-strict-mode, auto-gomemlimit and event-recorder. There is no level
override and no way to reach the same functionality without the line.
Why this matters beyond tidiness
level=WARN is what monitoring and log pipelines are configured to escalate on. A component that
emits warnings on every clean start teaches its operators that its warnings are noise — and the one
warning that matters here is the delivery-failure retry line, which is also the line that leaks the
Telegram bot token (see #5254). Anything that trains a reader to skip Alertmanager's warnings makes
that worse.
Two of the three flags above are not even experimental in effect: auto-gomemlimit is how the Go
heap learns about a container memory limit, and running without it in a limited container is the
worse choice. Announcing the safer configuration as a warning inverts the signal.
Suggested change
Log the activation of a stable, deliberately requested feature at INFO. Keep WARN for the flags
whose message actually carries a caution — the unbounded-cardinality ones
(alert-names-in-metrics, group-key-in-metrics) have a real operational cost and deserve it.
Environment
- Alertmanager version:
0.33.1(revision=2c8da51e03f3dbbed24f9711ca2d76aab4eef9c5,go1.26.4,
linux/amd64), imagequay.io/prometheus/alertmanager@sha256:9e082985f56f4c8c9f724e18f2288c6708f472e56a5286b8863d080434ea065d - Configuration:
--log.format=json --log.level=info, single replica,--cluster.listen-address=
- Lingua principale
- Go
- Stelle
- 8.7k
- Fork
- 2.5k
- Merge medio
- 5g 21h
- PR unite (30g)
- 43
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di prometheus/alertmanager
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
prometheus/alertmanager#4961 · 8 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
0.35.0: 90s HTTP IdleTimeout races Prometheus's resend cadence, POST /api/v2/alerts fails with EOFForse già presa @xixi-box l’ha presa 5 giorni fa. Apertacomponent/api
Difficoltà 2/5 1-3 ore Idoneità per principianti 22/100
prometheus/alertmanager#5743 · 3 commenti · 3 reazioni ·
I maintainer di solito rispondono entro 3 giorni
-
🧭 PR Triage DashboardAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 1/100
prometheus/alertmanager#5727 ·
I maintainer di solito rispondono entro 3 giorni
-
kubectl proxy doesn't serve the webUIForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertacomponent/ui
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
prometheus/alertmanager#5722 · 3 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 1/100
prometheus/alertmanager#5691 · 15 commenti ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di prometheus/alertmanager
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
karmada-io/karmada#8101 ·
I maintainer di solito rispondono entro 1 giorno
-
product:platform
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
Infisical/infisical#9746 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
CrossEntropyFilter raises on zero probabilities and single-class resultsForse già presa @NopeCharon l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
txn2/mcp-data-platform#2728 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Windshiftapp/core#542 ·
I maintainer di solito rispondono entro 1 giorno