Inspektor Gadget · CNCF / inspektor-gadget
Fixed default Prometheus metrics discovery
- Situation
- The gadget DaemonSet's prometheus.io/port annotation still pointed at the legacy port 2223, but metrics had moved to the OpenTelemetry metrics operator listening on 2224. Prometheus service discovery was scraping a port nothing served.
- Task
- Restore correct out-of-the-box metrics scraping and keep the Helm chart aligned with the generated kubectl gadget deploy manifest.
- Action
- Pointed the scrape annotation at 2224, regenerated pkg/resources/manifests/deploy.yaml so both install paths match, and refreshed the stale comment to reference the current otel-metrics config key.
- Result
- Default Prometheus discovery works again with no manual override. Merged into main (fixes issue #4371).
Evidence verified 2026-10-20 · figures are a point-in-time snapshot, not a live counter.