XCP Archive/XCP diagnostic messages: Difference between revisions
From Xen
Jump to navigationJump to search
Dave.scott (talk | contribs) No edit summary |
Dave.scott (talk | contribs) |
||
Line 19: | Line 19: | ||
== Load information example == |
== Load information example == |
||
The load metrics are grouped by the type of thing they refer to: |
|||
<code>$ wget http://server/metrics</code> |
|||
<syntaxhighlight lang="json"> |
|||
{ |
|||
"Host": {"instances": "/metrics/host", "description": "host"}, |
|||
"VM": {"instances": "/metrics/VM", "description": "virtual machine"} |
|||
} |
|||
</syntaxhighlight> |
|||
== Alarm state example == |
== Alarm state example == |
Revision as of 14:45, 1 May 2013
In future we would like to have a diagnostic console which can help understand the state of an individual host (not pool). We would like to see:
- instantaneous load information, including
- disk and network throughput (bytes per sec)
- memory usage
- CPU usage
- number of messages per second across various internal control interfaces
- message latency distribution per internal service
- the states of "alarms", where an "alarm" is set when one or more of the load metrics crosses some threshold for some period of time. Perhaps we could 3 states and use red/amber/green (people love dashboards with traffic lights)
- the contents of message queues containing JSON control messages
- a live stream of messages, filtered with some expression
- a live stream of logs, filtered with some expression
Ideally the console would be entirely web-based, and the API should be designed to make that easy.
Example messages
The message format is not fixed, it can still be adjusted. Everything here is just an example.
Load information example
The load metrics are grouped by the type of thing they refer to:
$ wget http://server/metrics
{
"Host": {"instances": "/metrics/host", "description": "host"},
"VM": {"instances": "/metrics/VM", "description": "virtual machine"}
}