Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIReadConfig ¶
APIReadConfig is the default implementation of api /api/v1/status/config
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client to do prometheus API request
func (*Client) ConfigReload ¶
ConfigReload do Config reloading
func (*Client) RuntimeInfo ¶
func (c *Client) RuntimeInfo() (*RuntimeInfo, error)
RuntimeInfo return the current status of this shard, only return tManager targets if scrapingOnly is true, otherwise ,all target this cli discovered will be returned
type RuntimeInfo ¶
type RuntimeInfo struct { // TimeSeriesCount is the series the prometheus head check handled TimeSeriesCount int64 `json:"timeSeriesCount"` }
RuntimeInfo include some filed the prometheus API /api/v1/runtimeinfo returned
Click to show internal directories.
Click to hide internal directories.