endclothing / prometheus_client_php

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

APCu: Undefined index: sum #41

Open potibm opened 4 years ago

potibm commented 4 years ago

On our servers we are experiencing a bug (especially after running for some days).

The APCu seems to get currupted (?), resulting in a

Undefined index: sum on getMetricFamilySamples()

I was able to reproduce this by removing just the ":sum:value"-key.

Some additional checks would be great. Currently, I am mitigating by catching the ErrorException and calling apcu_clear_cache.