mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 12:42:16 +01:00
improving document
This commit is contained in:
@@ -5,34 +5,8 @@ title: Ping
|
||||
Gotenberg provides the endpoint `/ping` for checking the API availability with
|
||||
a simple `GET` request.
|
||||
|
||||
If `LOG_LEVEL` is `"DEBUG"`, it also returns details about the PM2 processes in JSON format.
|
||||
For instance:
|
||||
Currently this endpoint does nothing special. A better way to monitor
|
||||
Gotenberg would be by checking the memory usage.
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
"name": "google-chrome-stable",
|
||||
"pm2_env": {
|
||||
"status": "online",
|
||||
"restart_time": 0
|
||||
},
|
||||
"monit": {
|
||||
"memory": 72294400,
|
||||
"cpu": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "unoconv",
|
||||
"pm2_env": {
|
||||
"status": "online",
|
||||
"restart_time": 0
|
||||
},
|
||||
"monit": {
|
||||
"memory": 71000064,
|
||||
"cpu": 0
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
> if `LOG_LEVEL` is **not** `"DEBUG"`, no log entries are written.
|
||||
Also, as Google Chrome and unoconv (LibreOffice) are intricate programs, you should
|
||||
restart your Gotenberg instances from time to time to ensure a nominal behaviour.
|
||||
|
||||
Reference in New Issue
Block a user