operator

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

README

Operator

This binary is a Kubernetes operator that provides Managed Collection for Google Cloud Prometheus Engine on Kubernetes.

Run

Create or update cluster resources required by the operator.

kubectl apply -f deploy/operator/

Run the operator locally (requires active kubectl context to have all permissions the operator needs):

go run main.go

Setup the builtin monitoring stack to collect cluster-level metrics::

kubectl apply -f deploy/ --recursive

The operator updates the configuration of all collectors after which they start scraping various metric endpoints.

Verify by port-forwarding an arbitrary collector and inspect its UI. You should see various targets being scraped successfully.

kubectl -n gpe-system port-forward --address 0.0.0.0 collector 9090

Go to http://localhost:9090/targets.

Teardown

Simply stop running the operator locally and remove all manifests in the cluster with:

kubectl delete -f deploy/ --recursive

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL