Skip to content

Commit

Permalink
Fix monitoring of collector when in daemonset mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bismarck committed Feb 26, 2024
1 parent e4d3a60 commit e2db194
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit e2db194

Please sign in to comment.