prometheus

package
v0.0.0-...-2e936b0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.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 Exporter

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

Exporter implements the prometheus exporter support.

func New

func New(log *logger.Logger, addr string, route string, readTimeout, writeTimeout, idleTimeout time.Duration) *Exporter

func (*Exporter) Publish

func (exp *Exporter) Publish(data map[string]any)

func (*Exporter) Stop

func (exp *Exporter) Stop(shutdownTimeout time.Duration)

Jump to

Keyboard shortcuts

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