Closed damianw2 closed 3 years ago
I am getting the same error.
When I copy the config above, I get no error and everything works fine. But I only have a Linux system to test - did you get the error with Windows or MacOs? Can you please try it without the FieldMetrics entry.
I also added a type check and updated the master branch.
I'v tested on Linux.
The error still occurs. I tryed with TableMetrics and FieldMetrics only.
sapnwrfrc_exporter]$ ./sapnwrfc_exporter web -config ./sapnwrfc_exporter.toml
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 34 [running]:
github.com/ulranh/sapnwrfc_exporter/cmd.(*Config).getSrvInfo(0xc0000de000, 0x0, 0x0, 0xc0000fc360, 0x1, 0x1)
/usr/local/sap/sapnwrfrc_exporter/cmd/exporter.go:356 +0xb8f
github.com/ulranh/sapnwrfc_exporter/cmd.(*Config).collectSystemsMetric.func1(0xc0000de000, 0x0, 0xc000200060, 0x0)
/usr/local/sap/sapnwrfrc_exporter/cmd/exporter.go:167 +0xea
created by github.com/ulranh/sapnwrfc_exporter/cmd.(*Config).collectSystemsMetric
/usr/local/sap/sapnwrfrc_exporter/cmd/exporter.go:162 +0x185
I added another type check. Please check what happens now on your side.
There is no errors getting now. But host:9663 returns: 404 page not found.
You have to run http://host:9663/metrics
Now it's working fine. Thank's
When running an exporter, i'm getting this error:
i set the password using pw command. Config file in /root/sapnwrfc_exporter.toml: