mjtrangoni / pacemaker_exporter

Prometheus exporter for Pacemaker high availability resource manager
Apache License 2.0
9 stars 7 forks source link

Error parsing XML data #3

Closed wat101 closed 6 years ago

wat101 commented 6 years ago

Host operating system: output of uname -r

3.10.0-862.6.3.el7.x86_64

pacemaker_exporter version: output of pacemaker_exporter --version

pacemaker_exporter, version 0.0.1 (branch: master, revision: 893a693b43da9b4cf87a86111388f0bc6411a199) build user: cloud@test-dhcp build date: 20180824-09:16:20 go version: go1.9.1

pacemaker_exporter command line flags

No flags used

pacemaker version

crm_verify -$ Pacemaker 1.1.18-11.el7_5.3 Written by Andrew Beekhof

What did you do that produced an error?

./pacemaker_exporter INFO[0000] Starting pacemaker_exporter (version=0.0.1, branch=master, revision=893a693b43da9b4cf87a86111388f0bc6411a199) source="pacemaker_exporter.go:89" INFO[0000] Build context (go=go1.9.1, user=cloud@test, date=20180824-03:30:39) source="pacemaker_exporter.go:90" INFO[0000] Enabled collectors: source="pacemaker_exporter.go:97" INFO[0000] - crm_mon source="pacemaker_exporter.go:99" INFO[0000] Listening on :9356 source="pacemaker_exporter.go:120" ERRO[0003] strconv.ParseFloat: parsing "galera-bundle-0": invalid syntax source="crm_mon_linux.go:48" ERRO[0003] strconv.ParseFloat: parsing "galera-bundle-0": invalid syntax source="crm_mon_linux.go:64" ERRO[0003] ERROR: crm_mon collector failed after 0.059715s: couldn't get crm_mon information: strconv.ParseFloat: parsing "galera-bundle-0": invalid syntax source="collector.go:133"

wat101 commented 6 years ago

I just recomplied the binary, and am able to retrive the metrics correclty. Thanks for the quick fix!