Giter Club home page Giter Club logo

hypershift-dataplane-metrics-forwarder's Introduction

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 an 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:

  • Issuer
  • Certificate
  • ConfigMap
  • Deployment
  • Service
  • Route

Additionally, the CMO on the dataplane is configured using another policy that only targets hosted clusters. There are two versios of the policy.

  • metrics-forwarder-config
  • metrics-forwarder-config-non-uwm

metrics-forwarder-config is applied by default unless a ManagedCluster has the label ext-managed.openshift.io/uwm-disabled set to true

Testing

Prerequisites

  • kubectl - You will need the Kubernetes CLI, kubectl, to deploy and interact with Package Operator and your packages.
  • kubectl-package - Package Operator provides a kubectl plugin to validate, package and inspect Package Operator packages. The binaries can be found on the Package Operator releases page.

The Package Operator includes a template test framework that makes it easier to identify template errors without having the need of deploying the Package.

For each template test, Package Operator will auto-generate fixtures into the .test-fixtures and the test cases that can be defined in the PackageManifest.

To validate the package run this command in the project's root:

$ kubectl package validate ./package

If you alter the source templates, either manually update the fixtures to satisfy our expectations - or delete the .test-fixtures directory, and the next kubectl package validate call will regenerate the directory, allowing you to review changes in git.

hypershift-dataplane-metrics-forwarder's People

Contributors

bmeng avatar bng0y avatar cblecker avatar coverprice avatar erdii avatar fahlmant avatar hectorakemp avatar iamkirkbater avatar jewzaam avatar luis-falcon avatar mjlshen avatar nautilux avatar openshift-ci[bot] avatar openshift-merge-bot[bot] avatar openshift-merge-robot avatar sam-nguyen7 avatar shitaljante avatar t0masd avatar tafhim avatar thetechnick avatar typeid avatar wanghaoran1988 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.