damianiandrea / mongodb-nats-connector

A connector that uses MongoDB's change streams to capture data changes and publishes those changes to NATS JetStream.
MIT License
49 stars 7 forks source link

Add observability for NATS operations #49

Closed damianiandrea closed 5 months ago

damianiandrea commented 5 months ago

The NATS operations executed by the connector should be observable through the GET /metrics endpoint.

Some important metrics to track are:

nats_messages_published_total (Total number of published messages) nats_messages_failed_total (Total number of failed messages) nats_message_duration_seconds (Duration of message publishing in seconds)