otel-collector

by arieotech

Helm chartv0.1.0App 0.154.0Apache-2.0Verified publisher

Production-grade OpenTelemetry Collector. Fixes the incomplete default image (upstream issue #1055), adds full JSON Schema validation, Istio Ambient Mesh support, PSA restricted-mode security, and SOC2/DPDP compliance defaults. Supports Deployment and DaemonSet modes.

About this chart

otel-collector

Production-grade OpenTelemetry Collector Helm chart by Arieotech.

Why this chart?

The upstream opentelemetry-collector chart ships an incomplete default image (issue #1055), has no JSON Schema validation, and lacks Istio Ambient Mesh support. This chart fixes all three.

Key differentiators:

FeatureUpstream chartThis chart
Default imageotel/opentelemetry-collector (core, missing receivers)otel/opentelemetry-collector-contrib (full distribution)
JSON SchemaNoneFull values.schema.json, rejects latest tags
Istio AmbientNot supportedistio.io/dataplane-mode: ambient label + ztunnel exclusions
PSA restrictedNot enforcedAll containers PSA restricted-compatible
NetworkPolicyOpt-in, incompleteEnabled by default, deny-all + allow-list
SOC2/DPDPNoneStructured JSON logging, PII masking toggle

Quick start

helm repo add arieotech https://arieotech.github.io/helm-charts
helm repo update
helm install otel-collector arieotech/otel-collector \
  --namespace observability \
  --create-namespace \
  --set config.exporters.otlp.endpoint=https://your-backend:4317

Deployment modes

Set mode: deployment (default) for a central gateway or mode: daemonset for node-level agents.

## Node agent (DaemonSet)
helm install otel-node-agent arieotech/otel-collector \
  --set mode=daemonset \
  --set replicaCount=1

Configuration

The collector pipeline is configured via values.config, which is rendered as YAML into a ConfigMap and mounted read-only into the collector container. Changing any value under config.* triggers an automatic rolling restart via ConfigMap checksum annotation.

Minimal production configuration:

config:
  receivers:
    otlp:
      protocols:
        grpc:
          endpoint: "0.0.0.0:4317"
        http:
          endpoint: "0.0.0.0:4318"
  processors:
    memory_limiter:
      check_interval: 5s
      limit_percentage: 80
      spike_limit_percentage: 25
    batch:
      send_batch_size: 10000
      timeout: 10s
  exporters:
    otlp:
      endpoint: "https://your-signoz-or-jaeger:4317"
  extensions:
    health_check:
      endpoint: "0.0.0.0:13133"
  service:
    extensions: [health_check]
    pipelines:
      traces:
        receivers: [otlp]
        processors: [memory_limiter, batch]
        exporters: [otlp]
      metrics:
        receivers: [otlp]
        processors: [memory_limiter, batch]
        exporters: [otlp]
      logs:
        receivers: [otlp]
        processors: [memory_limiter, batch]
        exporters: [otlp]

Istio Ambient Mesh

istio:
  ambient:
    enabled: true
    excludedPorts:
      - 13133  # health check — must reach kubelet directly
      - 8888   # self-metrics — must reach Prometheus directly

ServiceMonitor (Prometheus Operator)

metrics:
  enabled: true
  serviceMonitor:
    enabled: true
    labels:
      release: kube-prometheus-stack

SOC2 compliance

Enabled by default (soc2.auditLogging.enabled: true). Forces structured JSON log encoding at INFO level minimum. Disable only in development:

soc2:
  auditLogging:
    enabled: false

DPDP compliance

Enable PII masking when processing logs that may contain personal data:

dpdp:
  piiMasking:
    enabled: true
  dataResidency:
    enabled: true
    region: "ap-south-1"

When piiMasking.enabled: true, add a transform processor to your pipeline that redacts known PII fields (email, IP addresses, user IDs) before export.

Production checklist

  • [ ] config.exporters.otlp.endpoint set to your observability backend
  • [ ] image.digest set for immutable pinning (preferred over tag in production)
  • [ ] resources.requests and resources.limits tuned for expected throughput
  • [ ] config.processors.memory_limiter.limit_percentage tuned (default 80%)
  • [ ] replicaCount >= 2 (default) for HA in Deployment mode
  • [ ] pdb.enabled: true (default)
  • [ ] networkPolicy.enabled: true (default)
  • [ ] metrics.serviceMonitor.enabled: true if using Prometheus Operator
  • [ ] metrics.prometheusRule.enabled: true for alerting
  • [ ] soc2.auditLogging.enabled: true (default)
  • [ ] TLS configured on the OTLP exporter endpoint when soc2.enforceTLS: true

Parameters

KeyTypeDefaultDescription
modestringdeploymentWorkload type: deployment or daemonset
replicaCountint2Replicas (ignored for daemonset)
image.registrystringdocker.ioImage registry
image.repositorystringotel/opentelemetry-collector-contribImage repository
image.tagstring0.154.0Image tag (latest rejected)
image.digeststring""Image digest (overrides tag)
configobjectsee values.yamlFull OTel Collector pipeline YAML
ports.otlp.enabledbooltrueEnable OTLP gRPC port 4317
ports.otlpHttp.enabledbooltrueEnable OTLP HTTP port 4318
ports.metrics.enabledbooltrueEnable self-metrics port 8888
ports.healthCheck.enabledbooltrueEnable health check port 13133
networkPolicy.enabledbooltrueEnable deny-all NetworkPolicy
pdb.enabledbooltrueEnable PodDisruptionBudget
autoscaling.enabledboolfalseEnable HPA
metrics.serviceMonitor.enabledboolfalseEnable Prometheus Operator ServiceMonitor
metrics.prometheusRule.enabledboolfalseEnable PrometheusRule alerts
istio.ambient.enabledboolfalseEnable Istio Ambient Mesh labels
soc2.auditLogging.enabledbooltrueEnforce JSON structured logging
soc2.enforceTLSbooltrueEnforce TLS on exporter connections

Source / Issues

  • Chart source: https://github.com/arieotech/helm-charts/tree/main/charts/otel-collector
  • OTel Collector docs: https://opentelemetry.io/docs/collector/
  • Upstream issue (incomplete default image): https://github.com/open-telemetry/opentelemetry-helm-charts/issues/1055

Deploy otel-collector with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has otel-collector 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 chartotel-collector is pinned at v0.1.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