prometheus

package
v1.3.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultPrometheusPort                            = 9181
	DefaultPrometheusConnectionTimeout time.Duration = time.Second * 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusExporter

type PrometheusExporter struct {
	*metrics.BaseService

	Addr string
	Port int
	// contains filtered or unexported fields
}

PrometheusExporter is a prometheus exporter service.

func NewService

func NewService() *PrometheusExporter

NewService returns a new prometheus exporter service.

func (*PrometheusExporter) ServiceName

func (exp *PrometheusExporter) ServiceName() string

ServiceName returns the plug-in service name.

func (*PrometheusExporter) SetPort

func (exp *PrometheusExporter) SetPort(port int)

SetPort sets a port number of the exp.

func (*PrometheusExporter) Start

func (exp *PrometheusExporter) Start() error

Start starts the exp.

func (*PrometheusExporter) Stop

func (exp *PrometheusExporter) Stop() error

Stop stops the Grpc exp.

Jump to

Keyboard shortcuts

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