Skip to content

Commit

Permalink
admin-api: add admin.vm.Stats method
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Jul 27, 2017
1 parent 58426f1 commit f8474af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions services/admin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ to set the policy using current mechanism.
| `admin.backup.Info` | `dom0` | config id | - | backup info | info what would be included in the backup
| `admin.backup.Cancel` | `dom0` | config id | - | - | cancel running backup operation
| `admin.Events` | `dom0|vm` | - | - | events |
| `admin.vm.Stats` | `dom0|vm` | - | - | `vm-stats` events, see below | emit VM statistics (CPU, memory usage) in form of events

Volume properties:

Expand All @@ -145,6 +146,12 @@ Volume properties:
- `save_on_stop`
- `snap_on_start`

Method `admin.vm.Stats` returns `vm-stats` events every `stats_interval` seconds, for every running VM. Parameters of `vm-stats` events:

- `memory_kb` - memory usage in kB
- `cpu_time` - absolute CPU time (in milliseconds) spent by the VM since its startup, normalized for one CPU
- `cpu_usage` - CPU usage in percents


## Returned messages

Expand Down

0 comments on commit f8474af

Please sign in to comment.