-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update otelcontribcol to 0.106.0-gke.2
This change updates otelcoontribcol to latest and modifies to fit breaking changes from 0.104.0 and 0.106.0. Breaking change in 0.104.0 https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.104.0 Breaking change in 0.106.0 open-telemetry/opentelemetry-collector-contrib#34430 - Localhost is now the default setting, while otel-agent and otel-collector require 0.0.0.0, so the feature gate has been removed. - The format of the environment variable was updated to meet the new syntax requirements. The otel-agent ConfigMap was split between the reconciler and controllers, ensuring that sync-related labels are only applied to reconcilers. - A `no_op_label` has been added to ensure that the aggregation in the metricstransform processor filters on all metric labels. This is a temporary workaround until a permanent fix is implemented upstream.
- Loading branch information
1 parent
d501221
commit 41c1470
Showing
10 changed files
with
96 additions
and
30 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,69 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: otel-agent-reconciler | ||
namespace: config-management-system | ||
labels: | ||
app: opentelemetry | ||
component: otel-agent | ||
configmanagement.gke.io/system: "true" | ||
configmanagement.gke.io/arch: "csmr" | ||
data: | ||
otel-agent-reconciler-config.yaml: | | ||
receivers: | ||
opencensus: | ||
exporters: | ||
opencensus: | ||
endpoint: otel-collector.config-management-monitoring:55678 | ||
tls: | ||
insecure: true | ||
processors: | ||
# Attributes processor adds custom configsync metric labels to applicable | ||
# metrics to identify the sync object used to configure this deployment. | ||
# | ||
# Note: configsync.sync.generation is explicitly excluded here, because it | ||
# is high cardinality. So we don't want to send it as a label, only as a | ||
# resource attribute. That way it's only propagated to Prometheus, and not | ||
# Monarch or Cloud Monitoring, which ignore custom resource attributes. | ||
attributes: | ||
actions: | ||
- key: configsync.sync.kind | ||
action: upsert | ||
value: ${CONFIGSYNC_SYNC_KIND} | ||
- key: configsync.sync.name | ||
action: upsert | ||
value: ${CONFIGSYNC_SYNC_NAME} | ||
- key: configsync.sync.namespace | ||
action: upsert | ||
value: ${CONFIGSYNC_SYNC_NAMESPACE} | ||
batch: | ||
# Populate resource attributes from OTEL_RESOURCE_ATTRIBUTES env var and | ||
# the GCE metadata service, if available. | ||
resourcedetection: | ||
detectors: [env, gcp] | ||
extensions: | ||
health_check: | ||
service: | ||
extensions: [health_check] | ||
pipelines: | ||
metrics: | ||
receivers: [opencensus] | ||
processors: [batch, resourcedetection, attributes] | ||
exporters: [opencensus] | ||
telemetry: | ||
logs: | ||
level: "INFO" |
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
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