OpenTelemetry Collector Values Schema

Schema for OpenTelemetry Collector configuration values

This schema defines the configuration used to deploy the OpenTelemetry Collector for a PAS-X MES System.

The MES OpenTelemetry Collector receives telemetry data from PAS-X MES services and components via OTLP and forwards it to the configured backend via OTLP.

The telemetry data collection for database metrics, RabbitMQ metrics, and Kubernetes events/metrics can be enabled or disabled as needed.

Examples

General Configuration

Minimal example — OTLP receive, forward to remote collector
exporters:
  otlpEndpoint: "infra-otel.otel.svc.cluster.local:4317"
  protocol: "grpc"

identification:
  customer: "<customer>"
  environment: "<pasx-environment>"
  site: "<pasx-site>"
  systemName: "<pasx-system-name>"

Resource Configuration

Example — Define CPU and memory requests and limits
resources:
  requests:
    cpu: "1"
    memory: "1Gi"
  limits:
    cpu: "2"
    memory: "2Gi"

Database Configuration

Credentials are stored in a Kubernetes Secret referenced by credentialsSecretName. The Secret must contain username and password keys.

Set telemetry.database.type to "postgres" or "oracle" to select the appropriate receiver.

Example — PostgreSQL without TLS
telemetry:
  database:
    enabled: true
    type: "postgres"
    host: "postgres.namespace.svc.cluster.local"
    port: 5432
    databaseName: "mesdb"
    credentialsSecretName: "otel-db-credentials"
    collectInterval: "60s"
Example — PostgreSQL with TLS (CA certificate)

The certificateSecretName must reference a Kubernetes Secret with the key ca.crt.

telemetry:
  database:
    enabled: true
    type: "postgres"
    host: "postgres.namespace.svc.cluster.local"
    port: 5432
    databaseName: "mesdb"
    credentialsSecretName: "otel-db-credentials"
    collectInterval: "60s"
    postgresql:
      useTLS: true
      certificateSecretName: "otel-db-tls-certs"
Example — Oracle DB

For Oracle DB, databaseName is used as the Oracle service name.

telemetry:
  database:
    enabled: true
    type: "oracle"
    host: "oracle.namespace.svc.cluster.local"
    port: 1521
    databaseName: "XE"
    credentialsSecretName: "otel-db-credentials"
    collectInterval: "60s"

RabbitMQ Configuration

Example — Enable RabbitMQ metrics scraping
telemetry:
  rabbitmq:
    enabled: true
    clusterName: "rabbitmq"
    replicas: 3

Kubernetes Telemetry Configuration

Example — Enable Kubernetes events and cluster metrics collection
telemetry:
  kubernetes:
    events:
      enabled: true
    clusterMetrics:
      enabled: true

Exporter Configuration

Configuration for the exporters where to forward telemetry data

Key

exporters

Type

object

Required

No

Properties

OTLP Endpoint

The endpoint to export telemetry to. For gRPC use host:4317. If not set, points to the Infra-OTel default gRPC endpoint.

Key

exporters.otlpEndpoint

Type

string

Required

No

Default

infra-otel.otel.svc.cluster.local:4317

Protocol

Transport protocol for the OTLP exporter. Use "grpc" or "http" for the OpenTelemetry exporter.

Key

exporters.protocol

Type

string

Required

No

Default

grpc

Enum

  • grpc

  • http

System Identification

Metadata attributes attached to all telemetry data to identify the PAS-X installation. Used to populate resource attributes on all metrics, logs, and traces.

Key

identification

Type

object

Required

Yes

Properties

Customer

Name of the customer.

Key

identification.customer

Type

string

Required

Yes

Environment

Deployment environment (e.g. production, staging).

Key

identification.environment

Type

string

Required

Yes

Site

Physical or logical site identifier.

Key

identification.site

Type

string

Required

Yes

System Name

Name of the PAS-X system.

Key

identification.systemName

Type

string

Required

Yes

Image configuration

Configuration for the images used in the deployment.

If all images are hosted in the same registry take this configuration to the global values file to avoid redundant configuration.

Key

image

Type

object

Required

Yes

Properties

List of Image Pull Secret Names

List of secret names used to authenticate when pulling images from a container registry

Key

image.pullSecretNames

Type

Array of string

Required

No

Image Registry

The image registry to pull the images from.

Key

image.registry

Type

string

Required

Yes

Image Repository

The image repository path to pull the images from.

Key

image.repository

Type

string

Required

No

Default

""

Flatten Image Names

If true, use only the last path segment of each image name under the configured registry and repository. Use this when the target registry requires flat image names.

Key

image.useFlattenedImageNames

Type

boolean

Required

No

Default

false

Resource Configuration

CPU and memory resource requests and limits for the OTel Collector container.

Key

resources

Type

object

Required

No

Properties

Limits

CPU and memory limits for the collector container. This is the maximum amount of resources that the container is allowed to use.

Key

resources.limits

Type

object

Required

No

Properties

CPU Limit

CPU limit for the collector container (e.g. "500m", "2").

Key

resources.limits.cpu

Type

string

Required

No

Default

2

Memory Limit

Memory limit for the collector container (e.g. "512Mi", "2Gi").

Key

resources.limits.memory

Type

string

Required

No

Default

2Gi

Requests

CPU and memory requests for the collector container. This is the amount of resources that Kubernetes will guarantee for the container.

Key

resources.requests

Type

object

Required

No

Properties

CPU Request

CPU request for the collector container (e.g. "500m", "1").

Key

resources.requests.cpu

Type

string

Required

No

Default

1

Memory Request

Memory request for the collector container (e.g. "512Mi", "1Gi").

Key

resources.requests.memory

Type

string

Required

No

Default

1Gi

Service Account Configuration

Configuration for the service account.

Key

serviceAccount

Type

object

Required

No

Properties

Create Service Account

Whether to create a new service account.

Key

serviceAccount.create

Type

boolean

Required

No

Default

true

Service Account Name

The name of the service account to use. If not specified and serviceAccount.create is true, a service account will be created using the chart’s fully qualified name. If create is false and no name is specified, the default service account will be used.

Key

serviceAccount.name

Type

string

Required

No

Default

""

Telemetry Configuration

Controls which telemetry sources are collected by the MES OpenTelemetry Collector.

Key

telemetry

Type

object

Required

No

Properties

Database Configuration

Connection details for the monitored database. Supports PostgreSQL and Oracle DB.

Key

telemetry.database

Type

object

Required

No

Properties

Collection Interval

How often the database receiver collects metrics. Must be a valid duration string (e.g. 60s, 5m).

Key

telemetry.database.collectInterval

Type

string

Required

No

Default

60s

Credentials Secret Name

Name of the Kubernetes Secret containing the username and password used to authenticate with the database. Required when database metrics are enabled.

Key

telemetry.database.credentialsSecretName

Type

string

Required

No

Database Name

Name of the database to collect metrics from. For Oracle DB this is the service name. Required when database metrics are enabled.

Key

telemetry.database.databaseName

Type

string

Required

No

Enable Database Metrics

When true, activates metrics collection for the database.

Key

telemetry.database.enabled

Type

boolean

Required

No

Default

true

Database Host

Hostname or IP address of the database server. Required when database metrics are enabled.

Key

telemetry.database.host

Type

string

Required

No

Database Port

Port of the database server. Required when database metrics are enabled.

Key

telemetry.database.port

Type

integer

Required

No

PostgreSQL Configuration

PostgreSQL-specific settings. Only applied when type is "postgres".

Key

telemetry.database.postgresql

Type

object

Required

No

Properties

PostgreSQL Certificate Secret Name

Name of the Kubernetes Secret containing the CA certificate (ca.crt) used to verify the PostgreSQL server’s TLS certificate. Only used when useTLS is true.

Key

telemetry.database.postgresql.certificateSecretName

Type

string

Required

No

Default

""

Skip TLS Verification

When true, skips PostgreSQL server certificate and hostname verification on the OpenTelemetry PostgreSQL receiver. Only used when useTLS is true.

Key

telemetry.database.postgresql.skipTLSVerification

Type

boolean

Required

No

Default

false

SQL Query Telemetry

PostgreSQL SQL-query telemetry.

Key

telemetry.database.postgresql.sqlQuery

Type

object

Required

No

Properties

SQL Query Logs

Exports query text and statistics as logs.

Key

telemetry.database.postgresql.sqlQuery.logs

Type

object

Required

No

Properties

Collection Interval

Interval between SQL log collections.

Key

telemetry.database.postgresql.sqlQuery.logs.collectionInterval

Type

string

Required

No

Default

24h

Enable SQL Query Logs

Enables SQL-query logs when PostgreSQL database collection is enabled.

Key

telemetry.database.postgresql.sqlQuery.logs.enabled

Type

boolean

Required

No

Default

true

Query Timeout

Maximum execution time per SQL query.

Key

telemetry.database.postgresql.sqlQuery.logs.timeout

Type

string

Required

No

Default

2m

SQL Query Metrics

Collects PostgreSQL database metrics using SQL queries.

Key

telemetry.database.postgresql.sqlQuery.metrics

Type

object

Required

No

Properties

Collection Interval

Interval between SQL metrics collections.

Key

telemetry.database.postgresql.sqlQuery.metrics.collectionInterval

Type

string

Required

No

Default

60s

Enable SQL Query Metrics

Enables SQL-query metrics when PostgreSQL database collection is enabled.

Key

telemetry.database.postgresql.sqlQuery.metrics.enabled

Type

boolean

Required

No

Default

true

Query Timeout

Maximum execution time per SQL query.

Key

telemetry.database.postgresql.sqlQuery.metrics.timeout

Type

string

Required

No

Default

30s

Use TLS

When true, enables TLS for the PostgreSQL connection. Requires certificateSecretName to be set for full certificate validation.

Key

telemetry.database.postgresql.useTLS

Type

boolean

Required

No

Default

false

Database Type

The type of database to monitor. Use "postgres" to activate the PostgreSQL receiver or "oracle" to activate the Oracle DB receiver. Required when database metrics are enabled.

Key

telemetry.database.type

Type

string

Required

No

Enum

  • postgres

  • oracle

Kubernetes Telemetry

Controls collection of Kubernetes events and metrics.

Key

telemetry.kubernetes

Type

object

Required

No

Properties

Cluster Metrics

Collects Kubernetes cluster-level metrics for the PAS-X installation namespace.

Key

telemetry.kubernetes.clusterMetrics

Type

object

Required

No

Properties

Collection Interval

How often the k8s_cluster receiver collects metrics. Must be a valid duration string (e.g. 60s, 5m).

Key

telemetry.kubernetes.clusterMetrics.collectInterval

Type

string

Required

No

Default

60s

Enable Cluster Metrics

When true, activates collection of Kubernetes cluster metrics.

Key

telemetry.kubernetes.clusterMetrics.enabled

Type

boolean

Required

No

Default

true

Kubernetes Events

Collects Kubernetes events as logs for the PAS-X installation namespace.

Key

telemetry.kubernetes.events

Type

object

Required

No

Properties

Collection Interval

How often the receiver polls for new events. Must be a valid duration string (e.g. 60s, 5m).

Key

telemetry.kubernetes.events.collectInterval

Type

string

Required

No

Default

60s

Enable Kubernetes Events

When true, activates collection of Kubernetes events.

Key

telemetry.kubernetes.events.enabled

Type

boolean

Required

No

Default

true

RabbitMQ Configuration

Configuration for the RabbitMQ metrics.

Key

telemetry.rabbitmq

Type

object

Required

No

Properties

Cluster Name

Name of the RabbitMQ cluster. Used to build the targets for Prometheus scraping.

Key

telemetry.rabbitmq.clusterName

Type

string

Required

No

Default

rabbitmq

Collection Interval

How often the receiver scrapes RabbitMQ metrics. Must be a valid duration string (e.g. 60s, 5m).

Key

telemetry.rabbitmq.collectInterval

Type

string

Required

No

Default

60s

Enable RabbitMQ Receiver

When true, activates collection of RabbitMQ metrics.

Key

telemetry.rabbitmq.enabled

Type

boolean

Required

No

Default

true

Replicas

Number of RabbitMQ nodes to scrape. Must match the replica count of the rabbitmq-cluster. Each node exposes node-specific metrics and must be scraped individually.

Key

telemetry.rabbitmq.replicas

Type

integer

Required

No

Default

3

Tracing Configuration

Configuration for processing trace telemetry received through OTLP.

Key

telemetry.tracing

Type

object

Required

No

Properties

Tail Sampling

Configuration for tail-based trace sampling.

Key

telemetry.tracing.tailSampling

Type

object

Required

No

Properties

Enable Tail Sampling

When true, the collector exports traces that indicate a slowly running system or contain logged errors. When false, all received traces are exported.

Key

telemetry.tracing.tailSampling.enabled

Type

boolean

Required

No

Default

true