From 19388772a4470176127c73a86a3b0ea334f14336 Mon Sep 17 00:00:00 2001 From: Benjamin Naecker Date: Fri, 19 Jul 2024 13:37:35 -0700 Subject: [PATCH] Add sled-identifiers to instance vCPU stats (#6128) This adds the sled UUID and baseboard info into the existing vCPU stats. This is an incompatible change, and will require dropping old data from the previous versions of the timeseries. That's unused today, and it's not yet clear how we'll actually manage the timeseries data across a schema change, so I'd like to include this now. --- oximeter/oximeter/schema/virtual-machine.toml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/oximeter/oximeter/schema/virtual-machine.toml b/oximeter/oximeter/schema/virtual-machine.toml index 3ef0da4615..520a97bba3 100644 --- a/oximeter/oximeter/schema/virtual-machine.toml +++ b/oximeter/oximeter/schema/virtual-machine.toml @@ -5,7 +5,7 @@ name = "virtual_machine" description = "A guest virtual machine instance" authz_scope = "project" versions = [ - { version = 1, fields = [ "instance_id", "project_id", "silo_id" ] }, + { version = 1, fields = [ "instance_id", "project_id", "silo_id", "sled_id", "sled_model", "sled_revision", "sled_serial" ] }, ] [[metrics]] @@ -56,6 +56,22 @@ description = "ID of the virtual machine instance's project" type = "uuid" description = "ID of the virtual machine instance's silo" +[fields.sled_id] +type = "uuid" +description = "ID of the sled hosting the instance" + +[fields.sled_model] +type = "string" +description = "Model number of the sled hosting the instance" + +[fields.sled_revision] +type = "u32" +description = "Revision number of the sled hosting the instance" + +[fields.sled_serial] +type = "string" +description = "Serial number of the sled hosting the instance" + [fields.state] type = "string" description = "The state of the vCPU"