Page MenuHomePhabricator

Instrument event-brindge service with Prometheus
Closed, ResolvedPublic8 Estimated Story Points

Description

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.

Event Timeline

Tim.abdullin renamed this task from Instrument event-brindge service to Instrument event-brindge service with Prometheus.Dec 21 2022, 4:20 PM
Tim.abdullin set the point value for this task to 5.
Daria_Kevana changed the task status from Open to In Progress.Jan 3 2023, 6:16 PM
Tim.abdullin changed the point value for this task from 5 to 8.