[Phase 4] feat: extend monitoring to include VIN Decoder API #152
Reference in New Issue
Block a user
Delete Branch "feature/129-vin-decoder-metrics"
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?
Summary
Extends the api-company monitoring stack to cover VIN Decoder as the 4th API, satisfying leeworks-agents/api-company#129 acceptance criteria.
Changes
flux/monitoring/prometheusrule-apis.yamlExtended all 5 PrometheusRule alert expressions to include
vin-decoderin thejob=~regex filter:flux/monitoring/grafana-dashboard-apis.yamlUpdated all PromQL expressions in the combined API dashboard to include
vin-decoderin theapi=~filter. Updated dashboard description.flux/monitoring/vin-decoder-dashboard.yaml(new)Dedicated Grafana dashboard for VIN Decoder showing:
flux/vin-decoder/servicemonitor.yaml(new)ServiceMonitor (monitoring.coreos.com/v1) for Prometheus auto-discovery of the VIN Decoder
/metricsendpoint.flux/monitoring/kustomization.yaml+flux/vin-decoder/kustomization.yamlUpdated to include the new files.
Validation
Companion PR in vin-decoder repo: leeworks-agents/vin-decoder#2 (implements /metrics endpoint and unit tests)
Closes leeworks-agents/api-company#129