Remove duplicate getEnvOrDefault function from dashboard/logger/logger.go and
use the canonical config.GetEnvOrDefault instead.
Before:
- proxy/config/config.go had GetString()
- dashboard/config/config.go had GetEnvOrDefault()
- dashboard/logger/logger.go had getEnvOrDefault()
After:
- proxy/config/config.go has GetString() (main module canonical)
- dashboard/config/config.go has GetEnvOrDefault() (dashboard module canonical)
- dashboard/logger/logger.go uses config.GetEnvOrDefault()
Co-Authored-By: Claude <noreply@anthropic.com>
Update all documentation that references the old default SCRAPE_TARGETS value:
- docs/notes/ENVIRONMENT_VARIABLES.md: ConfigMap and Deployment examples
- dashboard/README.md: SCRAPE_TARGETS default, kubectl examples, manifests
The default namespace for zai-proxy deployments is now devpod, not mcp.
- Refactor dashboard/collector/collector.go to use config.GetScrapeTargets()
- Refactor dashboard/api/router.go to use config.GetScrapeTargets()
- Add dashboard/config/config.go with DefaultScrapeTarget set to devpod namespace
- Remove hardcoded mcp namespace defaults from both files
Acceptance: No occurrence of zai-proxy.mcp.svc.cluster.local remains in dashboard Go code, both DefaultConfig structs use devpod default, existing SCRAPE_TARGETS env override unchanged.
- proxy/go.mod: github.com/ardenone/zai-proxy → git.ardenone.com/jedarden/zai-proxy
- dashboard/go.mod: github.com/ardenone/ardenone-cluster/containers/zai-proxy-dashboard → git.ardenone.com/jedarden/zai-proxy/dashboard
- Update all Go import paths in proxy/ and dashboard/ to match new module paths
- Add proxy/evaluation/ package (was missing from initial commit)
- Add docs/plan/plan.md with architecture, security model, telemetry design, and migration checklist
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>