[Phase 4] Add Prometheus ServiceMonitor manifest to flux/vin-decoder/ for metrics scraping #153
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap reference
Phase 4 — Monitoring: Instrument every API with Prometheus scraping via ServiceMonitor.
Problem
The other three API services each have a
servicemonitor.yamlcommitted in their Flux kustomization:flux/zip-enrichment/servicemonitor.yaml✅flux/holidays/servicemonitor.yaml✅flux/air-quality/servicemonitor.yaml✅However,
flux/vin-decoder/has noservicemonitor.yamland it is not listed influx/vin-decoder/kustomization.yaml. Without it, Prometheus cannot auto-discover and scrape the VIN Decoder/metricsendpoint once the service deploys (issue #121).What to do
In
flux/vin-decoder/, add a ServiceMonitor manifest modelled on the existing ones:Then add
- servicemonitor.yamltoflux/vin-decoder/kustomization.yamlresources list.Validate:
kustomize build flux/vin-decoder/must pass with no errors.Acceptance criteria
flux/vin-decoder/servicemonitor.yamlcommitted and validflux/vin-decoder/kustomization.yamlreferencesservicemonitor.yamlkustomize build flux/passes (no regressions)vin-decoderas a healthy scrape targetDependencies
(Reference: ROADMAP.md §Phase 4; flux/zip-enrichment/servicemonitor.yaml as template)
Closing as duplicate — issue #152 already covers VIN Decoder ServiceMonitor and full monitoring extension (PrometheusRule, Grafana dashboard, servicemonitor.yaml). #152 has been labelled agent-ready,P2,small,phase-4.