prometheus

package
v0.0.0-...-18e089f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

View Source
const (
	StatefulSet = "StatefulSet"
	DaemonSet   = "DaemonSet"
	Deployment  = "Deployment"
)
View Source
const MeteringDefaultTimeout = 20 * time.Second

Variables

This section is empty.

Functions

func NewPrometheus

func NewPrometheus(options *Options) (monitoring.Interface, error)

Types

type Options

type Options struct {
	Endpoint string `json:"endpoint,omitempty" yaml:"endpoint,omitempty"`
}

func NewPrometheusOptions

func NewPrometheusOptions() *Options

func (*Options) AddFlags

func (s *Options) AddFlags(fs *pflag.FlagSet, c *Options)

func (*Options) ApplyTo

func (s *Options) ApplyTo(options *Options)

func (*Options) Validate

func (s *Options) Validate() []error

Jump to

Keyboard shortcuts

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