Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultOperatorNamespace is the namespace in which all resources owned by the operator are installed. DefaultOperatorNamespace = "gmp-system" // DefaultPublicNamespace is the namespace where the operator will check for user-specified // configuration data. DefaultPublicNamespace = "gmp-public" // Fixed names used in various resources managed by the operator. NameOperator = "gmp-operator" // The well-known app name label. LabelAppName = "app.kubernetes.io/name" // The component name, will be exposed as metric name. AnnotationMetricName = "components.gke.io/component-name" // The official images to be used with this version of the operator. For debugging // and emergency use cases they may be overwritten through options. ImageCollector = "gke.gcr.io/prometheus-engine/prometheus:v2.28.1-gmp.5-gke.0" ImageConfigReloader = "gke.gcr.io/prometheus-engine/config-reloader:v0.3.1-gke.0" ImageRuleEvaluator = "gke.gcr.io/prometheus-engine/rule-evaluator:v0.3.1-gke.0" // The k8s Application, will be exposed as component name. KubernetesAppName = "app" CollectorAppName = "managed-prometheus-collector" RuleEvaluatorAppName = "managed-prometheus-rule-evaluator" )
View Source
const ( NameOperatorConfig = "config" NameRuleEvaluator = "rule-evaluator" NameCollector = "collector" )
Base resource names which may be used for multiple different resource kinds related to the given component.
View Source
const ( RulesSecretName = "rules" CollectionSecretName = "collection" RuleEvaluatorPort = 19092 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator to implement managed collection for Google Prometheus Engine.
type Options ¶
type Options struct { // ID of the project of the cluster. ProjectID string // Location of the cluster. Location string // Name of the cluster the operator acts on. Cluster string // Disable exporting to GCM (mostly for testing). DisableExport bool // Namespace to which the operator deploys any associated resources. OperatorNamespace string // Namespace to which the operator looks for user-specified configuration // data, like Secrets and ConfigMaps. PublicNamespace string // Listening port of the collector. Configurable to allow multiple // simultanious collector deployments for testing purposes while each // collector runs on the host network. CollectorPort int32 // Image for the Prometheus collector container. ImageCollector string // Image for the Prometheus config reloader. ImageConfigReloader string // Image for the Prometheus rule-evaluator. ImageRuleEvaluator string // Whether to deploy pods with hostNetwork enabled. This allow pods to run with the GCE compute // default service account even on GKE clusters with Workload Identity enabled. // It must be set to false for GKE Autopilot clusters. HostNetwork bool // Priority class for the collector pods. PriorityClass string // Certificate of the server in base 64. TLSCert string // Key of the server in base 64. TLSKey string // Certificate authority in base 64. CACert string // Endpoint of the Cloud Monitoring API to be used by all collectors. CloudMonitoringEndpoint string // Webhook serving address. ListenAddr string }
Options for the Operator.
Directories ¶
Path | Synopsis |
---|---|
apis
|
|
monitoring/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
|
Package v1alpha1 is the v1alpha1 version of the API. |
generated
|
|
clientset/versioned
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
clientset/versioned/typed/monitoring/v1alpha1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
clientset/versioned/typed/monitoring/v1alpha1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
Click to show internal directories.
Click to hide internal directories.