Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultPrometheusQueryTimeout = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromClient ¶
type PromClient interface { // QueryByNodeIP queries data by node IP. QueryByNodeIP(string, string) (string, error) // QueryByNodeName queries data by node IP. QueryByNodeName(string, string) (string, error) // QueryByNodeIPWithOffset queries data by node IP with offset. QueryByNodeIPWithOffset(string, string, string) (string, error) }
PromClient provides client to interact with Prometheus.
func NewPromClient ¶
func NewPromClient(addr string) (PromClient, error)
NewPromClient returns PromClient interface.
Click to show internal directories.
Click to hide internal directories.