Skip to content
New issue

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

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

Already on GitHub? # to your account

Meta info missing for meta key exception #126

Open
mohierf opened this issue Aug 22, 2023 · 3 comments
Open

Meta info missing for meta key exception #126

mohierf opened this issue Aug 22, 2023 · 3 comments

Comments

@mohierf
Copy link

mohierf commented Aug 22, 2023

I got this exception just after the restart of my application. I am using apache + php-fpm in a Docker container.

Exception: Meta info missing for meta key: prom:counter:cron_total:meta /app/vendor/promphp/prometheus_client_php/src/Prometheus/Storage/APCng.php 333

To get rid of this error, then only solution was to restart once again. To make some tests, I did a new restart and yet another one and again and agin ... and sometimes the error is raised and sometimes not !

@mohierf
Copy link
Author

mohierf commented Aug 22, 2023

After some time (around 15 minutes), the problem is back ...

My (simplified) source code:

$adapter = new Prometheus\Storage\APCng();
self::$registry = new CollectorRegistry($adapter);

... / ...

$counter = self::$registry->getOrRegisterCounter('cron', 'total', 'Cron task counter', ['cron']);
$counter->incBy(1, ['releaseActuality']);

Note that I am also using other labels: ['releaseActuality', 'pushNotifications', ...]

@mohierf
Copy link
Author

mohierf commented Aug 24, 2023

To get rid of this problem I had to downgrade the package version to 2.6.2 !

The problem did not existed in my application before the upgrade to the most recent 2.7.1. Any idea what I should change to be able to upgrade ?

@applovinjake
Copy link

I'm also seeing this with the APCng adapter.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants