Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move switch table timeseries to TOML #6047

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions oximeter/oximeter/schema/switch-table.toml
Original file line number Diff line number Diff line change
@@ -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"
bnaecker marked this conversation as resolved.
Show resolved Hide resolved
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"
Loading