Skip to content

Commit

Permalink
[otel-integration] update ci and docs (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv authored Feb 7, 2024
1 parent 010eb48 commit 3fa3e49
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions otel-integration/k8s-helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ helm upgrade --install otel-coralogix-integration coralogix-charts-virtual/otel-

This change will configure otel-agent pods to send span data to coralogix-opentelemetry-gateway deployment using [loadbalancing exporter](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/loadbalancingexporter). Make sure to configure enough replicas and resource requests and limits to handle the load. Next, you will need to configure [tail sampling processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/tailsamplingprocessor) policies with your custom tail sampling policies.

When running in Openshift make sure to set `distribution: "openshift"` in your `values.yaml`.

### Enabling scraping of Prometheus custom resources (`ServiceMonitor` and `PodMonitor`)

If you're leveraging the Prometheus Operator custom resources (`ServiceMonitor` and `PodMonitor`) and you would like to keep using them with the OpenTelemetry collector, you can enable the scraping of these resources by a special, optional component called target allocator. This feature is disabled by default and can be enabled by setting the `opentelemetry-agent.targetAllocator.enabled` value to `true` in the `values.yaml` file.
Expand Down
55 changes: 55 additions & 0 deletions otel-integration/k8s-helm/ci/tail-sampling-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
global:
domain: "coralogix.com"
clusterName: "ci-test"
defaultApplicationName: "otel"
defaultSubsystemName: "integration"
logLevel: "warn"


opentelemetry-agent:
enabled: true
mode: daemonset
presets:
loadBalancing:
enabled: true
routingKey: "traceID"
hostname: coralogix-opentelemetry-gateway

config:
service:
pipelines:
traces:
exporters:
- loadbalancing

opentelemetry-gateway:
enabled: true
# For production use-cases please increase replicas
# and resource requests and limits
replicaCount: 1
config:
processors:
tail_sampling:
# Update configuration here, with your tail sampling policies
# Docs: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/tailsamplingprocessor
decision_wait: 10s
num_traces: 100
expected_new_traces_per_sec: 10
policies:
[
{
name: errors-policy,
type: status_code,
status_code: {status_codes: [ERROR]}
},
{
name: randomized-policy,
type: probabilistic,
probabilistic: {sampling_percentage: 10}
},
]

opentelemetry-cluster-collector:
enabled: true
opentelemetry-agent-windows:
enabled: false

0 comments on commit 3fa3e49

Please sign in to comment.