-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move static router timeseries to TOML
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |