How it works
-
01
Declare a metric
An account user declares a metric (string, number or JSON) and gets a uid, or the service declares it itself via POST /api/metrics-ingest.
-
02
Push a value
A simple PUT /api/metrics-ingest/{uid} with the X-Api-Key header sends the value and the ok, warning or error status.
-
03
See the result on the diagram
The linked block gets a green (ok), orange (warning) or blinking red (error) halo and a marker showing the value on hover.
Technical specifications
Example
curl -X PUT https://votre-instance/api/metrics-ingest/a1b2c3d4e5f6a7b8 \
-H "X-Api-Key: <clé API du Compte>" \
-H "Content-Type: application/json" \
-d '{"valueFloat": 128.4, "status": "ok"}'
Use cases
Show the state of a pipeline or processing chain
Track a service’s latency or error rate on its diagram
Spot an incident by simply opening the diagram
Frequently asked questions
Do I need a Chart’s HUB account to send values?+
No, the account API key is enough: the monitoring application needs no user identity.
Does each call replace the previous state?+
Yes: each call fully replaces value and status. An omitted status goes back to “no information”.
Related features
AI generation via MCP
Chart’s HUB exposes an MCP server: Claude Code or Claude Desktop can create and extend your diagrams from a conversation.
SecurityExternal embedding
A JavaScript library displays the diagram read-only on a third-party page and refreshes by itself when you edit it.
CollaborationAccounts, teams and roles
An Account brings the company together, teams group colleagues, and each share says whether the person can edit or only view.