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
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
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.
telemetry:
database:
enabled: true
type: "postgres"
host: "postgres.namespace.svc.cluster.local"
port: 5432
databaseName: "mesdb"
credentialsSecretName: "otel-db-credentials"
collectInterval: "60s"
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"
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"
Exporter Configuration
Configuration for the exporters where to forward telemetry data
Key |
|
Type |
object |
Required |
No |
Properties |
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 |
|
Type |
object |
Required |
Yes |
Properties |
|
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 |
|
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 |
|
Type |
Array of string |
Required |
No |
Image Registry
The image registry to pull the images from.
Key |
|
Type |
string |
Required |
Yes |
Resource Configuration
CPU and memory resource requests and limits for the OTel Collector container.
Key |
|
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 |
|
Type |
object |
Required |
No |
Properties |
Requests
CPU and memory requests for the collector container. This is the amount of resources that Kubernetes will guarantee for the container.
Key |
|
Type |
object |
Required |
No |
Properties |
Service Account Configuration
Configuration for the service account.
Key |
|
Type |
object |
Required |
No |
Properties |
Create Service Account
Whether to create a new service account.
Key |
|
Type |
boolean |
Required |
No |
Default |
|
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 |
|
Type |
string |
Required |
No |
Default |
"" |
Telemetry Configuration
Controls which telemetry sources are collected by the MES OpenTelemetry Collector.
Key |
|
Type |
object |
Required |
No |
Properties |
Database Configuration
Connection details for the monitored database. Supports PostgreSQL and Oracle DB.
Key |
|
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 |
|
Type |
string |
Required |
No |
Default |
|
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 |
|
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 |
|
Type |
string |
Required |
No |
Enable Database Metrics
When true, activates metrics collection for the database.
Key |
|
Type |
boolean |
Required |
No |
Default |
|
Database Host
Hostname or IP address of the database server. Required when database metrics are enabled.
Key |
|
Type |
string |
Required |
No |
Database Port
Port of the database server. Required when database metrics are enabled.
Key |
|
Type |
integer |
Required |
No |
PostgreSQL Configuration
PostgreSQL-specific settings. Only applied when type is "postgres".
Key |
|
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 |
|
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 |
|
Type |
boolean |
Required |
No |
Default |
|
SQL Query Telemetry
PostgreSQL SQL-query telemetry.
Key |
|
Type |
object |
Required |
No |
Properties |
SQL Query Logs
Exports query text and statistics as logs.
Key |
|
Type |
object |
Required |
No |
Properties |
Collection Interval
Interval between SQL log collections.
Key |
|
Type |
string |
Required |
No |
Default |
|
Enable SQL Query Logs
Enables SQL-query logs when PostgreSQL database collection is enabled.
Key |
|
Type |
boolean |
Required |
No |
Default |
|
Query Timeout
Maximum execution time per SQL query.
Key |
|
Type |
string |
Required |
No |
Default |
|
SQL Query Metrics
Collects PostgreSQL database metrics using SQL queries.
Key |
|
Type |
object |
Required |
No |
Properties |
Collection Interval
Interval between SQL metrics collections.
Key |
|
Type |
string |
Required |
No |
Default |
|
Kubernetes Telemetry
Controls collection of Kubernetes events and metrics.
Key |
|
Type |
object |
Required |
No |
Properties |
Cluster Metrics
Collects Kubernetes cluster-level metrics for the PAS-X installation namespace.
Key |
|
Type |
object |
Required |
No |
Properties |
Kubernetes Events
Collects Kubernetes events as logs for the PAS-X installation namespace.
Key |
|
Type |
object |
Required |
No |
Properties |
RabbitMQ Configuration
Configuration for the RabbitMQ metrics.
Key |
|
Type |
object |
Required |
No |
Properties |
Cluster Name
Name of the RabbitMQ cluster. Used to build the targets for Prometheus scraping.
Key |
|
Type |
string |
Required |
No |
Default |
|
Collection Interval
How often the receiver scrapes RabbitMQ metrics. Must be a valid duration string (e.g. 60s, 5m).
Key |
|
Type |
string |
Required |
No |
Default |
|