Skip to content

Commit

Permalink
Merge pull request #72 from bismarck/fix-collector-ds-monitoring
Browse files Browse the repository at this point in the history
Fix monitoring of collector when in daemonset mode
  • Loading branch information
jaronoff97 authored Mar 5, 2024
2 parents 11a3c44 + cf5affd commit 2eec010
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/kube-otel-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: kube-otel-stack
description: Chart for sending Kubernetes metrics to Lightstep using the OpenTelemetry Operator.
type: application
version: 0.4.1
version: 0.4.2
appVersion: 0.91.0
dependencies:
# cert manager must be manually installed because it has CRDs
Expand Down
6 changes: 3 additions & 3 deletions charts/kube-otel-stack/templates/collector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ spec:
scrape_interval: 5s
static_configs:
- labels:
collector_name: ${KUBE_POD_NAME}
collector_name: ${OTEL_K8S_POD_NAME}
targets:
- 0.0.0.0:8888
- ${OTEL_K8S_POD_IP}:8888
{{ end }}
{{- if $collector.targetallocator }}
{{- if $collector.targetallocator.enabled }}
target_allocator:
endpoint: http://{{ $collectorName }}-targetallocator:80
interval: 30s
collector_id: ${POD_NAME}
collector_id: ${OTEL_K8S_POD_NAME}
http_sd_config:
refresh_interval: 60s
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/kube-otel-stack/templates/servicemonitors.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $collectorList := (append (append .Values.collectors .Values.tracesCollector) .Values.metricsCollector) }}
{{ $collectorList := (append (append (append .Values.collectors .Values.tracesCollector) .Values.metricsCollector) .Values.logsCollector)}}
{{ range $_, $collector := $collectorList -}}
{{ if $collector.enabled }}
{{ $collectorName := (print $.Release.Name "-" $collector.name) }}
Expand Down

0 comments on commit 2eec010

Please sign in to comment.