Documentation ¶
Overview ¶
Package gke implements service discovery for GKE clusters with k8s services annotated for federation collection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service contains necessary data for service discovery in GKE.
func MustNewService ¶
MustNewService creates a new GKE service discovery instance. The function exits if an error occurs during setup.
func (*Service) Discover ¶
Discover 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.