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 [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
cpu_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
host.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
metrics.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00