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

Error Undefined array key "__meta" #129

Closed inguldima closed 10 months ago

inguldima commented 10 months ago

I am encountering an issue in my application, where I receive the following error message:

Undefined array key "__meta" in /vendor/promphp/prometheus_client_php/src/Prometheus/Storage/Redis.php

$counter = json_decode($raw['__meta'], true); - 608 line

This error occurs within the codebase of the application, specifically in the file /vendor/promphp/prometheus_client_php/src/Prometheus/Storage/Redis.php , at line 608. It seems to be related to the "__meta" array key being undefined.

inguldima commented 10 months ago

Updated to version v2.7.1and everything became ok