Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opensips_exporter crashes with panic: inconsistent label cardinality error #16

Open
yashpanchalecosmob opened this issue Aug 17, 2021 · 0 comments

Comments

@yashpanchalecosmob
Copy link

yashpanchalecosmob commented Aug 17, 2021

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/[email protected]/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/[email protected]/prometheus/registry.go:433 +0x67
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/home/runner/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:431 +0x325

Other info

@yashpanchalecosmob yashpanchalecosmob changed the title panic: inconsistent label cardinality opensips_exporter crashes with panic: inconsistent label cardinality error Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant