Skip to content

Commit

Permalink
Move static router timeseries to TOML
Browse files Browse the repository at this point in the history
  • Loading branch information
bnaecker committed Jul 10, 2024
1 parent 808b1a1 commit 91ab921
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions oximeter/oximeter/schema/static-routing-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
format_version = 1

[target]
name = "static_routing_config"
description = "Static routing configuration used by the Oxide routing daemons"
authz_scope = "fleet"
versions = [
{ version = 1, fields = [ "hostname", "rack_id", "sled_id" ] },
]

[[metrics]]
name = "static_routes"
description = "Current number of static routes in the router"
units = "seconds"
# TODO: This should not be cumulative, it's the number of _current_ static
# routes
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "static_nexthops"
description = "Current number of static next-hops in the router"
units = "seconds"
# TODO: This should not be cumulative, it's the number of _current_ next hops
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[fields.hostname]
type = "string"
description = "The hostname of the machine running the router"

[fields.rack_id]
type = "uuid"
description = "ID of the rack running the router"

[fields.sled_id]
type = "uuid"
description = "ID of the sled running the router"

0 comments on commit 91ab921

Please sign in to comment.