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

array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements #147

Open
FractalizeR opened this issue Mar 5, 2024 · 1 comment

Comments

@FractalizeR
Copy link

If you first send a metric with two labels and later remove one of the labels, you get an exception in \Prometheus\RenderTextFormat::escapeAllLabels because two label arrays cannot be array_combine()'ed. You have to flush metric storage to make it working again.

@stevenbrookes
Copy link

Yes I just got hit by the same problem. In my case redis storage, removing the keys of the modified metrics fixed the issue, but a pain to deal with.

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

2 participants