prome

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPrefix = "prome"
)

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient() *http.Client

Types

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(ctx context.Context, client *http.Client, targets []string, prefix string) (Plugin, error)

NewPlugin returns Plugin

func (Plugin) FetchMetrics

func (p Plugin) FetchMetrics() (map[string]float64, error)

func (Plugin) GraphDefinition

func (p Plugin) GraphDefinition() map[string]mp.Graphs

func (Plugin) MetricKeyPrefix

func (p Plugin) MetricKeyPrefix() string

Jump to

Keyboard shortcuts

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