ofesseler / gluster_exporter

Gluster Exporter for Prometheus
Apache License 2.0
81 stars 57 forks source link

Gluster exporter errors #49

Open ghost opened 3 years ago

ghost commented 3 years ago

I am getting the following error when trying to use gluster exporter

An error has occurred during metrics gathering: collected metric gluster_up gauge: was collected before with the same name and label values

tried to execute [volume info] and got error: exit status 1" source="gluster_client.go:23 couldn't parse xml volume info: exit status 1" source="main.go:211

tried to execute [peer status] and got error: exit status 1" source="gluster_client.go:23 couldn't parse xml of peer status: exit status 1" source="main.go:248

tried to execute [volume status all detail] and got error: exit status 1" source="gluster_client.go:23 couldn't parse xml of peer status: exit status 1" source="main.go:305

Please help

Ghaith157 commented 3 years ago

Your exporter user does not have permission to gluster, you need to set gluster_exporter user as root.

ghost commented 3 years ago

Your exporter user does not have permission to gluster, you need to set gluster_exporter user as root. Thanks, that was my problem, it's fixed now.