snapp-incubator / nats-blackbox-exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NATS Blackbox Exporter

GitHub Workflow Status Codecov GitHub repo size GitHub tag (with filter) GitHub go.mod Go version (subdirectory of monorepo)

Introduction

Each probe publishes a message over Jetstream NATS and then waits to receive it through a subscription. By measuring the time taken for this process, you can monitor the status of your NATS cluster. At Snapp!, we use this to detect the status of our NATS clusters from the client perspective.

You can track the following metrics:

  • Connection: A prometheus.CounterVec that counts disconnections and connections.
  • Latency: A prometheus.Histogram that measures the latency between publishing and subscribing.
  • SuccessCounter: A prometheus.CounterVec that counts successful publishes and consumes.

This setup helps ensure that your NATS clusters are functioning optimally and provides insights into any issues from the client side.

About


Languages

Language:Go 96.4%Language:Dockerfile 3.6%