Documentation ¶
Overview ¶
Package aeflex implements service discovery for GCE VMs running in App Engine Flex.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ServiceCount is the current number of AEFlex services. // // Provides metrics: // gcp_aeflex_services // Example usage: // ServiceCount.Set(count) ServiceCount = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "gcp_aeflex_services", Help: "Number of active AEFlex services.", }, ) // VersionCount is the current number of available versions. // // Provides metrics: // gcp_aeflex_versions{service="etl-batch-parser"} // Example usage: // VersionCount.WithLabelValues("etl-batch-parser").Set(count) VersionCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "gcp_aeflex_versions", Help: "Total number of versions.", }, []string{"service"}, ) // InstanceCount is the current number of serving instances. // // Provides metrics: // gcp_aeflex_instances{service="etl-batch-parser", serving="true"} // Example usage: // InstanceCount.WithLabelValues("etl-batch-parser", "true").Set(count) InstanceCount = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "gcp_aeflex_instances", Help: "Total number of running serving instances.", }, []string{"service", "active"}, ) )
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 App Engine Flex Sources.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source caches information collected from the App Engine Admin API during target discovery.
Click to show internal directories.
Click to hide internal directories.