File tree Expand file tree Collapse file tree 3 files changed +51
-6
lines changed Expand file tree Collapse file tree 3 files changed +51
-6
lines changed Original file line number Diff line number Diff line change 9
9
configuration
10
10
scripting
11
11
certificates
12
- usagestats
12
+ statusapi
13
13
howto/index
14
14
troubleshooting
15
15
community
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ that comprises four primary options:
36
36
37
37
* - **/status **
38
38
- Queried for
39
- :doc: `usage statistics <usagestats >`.
39
+ :doc: `usage statistics <statusapi >`.
40
40
41
41
42
42
.. _configuration-socket :
Original file line number Diff line number Diff line change 7
7
.. _configuration-stats :
8
8
9
9
****************
10
- Usage statistics
10
+ Status API
11
11
****************
12
12
13
- Unit collects instance- and app-wide metrics,
14
- available via the **GET **-only ** /status ** section of the
15
- :ref: `control API <configuration-api >`:
13
+ Unit collects information about the loaded language models, as well as
14
+ instance- and app-wide metrics, and makes them available via the **GET **-only
15
+ ** /status ** section of the :ref: `control API <configuration-api >`:
16
16
17
17
.. list-table ::
18
18
:header-rows: 1
19
19
20
20
* - Option
21
21
- Description
22
22
23
+ * - **modules **
24
+ - Object;
25
+ lists currently loaded language modules.
26
+
23
27
* - **connections **
24
28
- Object;
25
29
lists per-instance connection statistics.
@@ -37,6 +41,24 @@ Example:
37
41
.. code-block :: json
38
42
39
43
{
44
+ "modules" : {
45
+ "python" : [
46
+ {
47
+ "version" : " 3.12.3" ,
48
+ "lib" : " /opt/unit/modules/python.unit.so"
49
+ },
50
+ {
51
+ "version" : " 3.8" ,
52
+ "lib" : " /opt/unit/modules/python-3.8.unit.so"
53
+ }
54
+ ],
55
+
56
+ "php" : {
57
+ "version" : " 8.3.4" ,
58
+ "lib" : " /opt/unit/modules/php.unit.so"
59
+ }
60
+ },
61
+
40
62
"connections" : {
41
63
"accepted" : 1067 ,
42
64
"active" : 13 ,
@@ -63,6 +85,29 @@ Example:
63
85
}
64
86
}
65
87
88
+ Each item in the **modules ** object lists one of the currently loaded language
89
+ modules, the installed version (or versions) of the module, and the path to the
90
+ module file:
91
+
92
+ .. list-table ::
93
+ :header-rows: 1
94
+
95
+ * - Option
96
+ - Description
97
+
98
+ * - **name **
99
+ - String;
100
+ language module name.
101
+
102
+ * - **version **
103
+ - String;
104
+ language module version. If multiple versions are loaded,
105
+ the list contains multiple items.
106
+
107
+ * - **lib **
108
+ - String;
109
+ path to the language module file.
110
+
66
111
The **connections ** object offers the following Unit instance metrics:
67
112
68
113
.. list-table ::
You can’t perform that action at this time.
0 commit comments