Skip to content

Commit

Permalink
[otel-integration] set cluster name for all signals
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed Sep 15, 2023
1 parent 6bc48a4 commit 4a62f6e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
5 changes: 5 additions & 0 deletions otel-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## OpenTelemtry-Integration

### v0.0.15 / 2023-09-15

* [FIX] Set k8s.cluster.name to all signals.
* [CHORE] Upgrading upstream chart. (v0.71.2)

### v0.0.14 / 2023-09-04

* [CHORE] Upgrading upstream chart. (v0.71.1)
Expand Down
6 changes: 3 additions & 3 deletions otel-integration/k8s-helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: otel-integration
description: OpenTelemetry Integration
version: 0.0.14
version: 0.0.15
keywords:
- OpenTelemetry Collector
- OpenTelemetry Agent
Expand All @@ -11,12 +11,12 @@ keywords:
dependencies:
- name: opentelemetry-collector
alias: opentelemetry-agent
version: "0.71.1"
version: "0.71.2"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-agent.enabled
- name: opentelemetry-collector
alias: opentelemetry-cluster-collector
version: "0.71.1"
version: "0.71.2"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-cluster-collector.enabled
- name: kube-state-metrics
Expand Down
31 changes: 8 additions & 23 deletions otel-integration/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ opentelemetry-agent:
dnsPolicy: "ClusterFirstWithHostNet"

presets:
metadata:
enabled: true
clusterName: "{{.Values.global.clusterName}}"
integrationName: "coralogix-integration-helm"
logsCollection:
enabled: true
storeCheckpoints: true
Expand Down Expand Up @@ -137,18 +141,6 @@ opentelemetry-agent:
enabled: true
cloud.availability_zone:
enabled: true
metricstransform:
transforms:
include: .*
match_type: regexp
action: update
operations:
- action: add_label
new_label: k8s.cluster.name
new_value: "{{ .Values.global.clusterName }}"
- action: add_label
new_label: cx.otel_integration.name
new_value: "coralogix-integration-helm"
k8sattributes:
filter:
node_from_env_var: KUBE_NODE_NAME
Expand Down Expand Up @@ -215,7 +207,6 @@ opentelemetry-agent:
- k8sattributes
- resourcedetection/env
- resourcedetection/region
- metricstransform
- memory_limiter
- batch
receivers:
Expand Down Expand Up @@ -298,6 +289,10 @@ opentelemetry-cluster-collector:
- username: ""
password: ""
port: 3306
metadata:
enabled: true
clusterName: "{{.Values.global.clusterName}}"
integrationName: "coralogix-integration-helm"

extraEnvs:
- name: CORALOGIX_PRIVATE_KEY
Expand Down Expand Up @@ -360,16 +355,6 @@ opentelemetry-cluster-collector:
- keep_keys(body["object"]["regarding"], ["kind", "name", "namespace"])
metricstransform/kube-extra-metrics:
transforms:
- include: .*
match_type: regexp
action: update
operations:
- action: add_label
new_label: k8s.cluster.name
new_value: "{{ .Values.global.clusterName }}"
- action: add_label
new_label: cx.otel_integration.name
new_value: "coralogix-integration-helm"
# Replace node name for kube node info with the name of the target node.
- include: kube_node_info
match_type: strict
Expand Down

0 comments on commit 4a62f6e

Please sign in to comment.