prometheus

package
v0.0.0-...-5515e0f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Config

type Config struct {
	Port     int
	Enabled  bool
	Endpoint string
}

func NewConfig

func NewConfig(s *setting.Setting) (*Config, error)

type Prometheus

type Prometheus struct {
	module.DefaultRunProvider
	Config *Config
	// contains filtered or unexported fields
}

func New

func New(config *Config) *Prometheus

func (*Prometheus) Close

func (p *Prometheus) Close() error

func (*Prometheus) Run

func (p *Prometheus) Run() error

Jump to

Keyboard shortcuts

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