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

Prometheus - metric has label dimensions inconsistent with previously collected metrics in the same metric family #47

Open
fstolba opened this issue Jul 5, 2019 · 4 comments

Comments

@fstolba
Copy link

fstolba commented Jul 5, 2019

Hi,

I'm using the latest version from git.

When trying to collect the endpoint /junos/services/label-switched-path/usage/ I'm presented with the following error messages when accessing the Prometheus metrics page:

An error has occurred during metrics gathering:

279 error(s) occurred:
* collected metric _mpls_lsps_constrained_path_tunnels_tunnel_state_counters_jnx_packet_rate label:<name:"_mpls_lsps_constrained_path_tunnels_tunnel__name" value:"lsp_name" > label:<name:"_mpls_lsps_constrained_path_tunnels_tunnel__source" value:"0.0.0.0" > label:<name:"_mpls_lsps_constrained_path_tunnels_tunnel_state_counters__name" value:"c-45772" > label:<name:"device" value:"lsp_device" > untyped:<value:87 >  has label dimensions inconsistent with previously collected metrics in the same metric family
[ above message repeatet 278 times with different labels and metrics all related to the endpoint mentioned above ]

There's various pieces of information here and here. The last link says that this limitation was removed in a later build of the Prometheus client library.

@fstolba
Copy link
Author

fstolba commented Jul 5, 2019

The last link leads to this page which says that this limitation was removed in newer versions of prometheus/client_golang.
I actually tried removing the vendored client_golang and build using the latest release which fixes the problem at hand but apparently causes another one. How should we proceed here?

@nileshsimaria
Copy link
Owner

Shat is another issue you are runnign into after upgrading the prometheus package?

@fstolba
Copy link
Author

fstolba commented Jul 17, 2019

Hi @nileshsimaria after upgrading the vendored code the metrics that are considered invalid now are being exposed, however there are other metrics missing from the output that work fine now (for example most gauge values from /components/component/properties/property).

Honestly I haven't looked into it any further to date but it seems to me that debugging the issue with the more recent dependency version is the way to go. Tracking this should propably happen in it's own PR.

@StephenKing
Copy link

btw we ran into this with collecting data from devices running different JunOS versions. After all were at the same version again (and a restart of jtimon later), everything was working again (still, not so nice to loose telemetry data in such cases).

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

3 participants