Send the pixi mirror integration's signals to Nebari's OpenTelemetry collector
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- go, kubernetes, prometheus
- Ambito
- backend, observability
Direzione di ricerca
Start with internal/pixienv/pixienv.go and internal/executor/supervise/state.go to trace install execution, existing duration reporting, and the output tail carrying pixi retry warnings. Read the referenced collector configuration and ADR, then resolve how to detect fallback and whether logs should be forwarded or collected through a NIC override. Done means the agreed signals reach the collector and let operators distinguish no mirror, mirror use, and fallback.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Tapas is about to install pixi environments through an in-cluster conda-forge mirror (nebari-dev/oci-mirror-pack, follow-up to #25). That mirror is built to degrade gracefully: when it is down, pixi falls back to conda-forge and the install still succeeds. That is the behavior we want for users, but it means an operator cannot tell from the outside whether the mirror is doing anything. A broken trust bundle, a missing NetworkPolicy entry, or a mirror scaled to zero all look the same as a working mirror, just slower and with more egress.
Every Nebari cluster already runs an OpenTelemetry collector, so we should send this system's signals there instead of asking operators to grep pod logs.
What the cluster gives us
From NIC's collector values (base.yaml) and ADR-0008:
- a DaemonSet in
monitoring, receiving OTLP on 4317 (gRPC) and 4318 (HTTP); - a Prometheus receiver that scrapes any pod annotated
prometheus.io/scrape: "true"(withprometheus.io/portandprometheus.io/path); - logs and traces over OTLP only. There is no filelog receiver, so container stdout does not reach the collector;
- packs extend the config through the
opentelemetry-collector-overridesConfigMap.
Tapas already has telemetry.otlpEndpoint for the server's traces and HTTP metrics.
How the mechanism works today
pixi puts its retry middleware in front of the mirror middleware. A connection error or 5xx from the mirror counts as a failure, and the retry picks the mirror with the fewest failures, which is conda-forge (pixi_utils/src/reqwest.rs, rattler_networking 0.34.0 mirror_middleware.rs). Each retry is logged at WARN, and the install step runs with RUST_LOG=info (internal/pixienv/pixienv.go:99), so a fallback is visible in the install container's output. A 404 from the mirror is not a failure and does not fall back.
The install step's duration is already recorded, but only as a condition fact ("environment ready in ...", internal/executor/supervise/state.go:108), not as a metric.
What we need to work out
- Mirror side (oci-mirror-pack): turn on Distribution's Prometheus metrics, annotate the pod for the collector, and let the
monitoringnamespace through the chart's NetworkPolicy. That gives request counts and cache hits per repository without any Tapas change. - Tapas side: an environment-install duration histogram over OTLP, with attributes for whether a mirror was configured and whether the install fell back. Where does the fallback attribute come from? The controller sees the install container's output tail, which carries pixi's retry warnings, but parsing log text is fragile.
- Logs: do we want a filelog receiver in the collector (a NIC decision, through the overrides ConfigMap), or should Tapas forward install logs over OTLP itself?
- The signal an operator acts on: "installs are bypassing the mirror" is the alert we care about. Which ratio defines it: mirror requests against installs started, or install fallbacks against installs?
Decisions already made in the mirror integration to keep this open
- The controller, not just the chart, knows whether a mirror is configured, so telemetry can carry it as an attribute.
- The install step keeps pixi's retry warnings in its output (the log filter will not go below
infofor networking). - Missing mirror or trust ConfigMaps degrade to "no mirror" instead of blocking pods, so the metric has to tell "no mirror configured" apart from "mirror configured but unused".
- Lingua principale
- Go
- Stelle
- 5
- Fork
- 0
- Merge medio
- 21h 13m
- PR unite (30g)
- 53
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la 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 nebari-dev/tapas
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
nebari-dev/tapas#124 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nebari-dev/tapas#121 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
nebari-dev/tapas#32 ·
I maintainer di solito rispondono entro 1 giorno
-
Suggest saving a memory when a chat message holds something worth rememberingForse già presa @jbouder l’ha presa oggi. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
nebari-dev/tapas#137 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
nebari-dev/tapas#136 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nebari-dev/tapas
Issue simili
-
area: pipeline priority: low type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
prime-radiant-inc/evener#8335 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Forse già presa @szluyu99 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100