ClientPrometheus

package
v4.5.2000+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientPrometheus

type ClientPrometheus struct {
	Addr string

	TLSConfig *TLSConfig
	Method    MethodInt
	Expr      string
	TimeRange *utils.TimeRange
	// contains filtered or unexported fields
}

func NewClientPrometheus

func NewClientPrometheus(addr string, tokenFile string, InsecureSkipVerify bool, method MethodInt, expr string, timeRange *utils.TimeRange) *ClientPrometheus

func (*ClientPrometheus) Execute

func (c *ClientPrometheus) Execute() (string, error)

type MethodInt

type MethodInt int
const (
	MethodQuery       MethodInt = 0
	MethodQueryRange  MethodInt = 1
	MethodSeries      MethodInt = 2
	MethodLabels      MethodInt = 3
	MethodLabelValues MethodInt = 4
)

type PVector

type PVector struct {
	Time   time.Time
	Metric string
	Value  string
}

type TLSConfig

type TLSConfig struct {
	InsecureSkipVerify bool `mapstructure:"insecureSkipVerify"`
}

Configuration of tls connection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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