/v1/stats
使用 stats
节点收集与核心应用和数据库有关的重要统计数据。使用当前队列回调大小和挂起消息数量衡量队列表现。
以下连线会连接至此节点:
stats
节点支持 Bearer 口令 以及 API 密钥身份验证。
health
, metrics
, and stats
nodes from an orchestrator, Bearer tokens are not the best option for ongoing checks as they expire every 7 days. To mediate this, you can use an API key, which can be set using the WA_API_KEY
environment variable in the waweb
environment section in the .yml
file of your installation setup.
services: ... waweb: ... environment: ... WA_API_KEY: your-api-key-tokenThe API key you set must have a minimum of 12 characters and a maximum of 128 characters. The Webapp must be restarted whenever you change the API key.