File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class Status
206
206
*/
207
207
protected function checkStatusOpenmetrics (string $ body , array $ fields )
208
208
{
209
- $ pattern = "| # HELP phpfpm_up Could pool " . $ fields ['pool ' ] . " using a " . $ fields ['process manager ' ] . " PM on PHP-FPM be reached\? \n" .
209
+ $ pattern = "( # HELP phpfpm_up Could pool " . $ fields ['pool ' ] . " using a " . $ fields ['process manager ' ] . " PM on PHP-FPM be reached\? \n" .
210
210
"# TYPE phpfpm_up gauge \n" .
211
211
"phpfpm_up 1 \n" .
212
212
"# HELP phpfpm_start_since The number of seconds since FPM has started\. \n" .
@@ -241,7 +241,7 @@ class Status
241
241
"phpfpm_max_children_reached " . $ fields ['max children reached ' ] . "\n" .
242
242
"# HELP phpfpm_slow_requests The number of requests that exceeded your 'request_slowlog_timeout' value\. \n" .
243
243
"# TYPE phpfpm_slow_requests counter \n" .
244
- "phpfpm_slow_requests " . $ fields ['slow requests ' ] . "| " ;
244
+ "phpfpm_slow_requests " . $ fields ['slow requests ' ] . ") " ;
245
245
246
246
if (!preg_match ($ pattern , $ body )) {
247
247
echo "ERROR: Expected body does not match pattern \n" ;
You can’t perform that action at this time.
0 commit comments