Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reading username for process #30913

Closed
mikec775 opened this issue Jan 31, 2024 · 4 comments
Closed

Error reading username for process #30913

mikec775 opened this issue Jan 31, 2024 · 4 comments

Comments

@mikec775
Copy link

error scraperhelper/scrapercontroller.go:200 Error scraping metrics {"kind": "receiver", "name": "hostmetrics", "data_type": "metrics", "error": "error reading username for process "otelcol" (pid 1): open /etc/passwd: no such file or directory", "scraper": "process"}

I get this error when trying to run open tel collector on docker. Below is my otel-collector-config file.

receivers:
otlp:
protocols:
grpc:
endpoint: localhost:4317
http:
endpoint: localhost:4318

hostmetrics:
collection_interval: 30s
scrapers:
cpu: {}
disk: {}
load: {}
filesystem: {}
memory: {}
network: {}
paging: {}
process:
mute_process_name_error: true
mute_process_exe_error: true
mute_process_io_error: true
processes: {}

processors:
batch:
send_batch_size: 10000
timeout: 10s

exporters:
otlp:
endpoint: "https://ingest.eu.signoz.cloud:443"
tls:
insecure: false
headers:
"signoz-access-token": "redacted"
prometheus:
endpoint: "0.0.0.0:8889"

extensions:
health_check:
endpoint: 0.0.0.0:13133

service:
telemetry:
metrics:
address: localhost:8888
extensions: [health_check]
pipelines:
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
metrics/hostmetrics:
receivers: [hostmetrics]
processors: [batch]
exporters: [otlp]

@mikec775 mikec775 added the bug Something isn't working label Jan 31, 2024
@mx-psi mx-psi transferred this issue from open-telemetry/opentelemetry-collector Jan 31, 2024
Copy link
Contributor

Pinging code owners for receiver/hostmetrics: @dmitryax @braydonk. See Adding Labels via Comments if you do not have permissions to add labels yourself.

@crobert-1 crobert-1 added the needs triage New item requiring triage label Jan 31, 2024
@crobert-1
Copy link
Member

Hello @mikec775, the error message is saying that there isn't any file within your docker container at the path of /etc/passwd. There's a section of the README that covers running the hostmetrics receiver within a docker container, hopefully that helps.

@crobert-1 crobert-1 added question Further information is requested and removed bug Something isn't working needs triage New item requiring triage labels Jan 31, 2024
Copy link
Contributor

github-actions bot commented Apr 1, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@github-actions github-actions bot added the Stale label Apr 1, 2024
Copy link
Contributor

This issue has been closed as inactive because it has been stale for 120 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants