prometheus

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Host    string `json:"host"`
	Port    int    `json:"port,string"`
	Enabled bool   `json:"enabled"`
}

func (*Configuration) Init

func (promConfig *Configuration) Init(path string) error

type Server

type Server struct {
	Port int
	Host string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(host string, port int) *Server

func (*Server) Run

func (prmServ *Server) Run()

func (*Server) Stop

func (prmServ *Server) Stop() error

Jump to

Keyboard shortcuts

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