Skip to content

Commit 98610d7

Browse files
authored
Merge pull request #12 from lightstep/more-config-for-ta
Version bump, allow for more configuration for the TA
2 parents a0360da + b4df159 commit 98610d7

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

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.1
5+
version: 0.2.2
66
appVersion: 0.70.0
77
dependencies:
88
# cert manager must be manually installed because it has CRDs

charts/kube-otel-stack/templates/collector.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ spec:
2121
image: {{ $collector.targetallocator.image }}
2222
replicas: {{ $collector.targetallocator.replicas }}
2323
allocationStrategy: {{ $collector.targetallocator.allocationStrategy }}
24+
{{- if $collector.targetallocator.filterStrategy }}
25+
filterStrategy: {{ $collector.targetallocator.filterStrategy }}
26+
{{- end }}
27+
{{- if $collector.targetallocator.prometheusCR.enabled }}
2428
prometheusCR:
25-
enabled: {{ $collector.targetallocator.prometheusCR.enabled }}
29+
{{- with $collector.targetallocator.prometheusCR }}
30+
{{- toYaml . | nindent 6 }}
31+
{{- end }}
32+
{{- end }}
2633
{{- end }}
2734
{{- end }}
2835
env:

charts/kube-otel-stack/templates/servicemonitors.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ apiVersion: monitoring.coreos.com/v1
66
kind: ServiceMonitor
77
metadata:
88
name: {{ $collectorName }}-collector
9+
labels:
10+
{{ include "kube-otel-stack.labels" $ | indent 4 }}
911
spec:
1012
endpoints:
1113
- path: /metrics
@@ -21,6 +23,8 @@ apiVersion: monitoring.coreos.com/v1
2123
kind: ServiceMonitor
2224
metadata:
2325
name: {{ $collectorName }}-targetallocator
26+
labels:
27+
{{ include "kube-otel-stack.labels" $ | indent 4 }}
2428
spec:
2529
endpoints:
2630
- path: /metrics
@@ -38,6 +42,8 @@ apiVersion: monitoring.coreos.com/v1
3842
kind: ServiceMonitor
3943
metadata:
4044
name: {{ .Release.Name }}-operator
45+
labels:
46+
{{ include "kube-otel-stack.labels" $ | indent 4 }}
4147
spec:
4248
endpoints:
4349
- path: /metrics

0 commit comments

Comments
 (0)