From 6e08c5ff3e5e736b00592e1d86b19007ea705af0 Mon Sep 17 00:00:00 2001 From: Dominik Rosiek Date: Fri, 27 Oct 2023 13:14:48 +0200 Subject: [PATCH] [receiver/hostmetrics/scrapers/process]: add configuration option to mute `error reading username for process` Signed-off-by: Dominik Rosiek --- .../drosiek-mute-process-user-error.yaml | 27 ++++++++++++ receiver/hostmetricsreceiver/README.md | 1 + .../internal/scraper/processscraper/config.go | 4 ++ .../scraper/processscraper/process_scraper.go | 4 +- .../processscraper/process_scraper_test.go | 41 +++++++++++++++++-- 5 files changed, 72 insertions(+), 5 deletions(-) create mode 100755 .chloggen/drosiek-mute-process-user-error.yaml diff --git a/.chloggen/drosiek-mute-process-user-error.yaml b/.chloggen/drosiek-mute-process-user-error.yaml new file mode 100755 index 000000000000..114c704ec973 --- /dev/null +++ b/.chloggen/drosiek-mute-process-user-error.yaml @@ -0,0 +1,27 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: enhancement + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: receiver/hostmetrics/scrapers/process + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: add configuration option to mute `error reading username for process` + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [14311, 17187] + +# (Optional) One or more lines of additional information to render under the primary note. +# These lines will be padded with 2 spaces and then inserted directly into the document. +# Use pipe (|) for multiline entries. +subtext: + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [user] diff --git a/receiver/hostmetricsreceiver/README.md b/receiver/hostmetricsreceiver/README.md index d65ed615652a..42b4d0556d5e 100644 --- a/receiver/hostmetricsreceiver/README.md +++ b/receiver/hostmetricsreceiver/README.md @@ -118,6 +118,7 @@ process: mute_process_name_error: mute_process_exe_error: mute_process_io_error: + mute_process_user_error: scrape_process_delay: