prometheus_client_php
prometheus_client_php copied to clipboard
Prometheus instrumentation library for PHP applications
Hey, I think there is an issue, if you try this : ```php $registry = new \Prometheus\CollectorRegistry(new Prometheus\Storage\Redis()); $histogram = $registry->getOrRegisterHistogram('test', 'some_histogram', 'it observes', [], [0, 1, 2, 3, 4,...
After updating to v2.6.1, which introduced https://github.com/PromPHP/prometheus_client_php/pull/91, we've seen a enormous drop in performance for our collection script. This is interesting, because the merge request is meant to increase performance....
https://github.com/PromPHP/prometheus_client_php/issues/44 Hi, i've made a working draft of these mechanics (currently only for redis). Please take a look.
Metric line can also contain optional timestamp. ``` http_requests_total{method="post",code="200"} 0 http_requests_total{method="post",code="400"} 3 1395066363000 ``` Should I move forward with this? - [x] support of timestamp in gauge - [x] support...
With APC adapter meta-information is broken, if use colons in names of metrics. It gives hard to debug error. I am add validation of names when use APC adapter
I made an integration of you library in the framework Symfony. Can you publicize it on your readme ? Thanks in advance
https://github.com/PromPHP/prometheus_client_php/blob/cb7ee990c1a7ca1f8553c531959d13b1450f9f20/src/Prometheus/Storage/APCng.php#L754 if some of $values will be numeric, like status code for example, then it will not work with "false !== ($value = apcu_fetch($key))", because json_encode will return different strings...
As per [pack manual page](https://www.php.net/manual/en/function.pack.php) > 8.0.0 | This function no longer returns false on failure. We [seem to rely](https://github.com/PromPHP/prometheus_client_php/blob/master/src/Prometheus/Storage/APC.php#L453) on a `!== false` check It now throws `ValueError` Exceptions...
I have the following samples `[1.33, 2.33, 2.33]`. Summary metric is returned like this: ``` some_duration_seconds{quantile="0.01"} 1.35 some_duration_seconds{quantile="0.05"} 1.43 some_duration_seconds{quantile="0.5"} 2.33 some_duration_seconds{quantile="0.95"} 2.33 some_duration_seconds{quantile="0.99"} 2.33 some_duration_seconds_sum 5.99 some_duration_seconds_count 3 ```...