-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move VM vCPU timeseries to TOML (#6035)
- Loading branch information
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19800,7 +19800,8 @@ | |
"enum": [ | ||
"count", | ||
"bytes", | ||
"seconds" | ||
"seconds", | ||
"nanoseconds" | ||
] | ||
}, | ||
"User": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,6 +190,7 @@ pub enum Units { | |
Count, | ||
Bytes, | ||
Seconds, | ||
Nanoseconds, | ||
} | ||
|
||
/// The schema for a timeseries. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
format_version = 1 | ||
|
||
[target] | ||
name = "virtual_machine" | ||
description = "A guest virtual machine instance" | ||
authz_scope = "project" | ||
versions = [ | ||
{ version = 1, fields = [ "instance_id", "project_id", "silo_id" ] }, | ||
] | ||
|
||
[[metrics]] | ||
name = "vcpu_usage" | ||
description = "Cumulative time each vCPU has spent in a state" | ||
units = "nanoseconds" | ||
datum_type = "cumulative_u64" | ||
versions = [ | ||
{ added_in = 1, fields = [ "state", "vcpu_id" ] } | ||
] | ||
|
||
[[metrics]] | ||
name = "reset" | ||
description = "Cumulative number of times the virtual machine has been reset" | ||
units = "count" | ||
datum_type = "cumulative_u64" | ||
versions = [ | ||
{ added_in = 1, fields = [ ] } | ||
] | ||
|
||
[[metrics]] | ||
name = "pv_panic_guest_handled" | ||
description = "Cumulative number of times a PVPANIC event was handled by the guest" | ||
units = "count" | ||
datum_type = "cumulative_u64" | ||
versions = [ | ||
{ added_in = 1, fields = [ ] } | ||
] | ||
|
||
[[metrics]] | ||
name = "pv_panic_host_handled" | ||
description = "Cumulative number of times a PVPANIC event was handled by the host" | ||
units = "count" | ||
datum_type = "cumulative_u64" | ||
versions = [ | ||
{ added_in = 1, fields = [ ] } | ||
] | ||
|
||
[fields.instance_id] | ||
type = "uuid" | ||
description = "ID of the virtual machine instance" | ||
|
||
[fields.project_id] | ||
type = "uuid" | ||
description = "ID of the virtual machine instance's project" | ||
|
||
[fields.silo_id] | ||
type = "uuid" | ||
description = "ID of the virtual machine instance's silo" | ||
|
||
[fields.state] | ||
type = "string" | ||
description = "The state of the vCPU" | ||
|
||
[fields.vcpu_id] | ||
type = "u32" | ||
description = "The ID of the vCPU" |