prometheus

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

type Prometheus struct {
	// contains filtered or unexported fields
}

Prometheus served as a prometheus exporter that exposes gmqtt metrics.

func New

func New(httpSever *http.Server, path string) *Prometheus

New ...

func (*Prometheus) Collect

func (p *Prometheus) Collect(m chan<- prometheus.Metric)

Collect ...

func (*Prometheus) Describe

func (p *Prometheus) Describe(desc chan<- *prometheus.Desc)

Describe ...

func (*Prometheus) HookWrapper

func (p *Prometheus) HookWrapper() gmqtt.HookWrapper

HookWrapper ...

func (*Prometheus) Load

func (p *Prometheus) Load(service gmqtt.Server) error

Load ...

func (*Prometheus) Name

func (p *Prometheus) Name() string

Name ...

func (*Prometheus) Unload

func (p *Prometheus) Unload() error

Unload ...

Jump to

Keyboard shortcuts

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