[php-src] Issue #7842: Invalid OpenMetrics response format returned by FPM status page
| From: | ste93cry | Date: | Tue, 28 Dec 2021 14:19:35 +0000 |
| Subject: | [php-src] Issue #7842: Invalid OpenMetrics response format returned by FPM status page | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238603@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7842
Author: ste93cry
### Description
PHP
8.1 introduced support in the FPM SAPI for the OpenMetrics format when requesting
the status of FPM. While trying to scrape the metrics using Prometheus, I get the following error:
data does not end with # EOF. According to the
[specs](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#abnf)
in fact, each exposition must end with a # EOF line followed by an optional end of line
character when the Content-Type of the response is
application/openmetrics-text
### PHP Version
PHP 8.1.1
### Operating System
_No response_