ofesseler / gluster_exporter

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

[Gluster exporter errors]tried to execute [volume info] and got error: exit status 1 #52

Closed Alanasking closed 2 years ago

Alanasking commented 2 years ago

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

I see https://github.com/ofesseler/gluster_exporter/issues/49#issue-824674112, so I set “privileged: true”, but there are still the following problems: An error has occurred during metrics gathering: collected metric gluster_up gauge: was collected before with the same name and label values

gluster exporter log time="2022-05-11T11:54:49Z" level=error msg="tried to execute [volume info] and got error: exit status 1" source="gluster_client.go:23" time="2022-05-11T11:54:49Z" level=error msg="couldn't parse xml volume info: exit status 1" source="main.go:211" time="2022-05-11T11:54:49Z" level=error msg="tried to execute [peer status] and got error: exit status 1" source="gluster_client.go:23" time="2022-05-11T11:54:49Z" level=error msg="couldn't parse xml of peer status: exit status 1" source="main.go:248" time="2022-05-11T11:54:49Z" level=error msg="tried to execute [volume status all detail] and got error: exit status 1" source="gluster_client.go:23" time="2022-05-11T11:54:49Z" level=error msg="couldn't parse xml of peer status: exit status 1" source="main.go:305" time="2022-05-11T11:54:49Z" level=warning msg="no Volumes were given." source="main.go:322" time="2022-05-11T11:54:49Z" level=error msg="tried to execute [volume list] and got error: exit status 1" source="gluster_client.go:23"

k8s yaml: