Need processId for Metrics of threads/db-pool-stat/health #4828

Closed
opened 2026-02-21 18:08:12 -05:00 by yindo · 0 comments
Owner

Originally created by @zhangever on GitHub (Jul 30, 2024).

Originally assigned to: @takatost on GitHub.

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

We can get the runtime metrics by /threads、/db-pool-stat etc.

{
  "checked_in_connections": 3,
  "checked_out_connections": 0,
  "connection_timeout": 30.0,
  "overflow_connections": -497,
  "pool_size": 500,
  "recycle_time": 3600
}

But I can't tell the exactly process id for gunicorn with SERVER_WORKER_AMOUNT more than 1。

2. Additional context or comments

Expected result should be:

{
  "pid": 99,
  "checked_in_connections": 3,
  "checked_out_connections": 0,
  "connection_timeout": 30.0,
  "overflow_connections": -497,
  "pool_size": 500,
  "recycle_time": 3600
}

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @zhangever on GitHub (Jul 30, 2024). Originally assigned to: @takatost on GitHub. ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. We can get the runtime metrics by /threads、/db-pool-stat etc. ``` { "checked_in_connections": 3, "checked_out_connections": 0, "connection_timeout": 30.0, "overflow_connections": -497, "pool_size": 500, "recycle_time": 3600 } ``` But I can't tell the exactly process id for gunicorn with SERVER_WORKER_AMOUNT more than 1。 ### 2. Additional context or comments Expected result should be: ``` { "pid": 99, "checked_in_connections": 3, "checked_out_connections": 0, "connection_timeout": 30.0, "overflow_connections": -497, "pool_size": 500, "recycle_time": 3600 } ``` ### 3. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:08:12 -05:00
yindo closed this issue 2026-02-21 18:08:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4828