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
Describe the bug
The hostmetrics receiver throws the below "benign" error when the network scraper tries to collect conntrack metrics from Linux distros that are missing the conntrack module. Example: Amazon Linux 2
Although this error is "partial/benign" and the remaining hostmetrics will still be collected/emitted, I don't think we should log errors like this on every poll and pollute the logs with error messages.
Steps to reproduce
Create EC2 with Amazon Linux 2 Kernel 5.10 AMI 2.0.20220606.1 x86_64 HVM gp2
AMI ID: ami-02d1e544b84bf7502
Run OTEL with hostmetrics receiver and network scraper, example:
hostmetrics:
collection_interval: 10s
scrapers:
cpu:
disk:
filesystem:
memory:
network:
# System load average metrics https://en.wikipedia.org/wiki/Load_(computing)
load:
# Paging/Swap space utilization and I/O metrics
paging:
# Aggregated system process count metrics
processes:
# System processes metrics, disabled by default
# process:
What did you expect to see?
No errors in the logs
What did you see instead?
The following error repeating on every poll
hostmetrics:
collection_interval: 10s
scrapers:
cpu:
disk:
filesystem:
memory:
network:
# System load average metrics https://en.wikipedia.org/wiki/Load_(computing)
load:
# Paging/Swap space utilization and I/O metrics
paging:
# Aggregated system process count metrics
processes:
# System processes metrics, disabled by default
# process:
Environment
Create EC2 with Amazon Linux 2 Kernel 5.10 AMI 2.0.20220606.1 x86_64 HVM gp2
AMI ID: ami-02d1e544b84bf7502
Additional context
The way hostmetrics is implemented, it only logs at error level for partial errors.
Ideally, these logs should be at debug level to mute them.
options:
1- make conntrack metrics scraper optional
2- check the error string and only add to partial error if it does not contain no such file or directory , problem is that we'll loose the error unless we pass the logger object
3- improve AddPartial to allow adding debug logs and not only error. ex: Add an extra argument to identify the log message as debug, error , etc...
The text was updated successfully, but these errors were encountered:
The conntrack metrics are already disabled by default. We just need to read the metrics configuration and don’t touch the conntrack API if it’s not enabled by user
Describe the bug
The
hostmetrics
receiver throws the below "benign" error when thenetwork
scraper tries to collectconntrack
metrics from Linux distros that are missing theconntrack
module. Example: Amazon Linux 2Although this error is "partial/benign" and the remaining hostmetrics will still be collected/emitted, I don't think we should log errors like this on every poll and pollute the logs with error messages.
The conntrack metrics is a recently added feature https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/11769/files
I was able to repro and the only way to get rid of the error is by installing a feature that loads the conntrack module
Steps to reproduce
Create EC2 with
Amazon Linux 2 Kernel 5.10 AMI 2.0.20220606.1 x86_64 HVM gp2
AMI ID:
ami-02d1e544b84bf7502
Run OTEL with hostmetrics receiver and network scraper, example:
What did you expect to see?
No errors in the logs
What did you see instead?
The following error repeating on every poll
What version did you use?
Latest
What config did you use?
Environment
Create EC2 with
Amazon Linux 2 Kernel 5.10 AMI 2.0.20220606.1 x86_64 HVM gp2
AMI ID:
ami-02d1e544b84bf7502
Additional context
The way hostmetrics is implemented, it only logs at error level for partial errors.
Ideally, these logs should be at debug level to mute them.
options:
1- make conntrack metrics scraper optional
2- check the error string and only add to partial error if it does not contain
no such file or directory
, problem is that we'll loose the error unless we pass the logger object3- improve AddPartial to allow adding debug logs and not only error. ex: Add an extra argument to identify the log message as debug, error , etc...
The text was updated successfully, but these errors were encountered: