Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAPIClients ¶
func InitAPIClients(rawcfg interface{}) error
func RegisterAPIInstance ¶
Types ¶
type PrometheusV1APIClient ¶
type PrometheusV1APIClient struct {
// contains filtered or unexported fields
}
func GetAPIInstance ¶
func GetAPIInstance(id string) *PrometheusV1APIClient
func NewPrometheusV1APIClient ¶
func NewPrometheusV1APIClient(url string) (*PrometheusV1APIClient, error)
func (*PrometheusV1APIClient) GetStaticLabelValues ¶
func (c *PrometheusV1APIClient) GetStaticLabelValues(query string, target_label string) ([]string, error)
e.g. if you have a metric like up{hostname="my_vps_id", region="US", location="LA"} 1 you can get region value or location value of certain hostname from here also you can get all the hostname here
Click to show internal directories.
Click to hide internal directories.