I have a service in .NetCore 5.0 and windows (IIS) and I'm using the package of elasticAllApm and now in production I have seen the next warning:
[Warning] {"MetricsCollector"} Failed reading "CgroupMetricsProvider" 2 times: no valid samples
This message is repeating and I would like know if is possible with any option indicates that I don't want collect metrics or if I need activate something more.
In order to do so, you just need to add the following string to the DisableMetrics setting: system.process.cgroup.*. You can do this configuration similarly to any other config (like ServerUrls...).
The metrics itself are related to Linux cgroup indeed, but the agent tries to query all metrics on all platforms - basically the warning just states that it's unable to get the values on Windows (no surprise...) and once the agent knows about, i'll stop querying it.
Btw. this makes me think that we could have a better logic here and for this specific metric we should skip querying it on Windows completely.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.