Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertmanagerClient ¶ added in v0.2.0
type AlertmanagerClient struct {
// contains filtered or unexported fields
}
Get alerts from Alertmanager
func NewAlertmanagerClient ¶ added in v0.2.0
func NewAlertmanagerClient(address, receiver string, silenced bool) (*AlertmanagerClient, error)
type Cache ¶
type Cache interface { // Get will return the currently cached alerts for a given node. An error // will be returned if the cache is not populated, node specific filters // cannot be run, or if the last retrieval resulted in an error. The time // returned is the time of the last retrieval attempt. Get(nodeName string) ([]promv1.Alert, time.Time, error) }
Cache outlines an interface to interact with cached alerts
type Client ¶ added in v0.2.0
func NewPrometheusClient ¶ added in v0.2.0
func NewPrometheusMultiClient ¶ added in v0.2.0
type PromClient ¶ added in v0.2.0
type PromClient struct {
// contains filtered or unexported fields
}
Get alerts from a single prometheus
type PromMultiClient ¶ added in v0.2.0
type PromMultiClient struct {
// contains filtered or unexported fields
}
Get alerts from multiple promethei and combine them
Click to show internal directories.
Click to hide internal directories.