Skip to content

Commit

Permalink
Move DDM router and session 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 c606ebb
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 0 deletions.
39 changes: 39 additions & 0 deletions oximeter/oximeter/schema/ddm-router.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
format_version = 1

[target]
name = "ddm_router"
description = "A Delay-Driven Multipath (DDM) router"
authz_scope = "fleet"
versions = [
{ version = 1, fields = [ "hostname", "rack_id", "sled_id" ] },
]

[[metrics]]
name = "originated_tunnel_endpoints"
description = "Current number of tunnel endpoints this router advertises"
units = "count"
datum_type = "u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "originated_underlay_prefixes"
description = "Current number of prefixes on the underlay network this router advertises"
units = "count"
datum_type = "u64"
versions = [
{ added_in = 1, fields = [ ] }
]

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

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

[fields.sled_id]
type = "uuid"
description = "ID of the sled running the DDM router"
136 changes: 136 additions & 0 deletions oximeter/oximeter/schema/ddm-session.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
format_version = 1

[target]
name = "ddm_session"
description = "A session in a Delay-Driven Multipath (DDM) router"
authz_scope = "fleet"
versions = [
{ version = 1, fields = [ "hostname", "interface", "rack_id", "sled_id" ] },
]

[[metrics]]
name = "advertisements_received"
description = "Total number of advertisements received from a peer"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "advertisements_sent"
description = "Total number of advertisements sent to a peer"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "imported_tunnel_endpoints"
description = "Current count of tunnel endpoints imported from a peer"
units = "count"
datum_type = "u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "imported_underlay_prefixes"
description = "Current count of underlay prefixes imported from a peer"
units = "count"
datum_type = "u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "peer_address_changes"
description = "Total number of times a peer changed its underlay address"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "peer_expirations"
description = """\
Total number of times a peer was expired because we received no \
messages from it within the expiration threshold\
"""
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "peer_sessions_established"
description = "Total number of times a session was established with a peer"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "solicitations_received"
description = "Total number of soliciation messages received from a peer"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "solicitations_sent"
description = "Total number of soliciation messages sent to a peer"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "update_send_fail"
description = "Total number of failures to send an update message to a peer"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "updates_received"
description = "Total number of update messages received from a peer"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

[[metrics]]
name = "updates_sent"
description = "Total number of update messages sent to a peer"
units = "count"
datum_type = "cumulative_u64"
versions = [
{ added_in = 1, fields = [ ] }
]

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

[fields.interface]
type = "string"
description = "The host interface on which the DDM session is running"

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

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

0 comments on commit c606ebb

Please sign in to comment.