Skip to main content

FAQs

Check out these frequently asked questions regarding Kubernetes Observability using OpenTelemetry.

How do I upgrade the Otel integration chart to its latest version?​

STEP 1. Ensure that your existing Values YAML file is aligned with the latest values.yaml file. This is to avoid configuration issues that may arise.

STEP 2. Update the chart repository listing, assuming the OpenTelemetry Integration chart is named otel-integration.

helm repo update coralogix

STEP 3. Compare the latest chart version with the Helm installed chart version.

helm search repo coralogix | grep otel-integration
helm list -n $NAMESPACE

STEP 4. Upgrade to the latest with the following command:

How do I rotate my Coralogix API key?​

Rotating the key has one requirement that is easy to miss: after you update the secret, the collectors must restart before the new key takes effect.

A running pod keeps the old key until it restarts

The chart reads your Send-Your-Data API key from the coralogix-keys secret into the CORALOGIX_PRIVATE_KEY environment variable, which each collector resolves as ${env:CORALOGIX_PRIVATE_KEY} when its container starts. Container environment variables are fixed at start time, so a pod keeps the old key after the secret changes, however you update it.

Rotate in the order below to keep ingestion running. Both keys stay valid from STEP 1 until you revoke the old one in STEP 5, so no telemetry is dropped in between.

STEP 1. Create a new Send-Your-Data API key. Navigate to Settings, then API Keys.

STEP 2. Update the coralogix-keys secret in the namespace where the chart is installed:

kubectl create secret generic coralogix-keys -n $NAMESPACE \
--from-literal=PRIVATE_KEY="<your-new-private-key>" \
--dry-run=client -o yaml | kubectl apply -f -
Note

When a controller syncs coralogix-keys from an external secret store, update the key in that store instead and wait for the controller to propagate it, then continue with STEP 3.

STEP 3. Restart the collector workloads. Every workload the chart installs carries an app.kubernetes.io/instance label set to the Helm release name, so a single label-scoped command restarts every workload in the release, including the node agent, the cluster collector, and any optional components you enabled, such as the gateway, the receiver, and the EKS Fargate collectors. Run helm list -n $NAMESPACE to get the release name. When you installed the chart through the OpenTelemetry Operator, the operator owns the collector workloads and these names and labels do not apply; restart the workloads the operator created in your namespace instead.

kubectl rollout restart daemonset,deployment,statefulset -n $NAMESPACE \
-l app.kubernetes.io/instance=<your-release-name>

A default installation enables two workloads, which you can also restart by name:

kubectl rollout restart daemonset/coralogix-opentelemetry-agent -n $NAMESPACE
kubectl rollout restart deployment/coralogix-opentelemetry-collector -n $NAMESPACE
Note

helm upgrade on its own does not restart pods when only the contents of the secret changed, because the pod spec stays the same. Restart the workloads with the commands above.

STEP 4. Confirm the rollout finished, then confirm Coralogix is still receiving data:

kubectl rollout status daemonset/coralogix-opentelemetry-agent -n $NAMESPACE
kubectl rollout status deployment/coralogix-opentelemetry-collector -n $NAMESPACE
A completed rollout does not prove the new key works

An invalid key does not stop the collector: the pods stay Running and the exporter fails in the background. In Coralogix, select Explore, then Logs, and confirm the cluster is still sending data before you revoke the old key.

When data has stopped arriving, check the collector logs for export errors and see Troubleshooting.

kubectl logs -n $NAMESPACE daemonset/coralogix-opentelemetry-agent

STEP 5. Revoke the old key from the API Keys page.

How do I prevent telemetry from being exported to Coralogix?​

In cases where telemetry data (such as logs, metrics, or traces) and their corresponding metadata are no longer needed for observability in Coralogix, the Coralogix Exporter can be replaced with the Debug Exporter. This ensures that the telemetry data is not sent to Coralogix. It is important to note that at least one exporter is required, otherwise the Debug Exporter will fail.

Below is an example that demonstrates the definition and configuration of the Debug Exporter for traces.

opentelemetry-agent:
config:
exporters:
debug: # Define the debug exporter here
verbosity: detailed
coralogix:
timeout: "30s"
private_key: "${CORALOGIX_PRIVATE_KEY}"
domain: "{{ .Values.global.domain }}"
application_name: "{{ .Values.global.defaultApplicationName }}"
subsystem_name: "{{ .Values.global.defaultSubsystemName }}"
service:
pipelines:
metrics:
exporters:
- coralogix
processors:
- batch
receivers:
- otlp
traces:
exporters:
- debug # Enable only the Debug Exporter for Traces
processors:
- batch
receivers:
- otlp
logs:
exporters:
- coralogix
processors:
- batch
receivers:
- otlp

How do I fix multi-line logs using recombine FileLog Operator?​

In the case of multi-line logs, a single logical log entry may exist in multiple lines, resulting in multiple log records by default. The OpenTelemetry Integration Helm Chart includes a commented section in the values.yaml file to address this issue. Navigate to presets > logsCollection > extraFilelogOperators.

presets:
metadata:
enabled: true
clusterName: "{{.Values.global.clusterName}}"
integrationName: "coralogix-integration-helm"
logsCollection:
enabled: true
storeCheckpoints: true
maxRecombineLogSize: 1048576
extraFilelogOperators: []
# - type: recombine
# combine_field: body
# source_identifier: attributes["log.file.path"]
# is_first_entry: body matches "^(YOUR-LOGS-REGEX)"

The extraFilelogOperators is an array where we can define any additional Filelog Operators that we want to leverage when shipping logs.

Uncomment the example with the recombine operator. This operator is used to recombine log entries from a single log file, as defined by the source_identifier looking at the log.file.path attribute, in cases where multi-line has occurred. To achieve this, a regex is defined for the first line of the log using the is_first_entry field.

A working example of a values.yaml file can be seen below:

global:
domain: "eu2.coralogix.com"
clusterName: "coralogix-cluster"

opentelemetry-agent:
presets:
logsCollection:
extraFilelogOperators:
- type: recombine
combine_field: body
combine_with: "\n"
source_identifier: attributes["log.file.path"]
is_first_entry: body matches "(\\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\s\\[\\w+\\]\\s\\w+\\s|\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{6}Z\\s\\w+\\s)"

Notes:

  • The example seeks 2 different regex patterns to recognize the start of the log entry.

  • Double-escape all special characters to match the GoLang standard patterns.

\\d{2}:\\d{2}:\\d{2}\\.\\d{3}\\s\\[\\w+\\]\\s\\w+\\s
AND
\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{6}Z\\s\\w+\\s

How do I optimize batch sizing?​

Coralogix recommends the default otel-integration chart settings for batch processors in all collectors:

batch:
send_batch_size: 1024
send_batch_max_size: 2048
timeout: "1s"

This sizing ensures that the telemetry sent to the Coralogix backend is batched into larger requests, reducing networking overhead and improving performance.

These settings impose a hard limit of 2048 units (spans, metrics, logs) on the batch size, balancing the recommended batch size and networking overhead.

While you can adjust these settings to suit your requirements, considering the size limits enforced by Coralogix endpoints is essential. Refer to the limits & quotas section for current limits.

Find out more here about configuring your batch processor.

Last updated on
On this page
Was this page helpful?