Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

expose metrics per process in fpm status #12759

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cdaguerre
Copy link

@cdaguerre cdaguerre commented Nov 23, 2023

Closes #9494
Supersedes #9646

@cdaguerre cdaguerre requested a review from bukka as a code owner November 23, 2023 17:46
@cdaguerre cdaguerre force-pushed the openmetrics-status-alternative branch 4 times, most recently from fbd131d to f8a8785 Compare November 27, 2023 11:08
@cdaguerre
Copy link
Author

Hi @bukka any help on fixing the broken test would be highly appreciated because I don't undersatnd how my changes could affect the JSON format...

@bukka
Copy link
Member

bukka commented Dec 9, 2023

@cdaguerre It is probably failing some ASAN check. I just pushed some tester changes to be able see child logs if there is an error which might show more so please try to rebase and push force it here. If it doesn't show anything useful, then the next step would be to build with ASAN locally but lets first see if there are any useful child logs.

@cdaguerre cdaguerre force-pushed the openmetrics-status-alternative branch 2 times, most recently from d3e4771 to 2db1ea7 Compare February 4, 2024 06:04
@cdaguerre cdaguerre force-pushed the openmetrics-status-alternative branch from 2db1ea7 to 12a7c77 Compare February 4, 2024 06:20
"# HELP phpfpm_accepted_connections The number of requests accepted by the pool\.\n" .
"# TYPE phpfpm_accepted_connections counter\n" .
"phpfpm_accepted_connections " . $fields['accepted conn'] . "\n" .
"phpfpm_up{pool=\"" . $fields['pool'] . "\"} 1\n" .

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think test is failing due to the escaping here. Maybe it should be double escaped ? (not sure)

Suggested change
"phpfpm_up{pool=\"" . $fields['pool'] . "\"} 1\n" .
"phpfpm_up{pool=\\\"" . $fields['pool'] . "\\\"} 1\n" .

@Silvest89
Copy link

@bukka @cdaguerre any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FPM status with OpenMetrics format and FULL parameter
4 participants