统计数据

/v1/stats

使用 stats 节点收集与核心应用和数据库有关的重要统计数据。使用当前队列回调大小和挂起消息数量衡量队列表现。

连线

以下连线会连接至此节点:

连线描述

/app

返回核心应用的统计数据。

/db

返回数据库的统计数据。

准备工作

stats 节点支持 Bearer 口令 以及 API 密钥身份验证。

API 密钥

If you wish to monitor the 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-token
The 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.