Skip to content

feat: Extract MetricsService and add endpoint/job/mapping metrics#695

Open
rubenvdlinde wants to merge 1 commit intofeature/enrich-openspec-specsfrom
feature/prometheus-metrics
Open

feat: Extract MetricsService and add endpoint/job/mapping metrics#695
rubenvdlinde wants to merge 1 commit intofeature/enrich-openspec-specsfrom
feature/prometheus-metrics

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

@rubenvdlinde rubenvdlinde commented Mar 20, 2026

⚠️ Stacked PR: Based on feature/enrich-openspec-specs (#693). Merge that first.

Summary

  • Extract metric collection from MetricsController into MetricsService (ADR-008)
  • Add 5 new metric types: endpoints, jobs, job runs, mappings, rules
  • Add unit tests for MetricsService, MetricsController, HealthController
  • Add Newman API test collection
  • Add administrator documentation

Closes #694

Spec Reference

openspec/specs/prometheus-metrics/spec.md

Test plan

  • Unit tests pass (MetricsServiceTest, MetricsControllerTest, HealthControllerTest)
  • Newman collection validates endpoint format and auth
  • Manual: curl /api/metrics returns all 11 metric types

- Extract metric collection from MetricsController into MetricsService (ADR-008)
- Add openconnector_endpoints_total gauge metric
- Add openconnector_jobs_total and openconnector_job_runs_total metrics
- Add openconnector_mappings_total and openconnector_rules_total metrics
- Add unit tests for MetricsService, MetricsController, HealthController
- Add Newman API test collection for metrics/health endpoints
- Add administrator documentation for Prometheus scrape configuration

Implements: openspec/specs/prometheus-metrics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant