Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregation ¶
type Aggregation string
const ( Avg Aggregation = "avg" Max Aggregation = "max" Min Aggregation = "min" P99 Aggregation = "99" P95 Aggregation = "95" P90 Aggregation = "90" P50 Aggregation = "50" Stdev Aggregation = "stdev" )
type Prometheus ¶
type Prometheus struct { Endpoint string // contains filtered or unexported fields }
Prometheus describes the prometheus connection
func NewClient ¶
func NewClient(url, token, username, password string, tlsSkipVerify bool) (*Prometheus, error)
NewClient creates a prometheus struct instance with the given parameters
Click to show internal directories.
Click to hide internal directories.