-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add central cluster collector for tail sampling (#443)
- Loading branch information
Showing
6 changed files
with
386 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
global: | ||
domain: "" | ||
clusterName: "" | ||
defaultApplicationName: "otel" | ||
defaultSubsystemName: "integration" | ||
logLevel: "debug" | ||
collectionInterval: "30s" | ||
version: "0.0.97" | ||
|
||
extensions: | ||
kubernetesDashboard: | ||
enabled: true | ||
|
||
# set distribution to openshift for openshift clusters | ||
distribution: "" | ||
opentelemetry-agent: | ||
enabled: true | ||
config: | ||
exporters: | ||
otlp: | ||
# configure the public endpoint here | ||
endpoint: coralogix-opentelemetry-receiver:4317 | ||
# this is not needed if you have valid tls certificate fronting receivers | ||
tls: | ||
insecure: true | ||
service: | ||
pipelines: | ||
traces: | ||
exporters: | ||
- otlp | ||
|
||
opentelemetry-cluster-collector: | ||
enabled: true | ||
opentelemetry-agent-windows: | ||
enabled: false | ||
opentelemetry-gateway: | ||
enabled: false | ||
|
100 changes: 100 additions & 0 deletions
100
otel-integration/k8s-helm/central-tail-sampling-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
global: | ||
domain: "" | ||
clusterName: "" | ||
defaultApplicationName: "otel" | ||
defaultSubsystemName: "integration" | ||
logLevel: "warn" | ||
collectionInterval: "30s" | ||
|
||
opentelemetry-receiver: | ||
enabled: true | ||
# Receiver needs to be exposed either via Service of type LoadBalancer or Ingress | ||
service: | ||
enabled: true | ||
type: ClusterIP | ||
# type: LoadBalancer | ||
# loadBalancerIP: 1.2.3.4 | ||
# loadBalancerSourceRanges: [] | ||
|
||
# By default, Service of type 'LoadBalancer' will be created setting 'externalTrafficPolicy: Cluster' | ||
# unless other value is explicitly set. | ||
# Possible values are Cluster or Local (https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip) | ||
# externalTrafficPolicy: Cluster | ||
ingress: | ||
enabled: false | ||
# annotations: {} | ||
# ingressClassName: nginx | ||
# hosts: | ||
# - host: collector.example.com | ||
# paths: | ||
# - path: / | ||
# pathType: Prefix | ||
# port: 4318 | ||
# tls: | ||
# - secretName: collector-tls | ||
# hosts: | ||
# - collector.example.com | ||
# For production use-cases please increase replicas | ||
# and resource requests and limits | ||
replicaCount: 3 | ||
# resources: | ||
# requests: | ||
# cpu: 0.5 | ||
# memory: 256Mi | ||
# limits: | ||
# cpu: 2 | ||
# memory: 2G | ||
|
||
presets: | ||
loadBalancing: | ||
enabled: true | ||
routingKey: "traceID" | ||
hostname: coralogix-opentelemetry-gateway | ||
# dnsResolverInterval: 20s | ||
# dnsResolverTimeout: 5s | ||
|
||
config: | ||
service: | ||
pipelines: | ||
traces: | ||
exporters: | ||
- loadbalancing | ||
|
||
opentelemetry-gateway: | ||
enabled: true | ||
# For production use-cases please increase replicas | ||
# and resource requests and limits | ||
replicaCount: 3 | ||
# resources: | ||
# requests: | ||
# cpu: 0.5 | ||
# memory: 256Mi | ||
# limits: | ||
# cpu: 2 | ||
# memory: 2G | ||
|
||
config: | ||
processors: | ||
tail_sampling: | ||
# Update configuration here, with your settings and tail sampling policies | ||
# Docs: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/tailsamplingprocessor | ||
policies: | ||
[ | ||
#{ | ||
# name: errors-policy, | ||
# type: status_code, | ||
# status_code: {status_codes: [ERROR]} | ||
#}, | ||
{ | ||
name: randomized-policy, | ||
type: probabilistic, | ||
probabilistic: {sampling_percentage: 10} | ||
}, | ||
] | ||
|
||
opentelemetry-agent: | ||
enabled: false | ||
opentelemetry-cluster-collector: | ||
enabled: false | ||
opentelemetry-agent-windows: | ||
enabled: false |
Oops, something went wrong.