Currently, there are no accurate statistics from event-bridge services in the Grafana dashboard.
Prometheus metrics for them could show how many messages we consume, which types of those, which the rates and throughputs of our Kafka cluster, there are any queues, backlogs, unprocessed events, etc.
Acceptance criteria
All event-bridge handlers are instrumented with proper Prometheus metrics.
To-Do
- add env variable form prometheus server port
- add separate go routine to expose metrics with default collector GoCollector and ProcessCollector
- add /metrics endpoint that will be exposed through the particular port
- expose this server port through IaC (make sure service discovery is enabled)
Example
Simple go integration.