rh-build-of-opentelemetry

by tjungbauer

Helm chartv1.0.7App 1.0.0Apache-2.0Verified publisher

Configure Red Hat Build of OpenTelemetry Operator resources (Collector, Instrumentation, TargetAllocator).

About this chart

rh-build-of-opentelemetry

Description

Configure Red Hat Build of OpenTelemetry Operator resources (Collector, Instrumentation, TargetAllocator).

This Helm chart deploys and configures Red Hat Build of OpenTelemetry resources on OpenShift using the OpenTelemetry Operator. It provides a declarative way to manage:

  • OpenTelemetry Collector - Vendor-agnostic telemetry data collection
  • Instrumentation - Automatic instrumentation for multiple languages
  • Target Allocator - Prometheus target discovery and allocation

Prerequisites

Required

  • OpenShift 4.12+ or Kubernetes 1.24+
  • Red Hat Build of OpenTelemetry Operator installed
    • Install via: OperatorHub (OpenShift) or Operator Lifecycle Manager (OLM)
  • Helm 3.0+

Features

Core Features

  • ✅ OpenTelemetry Collector - Deploy as deployment, daemonset, statefulset, or sidecar
  • ✅ Auto-Instrumentation - Support for Java, Node.js, Python, .NET, Go, and Apache HTTPD
  • ✅ Target Allocator - Prometheus metrics target discovery and distribution
  • ✅ Full Configuration - Complete control over all resource configurations
  • ✅ OpenShift Compatible - Tested and optimized for Red Hat OpenShift

Validation

The chart includes validation for:

  • Collector modes: deployment, daemonset, statefulset, sidecar
  • Management states: managed, unmanaged
  • Sampler types: always_on, always_off, traceidratio, parentbased_*, jaeger_remote, xray
  • Allocation strategies: consistent-hashing, least-weighted

Dependencies

This chart has the following dependencies:

RepositoryNameVersion
https://charts.stderr.at/tpl~1.0.27

It is best used with a full GitOps approach such as Argo CD does. For example, https://github.com/tjungbauer/openshift-clusterconfig-gitops

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/rh-build-of-opentelemetry

Parameters

Verify the subcharts for additional settings:

Values

KeyTypeDefaultDescription
collector.config.exporters.debug.sampling_initialint5
collector.config.exporters.debug.sampling_thereafterint200
collector.config.exporters.debug.verbositystring"basic"
collector.config.exporters.loki.endpointstring"http://loki-gateway.loki.svc.cluster.local:3100/loki/api/v1/push"
collector.config.exporters.loki.labels.resource."k8s.container.name"string"container"
collector.config.exporters.loki.labels.resource."k8s.namespace.name"string"namespace"
collector.config.exporters.loki.labels.resource."k8s.pod.name"string"pod"
collector.config.exporters.otlp/tempo.endpointstring"tempo-gateway.tempo.svc.cluster.local:4317"
collector.config.exporters.otlp/tempo.tls.ca_filestring"/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
collector.config.exporters.otlp/tempo.tls.insecureboolfalse
collector.config.exporters.prometheusremotewrite.endpointstring"http://prometheus-server.monitoring.svc.cluster.local:9090/api/v1/write"
collector.config.exporters.prometheusremotewrite.resource_to_telemetry_conversion.enabledbooltrue
collector.config.processors.batch.send_batch_max_sizeint2048
collector.config.processors.batch.send_batch_sizeint1024
collector.config.processors.batch.timeoutstring"10s"
collector.config.processors.k8sattributes.auth_typestring"serviceAccount"
collector.config.processors.k8sattributes.extract.metadata[0]string"k8s.namespace.name"
collector.config.processors.k8sattributes.extract.metadata[1]string"k8s.deployment.name"
collector.config.processors.k8sattributes.extract.metadata[2]string"k8s.pod.name"
collector.config.processors.k8sattributes.extract.metadata[3]string"k8s.pod.uid"
collector.config.processors.k8sattributes.extract.metadata[4]string"k8s.node.name"
collector.config.processors.k8sattributes.passthroughboolfalse
collector.config.processors.memory_limiter.check_intervalstring"1s"
collector.config.processors.memory_limiter.limit_mibint3500
collector.config.processors.memory_limiter.spike_limit_mibint512
collector.config.processors.resource.attributes[0].actionstring"insert"
collector.config.processors.resource.attributes[0].keystring"cluster.name"
collector.config.processors.resource.attributes[0].valuestring"production-cluster"
collector.config.processors.resource.attributes[1].actionstring"insert"
collector.config.processors.resource.attributes[1].keystring"k8s.cluster.name"
collector.config.processors.resource.attributes[1].valuestring"production-cluster"
collector.config.processors.resource.attributes[2].actionstring"insert"
collector.config.processors.resource.attributes[2].keystring"deployment.environment"
collector.config.processors.resource.attributes[2].valuestring"production"
collector.config.receivers.jaeger.protocols.grpc.endpointstring"0.0.0.0:14250"
collector.config.receivers.jaeger.protocols.thrift_http.endpointstring"0.0.0.0:14268"
collector.config.receivers.otlp.protocols.grpc.endpointstring"0.0.0.0:4317"
collector.config.receivers.otlp.protocols.http.cors.allowed_origins[0]string"https://*.example.com"
collector.config.receivers.otlp.protocols.http.endpointstring"0.0.0.0:4318"
collector.config.receivers.prometheus.config.scrape_configs[0].job_namestring"otel-collector"
collector.config.receivers.prometheus.config.scrape_configs[0].scrape_intervalstring"30s"
collector.config.receivers.prometheus.config.scrape_configs[0].static_configs[0].targets[0]string"0.0.0.0:8888"
collector.config.service.pipelines.logs.exporters[0]string"loki"
collector.config.service.pipelines.logs.processors[0]string"memory_limiter"
collector.config.service.pipelines.logs.processors[1]string"k8sattributes"
collector.config.service.pipelines.logs.processors[2]string"resource"
collector.config.service.pipelines.logs.processors[3]string"batch"
collector.config.service.pipelines.logs.receivers[0]string"otlp"
collector.config.service.pipelines.metrics.exporters[0]string"prometheusremotewrite"
collector.config.service.pipelines.metrics.processors[0]string"memory_limiter"
collector.config.service.pipelines.metrics.processors[1]string"resource"
collector.config.service.pipelines.metrics.processors[2]string"batch"
collector.config.service.pipelines.metrics.receivers[0]string"otlp"
collector.config.service.pipelines.metrics.receivers[1]string"prometheus"
collector.config.service.pipelines.traces.exporters[0]string"otlp/tempo"
collector.config.service.pipelines.traces.processors[0]string"memory_limiter"
collector.config.service.pipelines.traces.processors[1]string"k8sattributes"
collector.config.service.pipelines.traces.processors[2]string"resource"
collector.config.service.pipelines.traces.processors[3]string"batch"
collector.config.service.pipelines.traces.receivers[0]string"otlp"
collector.config.service.pipelines.traces.receivers[1]string"jaeger"
collector.config.service.telemetry.logs.levelstring"info"
collector.config.service.telemetry.metrics.addressstring"0.0.0.0:8888"
collector.config.service.telemetry.metrics.levelstring"detailed"
collector.enabledbooltrue
collector.managementStatestring"managed"
collector.modestring"deployment"
collector.namestring"otel-collector"
collector.nodeSelector."node-role.kubernetes.io/worker"string""
collector.replicasint3
collector.resources.limits.cpuint2
collector.resources.limits.memorystring"4Gi"
collector.resources.requests.cpustring"500m"
collector.resources.requests.memorystring"1Gi"
collector.serviceAccount.createboolfalse
collector.serviceAccount.namestring"otel-collector-sa"
collector.tolerations[0].effectstring"NoSchedule"
collector.tolerations[0].keystring"node-role.kubernetes.io/infra"
collector.tolerations[0].operatorstring"Exists"
instrumentation.dotnet.env.OTEL_DOTNET_AUTO_METRICS_INSTRUMENTATION_ENABLEDstring"true"
instrumentation.dotnet.env.OTEL_DOTNET_AUTO_TRACES_INSTRUMENTATION_ENABLEDstring"true"
instrumentation.dotnet.env.OTEL_EXPORTER_OTLP_TIMEOUTstring"10000"
instrumentation.enabledbooltrue
instrumentation.exporter.endpointstring"http://otel-collector.opentelemetry.svc.cluster.local:4318"
instrumentation.java.env.OTEL_EXPORTER_OTLP_TIMEOUTstring"10000"
instrumentation.java.env.OTEL_INSTRUMENTATION_COMMON_PEER_SERVICE_MAPPINGstring"redis=redis-service,postgresql=postgres-service"
instrumentation.java.env.OTEL_LOGS_EXPORTERstring"otlp"
instrumentation.java.env.OTEL_METRICS_EXPORTERstring"otlp"
instrumentation.java.env.OTEL_TRACES_EXPORTERstring"otlp"
instrumentation.namestring"otel-instrumentation"
instrumentation.nodejs.env.OTEL_EXPORTER_OTLP_TIMEOUTstring"10000"
instrumentation.nodejs.env.OTEL_NODE_RESOURCE_DETECTORSstring"env,host,os,serviceinstance"
instrumentation.propagators[0]string"tracecontext"
instrumentation.propagators[1]string"baggage"
instrumentation.propagators[2]string"b3"
instrumentation.propagators[3]string"jaeger"
instrumentation.python.env.OTEL_EXPORTER_OTLP_TIMEOUTstring"10000"
instrumentation.python.env.OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLEDstring"true"
instrumentation.sampler.argumentstring"0.25"
instrumentation.sampler.typestring"parentbased_traceidratio"
namespace.createbooltrue
namespace.descrstring"Production OpenTelemetry Stack"
namespace.displaystring"OpenTelemetry Observability"
namespace.namestring"opentelemetry"
targetallocator.allocationStrategystring"consistent-hashing"
targetallocator.enabledbooltrue
targetallocator.env[0].namestring"OTEL_LOG_LEVEL"
targetallocator.env[0].valuestring"info"
targetallocator.namestring"otel-targetallocator"
targetallocator.nodeSelector."node-role.kubernetes.io/worker"string""
targetallocator.prometheusCR.enabledbooltrue
targetallocator.prometheusCR.podMonitorSelector.matchExpressions[0].keystring"monitoring"
targetallocator.prometheusCR.podMonitorSelector.matchExpressions[0].operatorstring"In"
targetallocator.prometheusCR.podMonitorSelector.matchExpressions[0].values[0]string"enabled"
targetallocator.prometheusCR.podMonitorSelector.matchExpressions[0].values[1]booltrue
targetallocator.prometheusCR.scrapeIntervalstring"30s"
targetallocator.prometheusCR.serviceMonitorSelector.matchLabels.prometheusstring"kube-prometheus"
targetallocator.replicasint2
targetallocator.resources.limits.cpuint1
targetallocator.resources.limits.memorystring"1Gi"
targetallocator.resources.requests.cpustring"200m"
targetallocator.resources.requests.memorystring"256Mi"
targetallocator.serviceAccountstring"otel-targetallocator-sa"

Component Details

OpenTelemetry Collector

The collector receives, processes, and exports telemetry data.

Deployment Modes:

  1. Deployment (default)

    • Stateless collector deployment
    • Horizontal scaling with replicas
    • Best for: General purpose collection
  2. DaemonSet

    • One collector pod per node
    • Collects node-level metrics
    • Best for: Log collection, node metrics
  3. StatefulSet

    • Stateful collector with persistent storage
    • Ordered deployment
    • Best for:

Deploy rh-build-of-opentelemetry with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rh-build-of-opentelemetry 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 chartrh-build-of-opentelemetry is pinned at v1.0.7 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