Statistik

/v1/stats

Kumpulkan statistik penting tentang Coreapp dan database dengan node stats. Ukur kinerja antrean dengan ukuran antrean callback saat ini dan jumlah pesan tertunda.

Edge

Edge berikut terhubung ke node ini:

EdgeDeskripsi

/app

Menampilkan statistik untuk CoreApp.

/db

Menampilkan statistik untuk database.

Sebelum Memulai

Node stats mendukung token Pembawa dan autentikasi kunci API.

Kode 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.