Skip to content

Commit 2bc1be4

Browse files
committed
docs: add modules to usagestats
1 parent 3f66971 commit 2bc1be4

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

source/usagestats.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ available via the **GET**-only **/status** section of the
2020
* - Option
2121
- Description
2222

23+
* - **modules**
24+
- Object;
25+
list of currently loaded language modules.
26+
2327
* - **connections**
2428
- Object;
2529
lists per-instance connection statistics.
@@ -37,6 +41,19 @@ Example:
3741
.. code-block:: json
3842
3943
{
44+
"modules": {
45+
"python": [
46+
{
47+
"version": "3.12.3",
48+
"lib": "/opt/unit/modules/python.unit.so"
49+
},
50+
{
51+
"version": "3.12.1",
52+
"lib": "/opt/unit/modules/python-3.12.1.unit.so"
53+
}
54+
],
55+
},
56+
4057
"connections": {
4158
"accepted": 1067,
4259
"active": 13,
@@ -63,6 +80,29 @@ Example:
6380
}
6481
}
6582
83+
Each item in the **modules** object lists one of the currently loaded language
84+
modules, the installed version (or versions) of the module, and the path to the
85+
module file:
86+
87+
.. list-table::
88+
:header-rows: 1
89+
90+
* - Option
91+
- Description
92+
93+
* - **name**
94+
- String;
95+
language module name.
96+
97+
* - **version**
98+
- String;
99+
language module version. If multiple versions are loaded,
100+
the list contains multiple items.
101+
102+
* - **lib**
103+
- String;
104+
path to the language module file.
105+
66106
The **connections** object offers the following Unit instance metrics:
67107

68108
.. list-table::

0 commit comments

Comments
 (0)