Open mirkogrcic opened 2 years ago
Same problem here. Also would be great to exclude more options or even better to have an option of what to include.
In our scenarios, we don't care about loop*
disks, but only about sda*
disks.
In Legacy monitoring agent we configured collectd this way, however we don't find an option to do the same in the new Ops Agent.
LoadPlugin df
<Plugin "df">
Device "/dev/sda1" # we are interested only in the main drive
ReportByDevice true
ValuesPercentage true
</Plugin>
Only being able to exclude a directory of metrics at a time is currently WAI.
Any plans to provide more granularity soon?
Logging all this data from multiple machines signficantly increases monthly bill, while all these loop information is pretty useless for us and the only important thing is sda1
I had the same issues with /dev/loop* devices and because it gets really expensive I decided to fork the agent to exclude them by default.
https://github.com/cogniteev/ops-agent/commit/dd747cdd6c274d1985ed0c93246251f41032f16f
The ideal scenario would probably be to be able to override the default scrapers
altogether from ops-agent configuration file.
Or even better, be capable of defining several time the hostmetrics receiver like it's possible to do with opentelemetry-collector where you can define different frequencies depending on the metrics:
Hello, we are using this config
The
agent.googleapis.com/processes/*
exclusion and other ones with 2 path components (not including the/*
) work but exclusions with 3 path components do not work (likeagent.googleapis.com/memory/bytes_used/*
)Being excluded correctly:
Not being excluded:
I'm assuming the problem here is that metrics like
agent.googleapis.com/disk/read_bytes_count/*
do not branch out anymore so the ending/*
is a problem because it expects it to branch out more, removing/*
throws an error when starting the google-cloud-ops-agent as it's hardcoded to require it here Metrics likeagent.googleapis.com/processes/*
are getting excluded because they branch out intoagent.googleapis.com/processes/count_by_state
so the/*
matches