package
0.0.0-20200720041452-e2ed9984c3aa
Repository: https://github.com/albertwidi/gonsq.git
Documentation: pkg.go.dev
# README
Prometheus Middleware For Gonsq
This is a prometheus middleware for NSQ to expose metrics data for NSQ
Usage
To use this library, simply append the Metrics
function into the nsq
library. For example:
import (
promemw "github.com/albertwidi/gonsq/middleware/prometheus"
"github.com/albertwidi/gonsq/"
)
consumer, err := nsq.WrapConsumers(...)
if err != nil {
// Handle the error.
}
conusmer.Use(promemw.Metrics)
# Functions
Metrics middleware for nsq.