cmd

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	S       = &Server{}
	RootCmd = &cobra.Command{
		Use:  "metrics-node-sampler",
		RunE: S.RunE,
	}
)

Functions

func Execute

func Execute(version, commit, date string)

Types

type Collector

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

func (*Collector) Collect

func (collector *Collector) Collect(ch chan<- prometheus.Metric)

func (*Collector) Describe

func (collector *Collector) Describe(ch chan<- *prometheus.Desc)

type Server

type Server struct {
	sampler.Server
	// contains filtered or unexported fields
}

func (*Server) RunE

func (s *Server) RunE(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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