You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi team,
We have otelcol-contrib_0.124.1_windows_amd64 exe and configured this as a windows service using below command
sc.exe create otelcol displayname= otelcol start= delayed-auto binPath= "C:\Program Files\OpenTelemetry Collector\otelcol-contrib.exe --config C:\Program Files\OpenTelemetry Collector\config.yaml"
C:\Temp>otelcol-contrib.exe --version
otelcol-contrib version 0.124.1�
When we try to start the service its through below error in Event logs
The OpenTelemetry Collector service terminated with the following error:
An exception occurred in the service when handling the control request.
Sample config yaml
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
prometheus:
endpoint: "0.0.0.0:8888"
prometheusremotewrite:
endpoint: http://prometheus-xxxx-dev:80/api/v1/write
otlp:
endpoint: tempo-xxxx-dev:443
tls:
insecure: true
otlphttp:
endpoint: https://loki-xxxx-dev:3100/otlp
tls:
insecure: true
service:
telemetry:
metrics:
readers:
- pull:
exporter:
prometheus:
host: '0.0.0.0'
port: 9000
pipelines:
metrics:
receivers: [otlp]
exporters: [prometheusremotewrite]
traces:
receivers: [otlp]
exporters: [otlp]
logs:
receivers: [otlp]
exporters: [otlphttp]
Can you please help me to run this as windows service and guid me the way to write otel collector logs in a file.
Thanks,
Jegadeesh
�
Beta Was this translation helpful? Give feedback.
All reactions