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

Avoid errors from scraping filesystem metrics from unaccessible mounts #1550

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Nov 22, 2024

By excluding mount points that are not mounted to the collector container. Otherwise, the collector throws scraping errors:

2024-11-22T23:00:50.713Z	error	scraperhelper/scrapercontroller.go:204	Error scraping metrics	{"kind": "receiver", "name": "hostmetrics", "data_type": "metrics", "error": "failed to read usage at /hostfs/var/lib/kubelet/pods/5aee49ed-ddba-4277-a1e0-38eb528de562/volume-subpaths/config/configfile/1: no such file or directory; failed to read usage at /hostfs/var/lib/kubelet/pods/5aee49ed-ddba-4277-a1e0-38eb528de562/volume-subpaths/config-emptydir/opensearch/0: no such file or directory", "scraper": "filesystem"}
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).scrapeMetricsAndReport
	go.opentelemetry.io/collector/[email protected]/scraperhelper/scrapercontroller.go:204
go.opentelemetry.io/collector/receiver/scraperhelper.(*controller).startScraping.func1
	go.opentelemetry.io/collector/[email protected]/scraperhelper/scrapercontroller.go:180

@dmitryax dmitryax requested review from a team as code owners November 22, 2024 23:16
@dmitryax dmitryax changed the title Fix errors filesystem metrics scraping errors Avoid filesystem metrics scraper emitting scraping errors from unaccessible mounts Nov 22, 2024
@dmitryax dmitryax changed the title Avoid filesystem metrics scraper emitting scraping errors from unaccessible mounts Avoid errors from scraping filesystem metrics from unaccessible mounts Nov 22, 2024
@dmitryax dmitryax force-pushed the fix-fs-scrape-errors branch 2 times, most recently from 59fcedd to d45b988 Compare November 22, 2024 23:27
By excluding mount point that are not accessible by the collector container
@dmitryax dmitryax merged commit 686a9b5 into main Nov 22, 2024
40 checks passed
@dmitryax dmitryax deleted the fix-fs-scrape-errors branch November 22, 2024 23:41
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants