consul/lib/hoststats
Melissa Kam c95380e3da
[CC-7434] Skip collecting data directory metrics in dev mode (#20521)
* Skip collecting data directory stats in dev mode

In dev mode, the data directory is not set, so this metrics collection would
always fail and logs errors.

* Log collection errors at DEBUG level

There isn't much action a user can take to fix these errors, so
logging them as DEBUG rather than ERROR.
2024-02-07 16:59:06 -06:00
..
collector.go [CC-7434] Skip collecting data directory metrics in dev mode (#20521) 2024-02-07 16:59:06 -06:00
collector_test.go [CC-7434] Skip collecting data directory metrics in dev mode (#20521) 2024-02-07 16:59:06 -06:00
cpu.go
cpu_test.go
host.go
metrics.go