Skip to content

bmeng/hypershift-dataplane-metrics-forwarder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dataplane Metrics Forwarder

The dataplane metrics forwarder is a proxy that lives in each hosted control plane (HCP) namespace in management clusters. The main goal of this proxy is to let the hosted clusters push metrics to RHOBS. This proxy exposes a route that is known to the Cluster Monitoring Operator (CMO) running in the dataplane. The CMO pushes the metrics to this route. And the proxy simply forwards this request to the OpenShift Observability Operator (OBO) running on the relevant management cluster. This way the dataplane metrics ultimately end up in RHOBS.

Deployment process

The proxy is deployed using ACM policy. The ACM policy targets all management clusters and only HCP namespaces in those management clusters. It deploys a PKO package which deploys the resources the proxy needs. The resources it deploys are:

  • ServiceAccount
  • Role
  • RoleBinding
  • CronJob
  • Issuer
  • Certificate
  • ConfigMap
  • Deployment
  • Service
  • Route

Additionally, the CMO on the dataplane is configured using another policy that only targets hosted clusters.

Proxy initialization process

The proxy needs to be initialized to work properly. This phase might not be needed later if the root-ca contains certificates that are compatible with cert-manager. Initially, PKO package deploys 4 resources:

  • ServiceAccount
  • Role
  • RoleBinding
  • CronJob

This CronJob mainly recreates the root-ca in the HCP with names that are compatible with cert-manager.

About

Metrics forwarder proxy to forward data plane metrics to RHOBS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 68.4%
  • Makefile 25.3%
  • Dockerfile 6.3%