Skip to content

Commit a30de29

Browse files
committed
Regenerate examples
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
1 parent 3bd474f commit a30de29

1 file changed

Lines changed: 79 additions & 5 deletions

File tree

otel-ecs-ec2/examples/otel-config-ebpf.yaml

Lines changed: 79 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,10 +783,48 @@ service:
783783

784784
---
785785
exporters:
786-
otlp:
787-
endpoint: localhost:4317
788-
tls:
789-
insecure: true
786+
coralogix:
787+
application_name: otel
788+
application_name_attributes:
789+
- aws.ecs.cluster.name
790+
- aws.ecs.task.definition.family
791+
domain: coralogix.com
792+
domain_settings:
793+
keepalive:
794+
enabled: true
795+
permit_without_stream: false
796+
time: 30s
797+
timeout: 10s
798+
logs:
799+
headers:
800+
X-Coralogix-Distribution: ecs-ec2-integration/0.0.37
801+
metrics:
802+
headers:
803+
X-Coralogix-Distribution: ecs-ec2-integration/0.0.37
804+
private_key: ${env:CORALOGIX_PRIVATE_KEY}
805+
profiles:
806+
headers:
807+
X-Coralogix-Distribution: ecs-ec2-integration/0.0.37
808+
x-coralogix-ingress: otlp/v1.10.0
809+
sending_queue:
810+
batch:
811+
flush_timeout: 250ms
812+
max_size: 2097152
813+
min_size: 1048576
814+
sizer: bytes
815+
enabled: true
816+
num_consumers: 20
817+
queue_size: 209715200
818+
sizer: bytes
819+
subsystem_name: integration
820+
subsystem_name_attributes:
821+
- aws.ecs.container.name
822+
- aws.ecs.docker.name
823+
- docker.name
824+
timeout: 30s
825+
traces:
826+
headers:
827+
X-Coralogix-Distribution: ecs-ec2-integration/0.0.37
790828
extensions:
791829
health_check:
792830
endpoint: ${env:MY_POD_IP}:13133
@@ -804,6 +842,11 @@ extensions:
804842
Authorization: Bearer ${env:CORALOGIX_PRIVATE_KEY}
805843
polling_interval: 2m
806844
processors:
845+
ecsattributes/container-logs:
846+
container_id:
847+
sources:
848+
- log.file.path
849+
- container.id
807850
memory_limiter:
808851
check_interval: 5s
809852
limit_percentage: 80
@@ -816,6 +859,33 @@ processors:
816859
- action: upsert
817860
key: cx.otel_integration.name
818861
value: coralogix-integration-ecs-ec2
862+
resourcedetection/env:
863+
detectors:
864+
- system
865+
- env
866+
override: false
867+
system:
868+
resource_attributes:
869+
host.id:
870+
enabled: true
871+
timeout: 2s
872+
resourcedetection/region:
873+
detectors:
874+
- ec2
875+
override: true
876+
timeout: 2s
877+
transform/profiles-ecs-service-name:
878+
profile_statements:
879+
- context: resource
880+
statements:
881+
- set(resource.attributes["service.name"], resource.attributes["aws.ecs.task.definition.family"])
882+
where (resource.attributes["service.name"] == nil or resource.attributes["service.name"]
883+
== "") and resource.attributes["aws.ecs.task.definition.family"] != nil and
884+
resource.attributes["aws.ecs.task.definition.family"] != ""
885+
- set(resource.attributes["service.name"], resource.attributes["aws.ecs.container.name"])
886+
where (resource.attributes["service.name"] == nil or resource.attributes["service.name"]
887+
== "") and resource.attributes["aws.ecs.container.name"] != nil and resource.attributes["aws.ecs.container.name"]
888+
!= ""
819889
receivers:
820890
profiling:
821891
off_cpu_threshold: 0
@@ -832,9 +902,13 @@ service:
832902
pipelines:
833903
profiles:
834904
exporters:
835-
- otlp
905+
- coralogix
836906
processors:
837907
- memory_limiter
908+
- resourcedetection/region
909+
- resourcedetection/env
910+
- ecsattributes/container-logs
911+
- transform/profiles-ecs-service-name
838912
receivers:
839913
- profiling
840914
telemetry:

0 commit comments

Comments
 (0)