LoginSignup
0
0

More than 5 years have passed since last update.

Prometheusでnode_exporter実行時に「hwmon collector failed」とエラーが出る時の対処

Posted at

Prometheusのnode_exporterをAWSで実行したところ次のようなエラーが出てしまった。

ERRO[0033] ERROR: hwmon collector failed after 0.000016s: open /sys/class/hwmon: no such file or directory source=node_exporter.go:91

node_exporterはここに記載されているように既定で収集するデータが設定されています。
例えば、今回出てるエラーは、「hwmon」で、既定で収集される対象となっている。
「Expose hardware monitoring and sensor data from /sys/class/hwmon/.」となっている。

というわけで、AWS環境で取得しようがないデータは除外しないと、エラーとなるのです。

./node_exporter --collectors.enabled="conntrack,diskstats,entropy,filefd,filesystem,loadavg,mdadm,meminfo,netdev,netstat,stat,textfile,time,vmstat"

エラーが出るものを除外して、これぐらいとなった。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0