Skip to content

Commit fab4ea9

Browse files
bukkaAllenJB
andauthored
FPM Status Page (#1420)
* Documentation for the FPM status page and fpm_get_status() * FPM status page: Update date/time format documentation * FPM status page: Add information on openmetrics format (PHP 8.1+) * Fix fpm_get_status referencing file name * Update FPM status page documentation * Move FPM status configuration to section * Improve FPM Status Page formatting and move it under Observability * Improve FPM status CS Co-authored-by: AllenJB <[email protected]>
1 parent f12b401 commit fab4ea9

File tree

6 files changed

+408
-2
lines changed

6 files changed

+408
-2
lines changed

install/fpm/configuration.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,9 @@
487487
</term>
488488
<listitem>
489489
<para>
490-
The URI to view the FPM status page. If this value is not set, no URI
491-
will be recognized as a status page. Default value: none.
490+
The URI to view the <link linkend="fpm.status">FPM status page</link>. This value must
491+
start with a leading slash (/). If this value is not set, no URI will be recognized as
492+
a status page. Default value: none.
492493
</para>
493494
</listitem>
494495
</varlistentry>

reference/fpm/book.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
</preface>
1515

1616
&reference.fpm.setup;
17+
&reference.fpm.observability;
1718
&reference.fpm.reference;
1819

1920
</book>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- $Revision$ -->
3+
4+
<refentry xml:id="function.fpm-get-status" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5+
<refnamediv>
6+
<refname>fpm_get_status</refname>
7+
<refpurpose>Returns the current FPM pool status</refpurpose>
8+
</refnamediv>
9+
10+
<refsect1 role="description">
11+
&reftitle.description;
12+
<methodsynopsis>
13+
<type>array</type><methodname>fpm_get_status</methodname>
14+
<void />
15+
</methodsynopsis>
16+
<para>
17+
This function returns the full current FPM pool status as an associative array. It always
18+
returns the full status, including per-process status information. See the
19+
<link linkend="fpm.status">FPM status page guide</link> for further
20+
details.
21+
</para>
22+
<para>
23+
Note that this function will only be defined if FPM is being used to serve the script.
24+
</para>
25+
</refsect1>
26+
27+
<refsect1 role="parameters">
28+
&reftitle.parameters;
29+
&no.function.parameters;
30+
</refsect1>
31+
32+
<refsect1 role="returnvalues">
33+
&reftitle.returnvalues;
34+
<para>
35+
Associative array containing the full FPM pool status.
36+
</para>
37+
</refsect1>
38+
</refentry>
39+
40+
<!-- Keep this comment at the end of the file
41+
Local variables:
42+
mode: sgml
43+
sgml-omittag:t
44+
sgml-shorttag:t
45+
sgml-minimize-attributes:nil
46+
sgml-always-quote-attributes:t
47+
sgml-indent-step:1
48+
sgml-indent-data:t
49+
indent-tabs-mode:nil
50+
sgml-parent-document:nil
51+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
52+
sgml-exposed-tags:nil
53+
sgml-local-catalogs:nil
54+
sgml-local-ecat-files:nil
55+
End:
56+
vim600: syn=xml fen fdm=syntax fdl=2 si
57+
vim: et tw=78 syn=sgml
58+
vi: ts=1 sw=1
59+
-->

reference/fpm/observability.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- $Revision$ -->
3+
4+
<chapter xml:id="fpm.observability">
5+
<title>Observability</title>
6+
7+
&reference.fpm.status;
8+
9+
</chapter>
10+
11+
<!-- Keep this comment at the end of the file
12+
Local variables:
13+
mode: sgml
14+
sgml-omittag:t
15+
sgml-shorttag:t
16+
sgml-minimize-attributes:nil
17+
sgml-always-quote-attributes:t
18+
sgml-indent-step:1
19+
sgml-indent-data:t
20+
indent-tabs-mode:nil
21+
sgml-parent-document:nil
22+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
23+
sgml-exposed-tags:nil
24+
sgml-local-catalogs:nil
25+
sgml-local-ecat-files:nil
26+
End:
27+
vim600: syn=xml fen fdm=syntax fdl=2 si
28+
vim: et tw=78 syn=sgml
29+
vi: ts=1 sw=1
30+
-->

0 commit comments

Comments
 (0)