Class DedupMetricsBinder

java.lang.Object
com.aim2be.platform.dedup.DedupMetricsBinder

public class DedupMetricsBinder extends Object
Micrometer binder for the dedup module.

Metrics published:

Counter and gauge instances are lazily created per consumer_scope_id and cached for the lifetime of the binder. Cardinality is bounded by the number of distinct logical consumers (8 services on day 1; up to ~32 in the per-pod broadcast scenario per ADR-0014 §L-12 — well within Prometheus' recommended series-per-metric budget).

  • Constructor Details

    • DedupMetricsBinder

      public DedupMetricsBinder(io.micrometer.core.instrument.MeterRegistry registry, ProcessedKafkaEventRepository repository, Clock clock)
      Parameters:
      registry - Micrometer registry to publish into (must not be null)
      repository - repository for the gauge's count-by-week query (must not be null)
      clock - clock used to determine the "current" week for the gauge; pass Clock.systemUTC() in production, a fixed clock in tests
  • Method Details