Documentation
¶
Overview ¶
gke implements service discovery for GKE clusters with k8s services annotated for federation scraping.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory stores information needed to create new Source instances.
func NewSourceFactory ¶
NewSourceFactory returns a new Factory object that can create new GKE Sources.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source caches information collected from the GCE, GKE, and K8S APIs during target discovery.
func (*Source) Collect ¶
Collect uses the Compute Engine, Container Engine, and Kubernetes APIs to check every GCE zone for Container Engine (gke) clusters, and checks each cluster for services annotated for federated scraping.
Collect returns every gke cluster with a k8s service annotation that equals:
gke-prometheus-federation/scrape: true
Click to show internal directories.
Click to hide internal directories.