Skip to content

Commit

Permalink
[opentelemetry-integration] bump collector to 108
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed Sep 3, 2024
1 parent b499977 commit cd5d4f6
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 31 deletions.
3 changes: 3 additions & 0 deletions otel-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## OpenTelemtry-Integration

### v0.0.100 / 2024-08-30
- [Feat] Bump collector version to `0.108.0`

### v0.0.99 / 2024-08-29
- [Fix] Change central-agent-values.yaml log level to warn
- [Fix] Turn off k8sattributes preset for central collector cluster
Expand Down
12 changes: 6 additions & 6 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.99
version: 0.0.100
keywords:
- OpenTelemetry Collector
- OpenTelemetry Agent
Expand All @@ -11,27 +11,27 @@ keywords:
dependencies:
- name: opentelemetry-collector
alias: opentelemetry-agent
version: "0.90.0"
version: "0.91.0"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-agent.enabled
- name: opentelemetry-collector
alias: opentelemetry-agent-windows
version: "0.90.0"
version: "0.91.0"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-agent-windows.enabled
- name: opentelemetry-collector
alias: opentelemetry-cluster-collector
version: "0.90.0"
version: "0.91.0"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-cluster-collector.enabled
- name: opentelemetry-collector
alias: opentelemetry-receiver
version: "0.90.0"
version: "0.91.0"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-receiver.enabled
- name: opentelemetry-collector
alias: opentelemetry-gateway
version: "0.90.0"
version: "0.91.0"
repository: https://cgx.jfrog.io/artifactory/coralogix-charts-virtual
condition: opentelemetry-gateway.enabled
sources:
Expand Down
1 change: 0 additions & 1 deletion otel-integration/k8s-helm/central-agent-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ global:
defaultSubsystemName: "integration"
logLevel: "warn"
collectionInterval: "30s"
version: "0.0.97"

extensions:
kubernetesDashboard:
Expand Down
2 changes: 1 addition & 1 deletion otel-integration/k8s-helm/e2e-test/expected_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var expectedSchemaURL = map[string]bool{
"https://opentelemetry.io/schemas/1.9.0": false,
}

const expectedScopeVersion = "0.107.0"
const expectedScopeVersion = "0.108.1"

var expectedScopeNames = map[string]bool{
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/networkscraper": false,
Expand Down
1 change: 0 additions & 1 deletion otel-integration/k8s-helm/values-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ global:
defaultSubsystemName: "integration"
logLevel: "warn"
collectionInterval: "30s"
version: "0.0.86"

extensions:
kubernetesDashboard:
Expand Down
60 changes: 38 additions & 22 deletions otel-integration/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ global:
defaultSubsystemName: "integration"
logLevel: "warn"
collectionInterval: "30s"
version: "0.0.99"
version: "0.0.100"

extensions:
kubernetesDashboard:
Expand Down Expand Up @@ -63,7 +63,7 @@ opentelemetry-agent:
# Temporary feature gates to prevent breaking changes. Please see changelog for version 0.0.85 for more information.
command:
name: otelcol-contrib
extraArgs: ["--feature-gates=component.UseLocalHostAsDefaultHost,-confmap.strictlyTypedInput"]
extraArgs: ["--feature-gates=component.UseLocalHostAsDefaultHost"]

serviceAccount:
# Specifies whether a service account should be created
Expand Down Expand Up @@ -233,6 +233,13 @@ opentelemetry-agent:
- context: resource
statements:
- set(attributes["k8s.pod.ip"], attributes["net.host.name"]) where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service.instance.id") where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_instance_id") where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_name") where attributes["service.name"] == "opentelemetry-collector"
- context: datapoint
statements:
- delete_key(attributes, "service_instance_id") where resource.attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_name") where resource.attributes["service.name"] == "opentelemetry-collector"
k8sattributes:
filter:
node_from_env_var: KUBE_NODE_NAME
Expand Down Expand Up @@ -279,10 +286,7 @@ opentelemetry-agent:
service:
telemetry:
resource:
# Supress this attribute, as we don't want the UUID of the collector to be sent,
# instead we rely on instance label generated by Prometheus receiver.
- service.instance.id:
- service.name:
service.name: "opentelemetry-collector"
logs:
level: "{{ .Values.global.logLevel }}"
encoding: json
Expand Down Expand Up @@ -424,7 +428,7 @@ opentelemetry-cluster-collector:
# Temporary feature gates to prevent breaking changes. Please see changelog for version 0.0.85 for more information.
command:
name: otelcol-contrib
extraArgs: ["--feature-gates=component.UseLocalHostAsDefaultHost,-confmap.strictlyTypedInput"]
extraArgs: ["--feature-gates=component.UseLocalHostAsDefaultHost"]

extraEnvs:
- name: CORALOGIX_PRIVATE_KEY
Expand Down Expand Up @@ -489,7 +493,14 @@ opentelemetry-cluster-collector:
metric_statements:
- context: resource
statements:
- set(attributes["k8s.pod.ip"], attributes["net.host.name"]) where attributes["service.name"] == "opentelemetry-infrastructure-collector"
- set(attributes["k8s.pod.ip"], attributes["net.host.name"]) where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service.instance.id") where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_instance_id") where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_name") where attributes["service.name"] == "opentelemetry-collector"
- context: datapoint
statements:
- delete_key(attributes, "service_instance_id") where resource.attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_name") where resource.attributes["service.name"] == "opentelemetry-collector"
resource/kube-events:
attributes:
- key: service.name
Expand Down Expand Up @@ -601,10 +612,7 @@ opentelemetry-cluster-collector:
service:
telemetry:
resource:
# Supress this attribute, as we don't want the UUID of the collector to be sent,
# instead we rely on instance label generated by Prometheus receiver.
- service.instance.id:
- service.name:
service.name: "opentelemetry-collector"
logs:
level: "{{ .Values.global.logLevel }}"
encoding: json
Expand Down Expand Up @@ -724,7 +732,7 @@ opentelemetry-gateway:
# Temporary feature gates to prevent breaking changes. Please see changelog for version 0.0.85 for more information.
command:
name: otelcol-contrib
extraArgs: ["--feature-gates=component.UseLocalHostAsDefaultHost,-confmap.strictlyTypedInput"]
extraArgs: ["--feature-gates=component.UseLocalHostAsDefaultHost"]

config:
extensions:
Expand Down Expand Up @@ -795,6 +803,13 @@ opentelemetry-gateway:
- context: resource
statements:
- set(attributes["k8s.pod.ip"], attributes["net.host.name"]) where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service.instance.id") where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_instance_id") where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_name") where attributes["service.name"] == "opentelemetry-collector"
- context: datapoint
statements:
- delete_key(attributes, "service_instance_id") where resource.attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_name") where resource.attributes["service.name"] == "opentelemetry-collector"
receivers:
prometheus:
config:
Expand All @@ -813,10 +828,7 @@ opentelemetry-gateway:
service:
telemetry:
resource:
# Supress this attribute, as we don't want the UUID of the collector to be sent,
# instead we rely on instance label generated by Prometheus receiver.
- service.instance.id:
- service.name:
service.name: "opentelemetry-collector"
logs:
level: "{{ .Values.global.logLevel }}"
encoding: json
Expand Down Expand Up @@ -907,7 +919,7 @@ opentelemetry-receiver:
# Temporary feature gates to prevent breaking changes. Please see changelog for version 0.0.85 for more information.
command:
name: otelcol-contrib
extraArgs: ["--feature-gates=component.UseLocalHostAsDefaultHost,-confmap.strictlyTypedInput"]
extraArgs: ["--feature-gates=component.UseLocalHostAsDefaultHost"]

config:
extensions:
Expand Down Expand Up @@ -978,6 +990,13 @@ opentelemetry-receiver:
- context: resource
statements:
- set(attributes["k8s.pod.ip"], attributes["net.host.name"]) where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service.instance.id") where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_instance_id") where attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_name") where attributes["service.name"] == "opentelemetry-collector"
- context: datapoint
statements:
- delete_key(attributes, "service_instance_id") where resource.attributes["service.name"] == "opentelemetry-collector"
- delete_key(attributes, "service_name") where resource.attributes["service.name"] == "opentelemetry-collector"
receivers:
prometheus:
config:
Expand All @@ -996,10 +1015,7 @@ opentelemetry-receiver:
service:
telemetry:
resource:
# Supress this attribute, as we don't want the UUID of the collector to be sent,
# instead we rely on instance label generated by Prometheus receiver.
- service.instance.id:
- service.name:
service.name: "opentelemetry-collector"
logs:
level: "{{ .Values.global.logLevel }}"
encoding: json
Expand Down

0 comments on commit cd5d4f6

Please sign in to comment.