Skip to content

Commit 7f9b976

Browse files
authored
Merge pull request #18 from lightstep/mohosman/LS-44100/remove-service-name-relabeling
LS-44100:(helm): remove service.name relabeling from resource attributes
2 parents 2623c1e + fef2f8b commit 7f9b976

File tree

5 files changed

+4
-80
lines changed

5 files changed

+4
-80
lines changed

charts/collector-k8s/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: otelcollector
33
description: Chart for using the OpenTelemetry Collector to scape static or dynamic metric targets.
44
type: application
5-
version: 0.1.1
5+
version: 0.1.2
66
appVersion: 0.61.0
77
dependencies:
88
# cert manager must be manually installed because it has CRDs

charts/collector-k8s/values-daemonset.yaml

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,6 @@ collectors:
3535
send_batch_size: 1000
3636
timeout: 1s
3737
send_batch_max_size: 1500
38-
resource:
39-
attributes:
40-
- key: job
41-
from_attribute: service.name
42-
action: insert
43-
- key: service.name
44-
action: upsert
45-
from_attribute: k8s.daemonset.name
46-
- key: service.name
47-
action: upsert
48-
from_attribute: k8s.replicaset.name
49-
- key: service.name
50-
action: upsert
51-
from_attribute: k8s.statefulset.name
52-
- key: service.name
53-
action: upsert
54-
from_attribute: k8s.job.name
55-
- key: service.name
56-
action: upsert
57-
from_attribute: k8s.cronjob.name
5838

5939
exporters:
6040
otlp:
@@ -66,7 +46,7 @@ collectors:
6646
pipelines:
6747
metrics:
6848
receivers: [prometheus]
69-
processors: [memory_limiter, resourcedetection/gke, resource, batch]
49+
processors: [memory_limiter, resourcedetection/gke, batch]
7050
exporters: [otlp]
7151

7252
# The daemonset collector should be configured to scrape general app metrics that contains `prometheus.io/scrape: true` annotation.
@@ -106,26 +86,6 @@ collectors:
10686
send_batch_size: 1000
10787
timeout: 1s
10888
send_batch_max_size: 1500
109-
resource:
110-
attributes:
111-
- key: job
112-
from_attribute: service.name
113-
action: insert
114-
- key: service.name
115-
action: upsert
116-
from_attribute: k8s.daemonset.name
117-
- key: service.name
118-
action: upsert
119-
from_attribute: k8s.replicaset.name
120-
- key: service.name
121-
action: upsert
122-
from_attribute: k8s.statefulset.name
123-
- key: service.name
124-
action: upsert
125-
from_attribute: k8s.job.name
126-
- key: service.name
127-
action: upsert
128-
from_attribute: k8s.cronjob.name
12989

13090
exporters:
13191
otlp:
@@ -137,5 +97,5 @@ collectors:
13797
pipelines:
13898
metrics:
13999
receivers: [prometheus]
140-
processors: [memory_limiter, resourcedetection/gke, resource, batch]
100+
processors: [memory_limiter, resourcedetection/gke, batch]
141101
exporters: [otlp]

charts/collector-k8s/values-statefulset.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,6 @@ collectors:
4343
send_batch_max_size: 1500
4444
resource:
4545
attributes:
46-
- key: job
47-
from_attribute: service.name
48-
action: insert
49-
- key: service.name
50-
action: upsert
51-
from_attribute: k8s.daemonset.name
52-
- key: service.name
53-
action: upsert
54-
from_attribute: k8s.replicaset.name
55-
- key: service.name
56-
action: upsert
57-
from_attribute: k8s.statefulset.name
58-
- key: service.name
59-
action: upsert
60-
from_attribute: k8s.job.name
61-
- key: service.name
62-
action: upsert
63-
from_attribute: k8s.cronjob.name
6446
- key: collector.name
6547
value: "${KUBE_POD_NAME}"
6648
action: insert

charts/kube-otel-stack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: kube-otel-stack
33
description: Chart for sending Kubernetes metrics to Lightstep using the OpenTelemetry Operator.
44
type: application
5-
version: 0.2.6
5+
version: 0.2.7
66
appVersion: 0.70.0
77
dependencies:
88
# cert manager must be manually installed because it has CRDs

charts/kube-otel-stack/values.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -150,24 +150,6 @@ metricsCollector:
150150
send_batch_max_size: 1500
151151
resource:
152152
attributes:
153-
- key: job
154-
from_attribute: service.name
155-
action: insert
156-
- key: service.name
157-
action: upsert
158-
from_attribute: k8s.daemonset.name
159-
- key: service.name
160-
action: upsert
161-
from_attribute: k8s.replicaset.name
162-
- key: service.name
163-
action: upsert
164-
from_attribute: k8s.statefulset.name
165-
- key: service.name
166-
action: upsert
167-
from_attribute: k8s.job.name
168-
- key: service.name
169-
action: upsert
170-
from_attribute: k8s.cronjob.name
171153
- key: collector.name
172154
value: "${KUBE_POD_NAME}"
173155
action: insert

0 commit comments

Comments
 (0)