keptn-metrics-operator

by Keptn

Helm chartv0.5.0App v2.1.0Apache-2.0Verified publisher

A Helm chart for Keptn Metrics Operator, a subproject of Keptn

About this chart

Keptn Metrics Operator

Keptn Metrics Operator introduces a more cloud-native approach for handling all metrics related to your application and infrastructure. It represents metrics in a uniform format, facilitating the re-usability of this data across multiple components and allowing the usage of multiple observability platforms. You can write SLO and SLI based on multiple data coming from multiple sources such as: Prometheus, Dynatrace, DataDog and K8s metric server...

Parameters

Global parameters

NameDescriptionValue
global.certManagerEnabledEnable this value to install Keptn Certificate Managertrue
global.imageRegistryGlobal container image registryghcr.io
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.imagePullPolicyspecify global pull policy""
global.commonLabelsCommon labels to add to all Keptn resources. Evaluated as a template{}
global.commonAnnotationsCommon annotations to add to all Keptn resources. Evaluated as a template{}
global.caInjectionAnnotationsCA injection annotations for cert-manager.io configuration{}
global.openShift.enabledEnable this value to install on Openshiftfalse

Keptn Metrics Operator common

NameDescriptionValue
operatorService.ports[0]webhook port (must correspond to Mutating Webhook Configurations)
operatorService.ports[1]port to integrate with the K8s custom metrics API
operatorService.ports[2]port to integrate with metrics API (e.g. Keda)
operatorService.ports[0].namehttps
operatorService.ports[0].port8443
operatorService.ports[0].protocolTCP
operatorService.ports[0].targetPorthttps
operatorService.ports[1].namecustom-metrics
operatorService.ports[1].port443
operatorService.ports[1].targetPortcustom-metrics
operatorService.ports[2].namemetrics
operatorService.ports[2].port9999
operatorService.ports[2].protocolTCP
operatorService.ports[2].targetPortmetrics
operatorService.typeClusterIP
config.health.healthProbeBindAddresssetup on what address to start the default health handler:8081
config.leaderElection.leaderElectdecides whether to enable leader election with multiple replicastrue
config.leaderElection.resourceNamedefines LeaderElectionID3f8532ca.keptn.sh
config.metrics.bindAddressMetricsBindAddress is the TCP address that the controller should bind to for serving prometheus metrics. It can be set to "0" to disable the metrics serving.127.0.0.1:8080
config.webhook.port9443
MutatingWebhook Configurations for metrics Operator
webhookService.ports[0].port443
webhookService.ports[0].protocolTCP
webhookService.ports[0].targetPort9443
webhookService.typeClusterIP
nodeSelectoradd custom nodes selector to metrics operator{}
replicascustomize number of installed metrics operator replicas1
tolerationsadd custom tolerations to metrics operator[]
topologySpreadConstraintsadd custom topology constraints to metrics operator[]
annotationsadd deployment level annotations{}
podAnnotationsadds pod level annotations{}
kubernetesClusterDomainoverrides cluster.localcluster.local
customMetricsAPIService.enabledenable/disable the installation of custom metrics API Servicetrue

Keptn Metrics Operator controller

NameDescriptionValue
containerSecurityContextSets security context privileges
containerSecurityContext.allowPrivilegeEscalationfalse
containerSecurityContext.capabilities.drop["ALL"]
containerSecurityContext.privilegedfalse
containerSecurityContext.runAsGroup65532
containerSecurityContext.runAsNonRoottrue
containerSecurityContext.runAsUser65532
containerSecurityContext.seccompProfile.typeRuntimeDefault
env.exposeKeptnMetricsenable metrics exportertrue
env.metricsControllerLogLevelsets the log level of Metrics Controller0
env.analysisControllerLogLevelsets the log level of Analysis Controller0
image.registryspecify the container registry for the metrics-operator image""
image.repositoryspecify registry for manager imagekeptn/metrics-operator
image.tagselect tag for manager imagev2.1.0
image.imagePullPolicyspecify pull policy for the manager image. This overrides global values""
livenessProbecustom livenessprobe for manager container
readinessProbecustom readinessprobe for manager container
resourcesspecify limits and requests for manager container

Deploy keptn-metrics-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has keptn-metrics-operator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartkeptn-metrics-operator is pinned at v0.5.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply