AnalogJ / scrutiny

Hard Drive S.M.A.R.T Monitoring, Historical Trends & Real World Failure Thresholds
MIT License
5.36k stars 171 forks source link

[BUG] collector.yaml device path 会自动把大写字母转换为小写,type 参数不会添加到 metrics_info_args #693

Open pdj9na opened 2 months ago

pdj9na commented 2 months ago

Describe the bug A clear and concise description of what the bug is. collector.yaml 配置文件中 devices:

Screenshots If applicable, add screenshots to help explain your problem. image image image image

Log Files If related to missing devices or SMART data, please run the collector in DEBUG mode, and attach the log file. See /docs/TROUBLESHOOTING_DEVICE_COLLECTOR.md for other troubleshooting tips.

docker run -it --rm -p 8080:8080 \
-v `pwd`/config:/opt/scrutiny/config \
-v /run/udev:/run/udev:ro \
--cap-add SYS_RAWIO \
--device=/dev/sda \
--device=/dev/sdb \
-e DEBUG=true \
-e COLLECTOR_LOG_FILE=/opt/scrutiny/config/collector.log \
-e SCRUTINY_LOG_FILE=/opt/scrutiny/config/web.log \
--name scrutiny \
ghcr.io/analogj/scrutiny:master-omnibus

# in another terminal trigger the collector
docker exec scrutiny scrutiny-collector-metrics run

The log files will be available on your host in the config directory. Please attach them to this issue.

Please also provide the output of docker info