diff --git a/oximeter/oximeter/schema/static-routing-config.toml b/oximeter/oximeter/schema/static-routing-config.toml new file mode 100644 index 0000000000..ad60da2680 --- /dev/null +++ b/oximeter/oximeter/schema/static-routing-config.toml @@ -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"