PromPHP / prometheus_client_php

Prometheus instrumentation library for PHP applications
https://prometheus.io/docs/concepts/metric_types/
Apache License 2.0
415 stars 91 forks source link

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

Open FractalizeR opened 5 months ago

FractalizeR commented 5 months ago

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.