prometheus

package
v0.0.0-...-c64bf0e Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package prometheus provides suppoert for sending metrics to prometheus.

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, host string, route string, readTimeout, writeTimeout time.Duration, idleTimeout time.Duration) *Exporter

New constructs an Exporter for use.

func (*Exporter) Publish

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

Publish stores a deep copy of the data for publishing.

func (*Exporter) Stop

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

Stop turns off all the prometheus support.

Jump to

Keyboard shortcuts

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