Help us shape the future of Go! Take the 2026 Go Developer Survey

prometheus

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string
	Log     Logger
}

type Logger

type Logger interface {
	Debug(...interface{})
	Warn(...interface{})
	Fatal(...interface{})
}

type Prometheus

type Prometheus struct {
	API v1.API
	// contains filtered or unexported fields
}

func New

func New(config *Config) (*Prometheus, error)

func (*Prometheus) QueryInstant

func (p *Prometheus) QueryInstant(query string) (string, error)

Jump to

Keyboard shortcuts

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