Skip to content
Discussion options

You must be logged in to vote

This looks like the process scraper, not the root_path mapping itself. Your root_path: /hostfs is already the right setting for the hostmetrics receiver.

The actual error is username resolution:

open /etc/passwd: no such file or directory

That path is the collector container's /etc/passwd, not /hostfs/etc/passwd. The process scraper is trying to turn host UIDs into usernames and failing there.

Add the missing mute flag:

receivers:
  hostmetrics:
    root_path: /hostfs
    scrapers:
      process:
        mute_process_name_error: true
        mute_process_exe_error: true
        mute_process_io_error: true
        mute_process_user_error: true

If you actually need process usernames, the o…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ColaIan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants