Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Storage local.Storage QueryEngine *promql.Engine // contains filtered or unexported fields }
API can register a set of endpoints in a router and handle them using the provided storage and query engine.
type AlertmanagerDiscovery ¶
type AlertmanagerDiscovery struct {
ActiveAlertmanagers []*AlertmanagerTarget `json:"activeAlertmanagers"`
}
type AlertmanagerTarget ¶
type AlertmanagerTarget struct {
URL string `json:"url"`
}
type Target ¶
type Target struct { // Labels before any processing. DiscoveredLabels model.LabelSet `json:"discoveredLabels"` // Any labels that are added to this target and its metrics. Labels model.LabelSet `json:"labels"` ScrapeURL string `json:"scrapeUrl"` LastError string `json:"lastError"` LastScrape time.Time `json:"lastScrape"` Health retrieval.TargetHealth `json:"health"` }
type TargetDiscovery ¶
type TargetDiscovery struct {
ActiveTargets []*Target `json:"activeTargets"`
}
Click to show internal directories.
Click to hide internal directories.