From c932ed2b856f6fb15b35654457f098f4c6934b88 Mon Sep 17 00:00:00 2001 From: Benjamin Naecker Date: Thu, 11 Jul 2024 00:11:45 +0000 Subject: [PATCH] Move switch table timeseries to TOML --- oximeter/oximeter/schema/switch-table.toml | 106 +++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 oximeter/oximeter/schema/switch-table.toml diff --git a/oximeter/oximeter/schema/switch-table.toml b/oximeter/oximeter/schema/switch-table.toml new file mode 100644 index 0000000000..1e8a9b1b93 --- /dev/null +++ b/oximeter/oximeter/schema/switch-table.toml @@ -0,0 +1,106 @@ +format_version = 1 + +[target] +name = "switch_table" +description = "A table on a Sidecar switch ASIC" +authz_scope = "fleet" +versions = [ + { version = 1, fields = [ "rack_id", "sled_id", "sidecar_id", "table" ] }, +] + +[[metrics]] +name = "capacity" +description = "Maximum number of entries in the table" +units = "count" +datum_type = "u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[[metrics]] +name = "collisions" +description = "Total number of inserts failed due to a collision" +units = "count" +datum_type = "cumulative_u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[[metrics]] +name = "delete_misses" +description = "Total number of deletes that failed due to a missing entry" +units = "count" +datum_type = "cumulative_u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[[metrics]] +name = "deletes" +description = "Total number of entries deleted" +units = "count" +datum_type = "cumulative_u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[[metrics]] +name = "exhaustion" +description = "Total number of inserts that failed due to space exhaustion" +units = "count" +datum_type = "cumulative_u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[[metrics]] +name = "inserts" +description = "Total number of entries inserted" +units = "count" +datum_type = "cumulative_u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[[metrics]] +name = "occupancy" +description = "Current number of entries in the table" +units = "count" +datum_type = "u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[[metrics]] +name = "update_misses" +description = "Total number of updates that failed due to a missing entry" +units = "count" +datum_type = "cumulative_u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[[metrics]] +name = "updates" +description = "Total number of entries updated in place" +units = "count" +datum_type = "cumulative_u64" +versions = [ + { added_in = 1, fields = [ ] } +] + +[fields.rack_id] +type = "uuid" +description = "ID of the rack containing the switch" + +[fields.sled_id] +type = "uuid" +description = "ID of the sled responsible for managing the switch" + +[fields.sidecar_id] +type = "uuid" +description = "ID of the Sidecar switch" + +[fields.table] +type = "string" +description = "Name of the switch table"