prometheus

package
v0.0.0-...-e2ed998 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 5 Imported by: 0

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)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Metrics

func Metrics(handler nsq.HandlerFunc) nsq.HandlerFunc

Metrics middleware for nsq

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL