coralogix / telemetry-shippers

Coralogix's way to ship our best practices when it comes to interaction with our platform.
Apache License 2.0
14 stars 19 forks source link

[otel-integration] Add k8s attributes to otel collector gateway #421

Closed povilasv closed 3 months ago

povilasv commented 3 months ago

Description

Fixes: https://coralogix.atlassian.net/browse/ES-307

Example metric:

otelcol_process_memory_rss{cx_application_name="default", cx_subsystem_name="coralogix-opentelemetry-gateway", k8s_deployment_name="coralogix-opentelemetry-gateway", k8s_namespace_name="default", k8s_node_name="kind-control-plane", k8s_pod_name="coralogix-opentelemetry-gateway-574fb6cd8f-djpm4", http_scheme="http", job="opentelemetry-collector", k8s_pod_ip="10.244.0.12", net_host_name="10.244.0.12", net_host_port="8888", service_instance_id="10.244.0.12:8888", service_name="opentelemetry-collector", service_version="0.102.1"}

How Has This Been Tested?

Checklist: