-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Version
2.0.4_amd64.deb
File / Feature
opensips_exporter
Expected behaviour
opensips_exporter should connect to 43000 port where management interface is being served and should start exporting the metrics.
Actual behaviour
opensips_exporter crashes
Stacktrace / Error message
Executed the following command
opensips_exporter -protocol mi_http -http_address http://127.0.0.1:43000/opensips_mi/
2021/08/17 13:59:14 Started OpenSIPS exporter, listening on :9434
panic: inconsistent label cardinality
goroutine 71 [running]:
github.com/prometheus/client_golang/prometheus.MustNewConstMetric(...)
/home/runner/go/pkg/mod/github.com/prometheus/client_golang@v0.8.0/prometheus/value.go:172
github.com/VoIPGRID/opensips_exporter/processors.usrlocProcessor.Collect(0xc000196330, 0xc0000b0ba0)
/home/runner/work/opensips_exporter/opensips_exporter/processors/usrloc_processor.go:47 +0x2e5
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000ab0b4, 0xc0000b0ba0, 0x9b7680, 0xc0001aa080)
/home/runner/go/pkg/mod/github.com/prometheus/client_golang@v0.8.0/prometheus/registry.go:433 +0x67
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/home/runner/go/pkg/mod/github.com/prometheus/client_golang@v0.8.0/prometheus/registry.go:431 +0x325