Skip to content

Commit aed11e2

Browse files
Add switch/sled metadata to ddm/mgd related timeseries
1 parent 6a92864 commit aed11e2

15 files changed

+579
-29
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
bgp_session:active_connections_accepted
2+
bgp_session:connection_retries
3+
bgp_session:hold_timer_expirations
4+
bgp_session:idle_hold_timer_expirations
5+
bgp_session:keepalive_send_failures
6+
bgp_session:keepalives_received
7+
bgp_session:keepalives_sent
8+
bgp_session:notification_send_failures
9+
bgp_session:open_handle_failures
10+
bgp_session:open_send_failures
11+
bgp_session:opens_received
12+
bgp_session:opens_sent
13+
bgp_session:passive_connections_accepted
14+
bgp_session:prefixes_advertised
15+
bgp_session:prefixes_imported
16+
bgp_session:transition_to_active
17+
bgp_session:transition_to_connect
18+
bgp_session:transition_to_established
19+
bgp_session:transition_to_idle
20+
bgp_session:transition_to_open_confirm
21+
bgp_session:transition_to_open_sent
22+
bgp_session:transition_to_session_setup
23+
bgp_session:unexpected_keepalive_messages
24+
bgp_session:unexpected_open_messages
25+
bgp_session:unexpected_update_messages
26+
bgp_session:update_nexthop_missing
27+
bgp_session:update_send_failures
28+
bgp_session:updates_received
29+
bgp_session:updates_sent
30+
bfd_session:control_packet_send_failures
31+
bfd_session:control_packets_sent
32+
bfd_session:control_packets_received
33+
bfd_session:message_receive_error
34+
bfd_session:timeout_expired
35+
bfd_session:transition_to_down
36+
bfd_session:transition_to_init
37+
bfd_session:transition_to_up
38+
mg_lower:routes_blocked_by_link_state
39+
switch_rib:active_routes
40+
ddm_session:advertisements_received
41+
ddm_session:advertisements_sent
42+
ddm_session:imported_tunnel_endpoints
43+
ddm_session:imported_underlay_prefixes
44+
ddm_session:peer_address_changes
45+
ddm_session:peer_expirations
46+
ddm_session:peer_sessions_established
47+
ddm_session:solicitations_received
48+
ddm_session:solicitations_sent
49+
ddm_session:update_send_fail
50+
ddm_session:updates_received
51+
ddm_session:updates_sent
52+
ddm_router:originated_tunnel_endpoints
53+
ddm_router:originated_underlay_prefixes
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
bgp_session:active_connections_accepted
2+
bgp_session:connection_retries
3+
bgp_session:hold_timer_expirations
4+
bgp_session:idle_hold_timer_expirations
5+
bgp_session:keepalive_send_failures
6+
bgp_session:keepalives_received
7+
bgp_session:keepalives_sent
8+
bgp_session:notification_send_failures
9+
bgp_session:open_handle_failures
10+
bgp_session:open_send_failures
11+
bgp_session:opens_received
12+
bgp_session:opens_sent
13+
bgp_session:passive_connections_accepted
14+
bgp_session:prefixes_advertised
15+
bgp_session:prefixes_imported
16+
bgp_session:transition_to_active
17+
bgp_session:transition_to_connect
18+
bgp_session:transition_to_established
19+
bgp_session:transition_to_idle
20+
bgp_session:transition_to_open_confirm
21+
bgp_session:transition_to_open_sent
22+
bgp_session:transition_to_session_setup
23+
bgp_session:unexpected_keepalive_messages
24+
bgp_session:unexpected_open_messages
25+
bgp_session:unexpected_update_messages
26+
bgp_session:update_nexthop_missing
27+
bgp_session:update_send_failures
28+
bgp_session:updates_received
29+
bgp_session:updates_sent
30+
bfd_session:control_packet_send_failures
31+
bfd_session:control_packets_sent
32+
bfd_session:control_packets_received
33+
bfd_session:message_receive_error
34+
bfd_session:timeout_expired
35+
bfd_session:transition_to_down
36+
bfd_session:transition_to_init
37+
bfd_session:transition_to_up
38+
mg_lower:routes_blocked_by_link_state
39+
switch_rib:active_routes

oximeter/db/src/model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use uuid::Uuid;
4545
/// - [`crate::Client::initialize_db_with_version`]
4646
/// - [`crate::Client::ensure_schema`]
4747
/// - The `clickhouse-schema-updater` binary in this crate
48-
pub const OXIMETER_VERSION: u64 = 13;
48+
pub const OXIMETER_VERSION: u64 = 14;
4949

5050
// Wrapper type to represent a boolean in the database.
5151
//

oximeter/oximeter/schema/bfd-session.toml

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "bfd_session"
55
description = "A Bidirectional Forwarding Protocol (BFD) session"
66
authz_scope = "fleet"
77
versions = [
8-
{ version = 1, fields = [ "hostname", "rack_id", "sled_id", "peer" ] },
8+
{ version = 1, fields = [ "hostname", "peer", "rack_id", "sled_id", "sled_model", "sled_revision", "sled_serial", "switch_id", "switch_fab", "switch_lot", "switch_wafer", "switch_wafer_loc_x", "switch_wafer_loc_y", "switch_model", "switch_revision", "switch_serial", "switch_slot" ] },
99
]
1010

1111
[[metrics]]
@@ -88,6 +88,10 @@ versions = [
8888
type = "string"
8989
description = "The hostname of the machine running the BFD session"
9090

91+
[fields.peer]
92+
type = "ip_addr"
93+
description = "Address of the BFD session peer"
94+
9195
[fields.rack_id]
9296
type = "uuid"
9397
description = "ID of the rack running the BFD session"
@@ -96,6 +100,54 @@ description = "ID of the rack running the BFD session"
96100
type = "uuid"
97101
description = "ID of the sled running the BFD session"
98102

99-
[fields.peer]
100-
type = "ip_addr"
101-
description = "Address of the BFD session peer"
103+
[fields.sled_model]
104+
type = "string"
105+
description = "Model number of the sled running the BFD session"
106+
107+
[fields.sled_revision]
108+
type = "u32"
109+
description = "Revision number of the sled running the BFD session"
110+
111+
[fields.sled_serial]
112+
type = "string"
113+
description = "Serial number of the sled running the BFD session"
114+
115+
[fields.switch_id]
116+
type = "uuid"
117+
description = "ID of the switch running the BFD session"
118+
119+
[fields.switch_fab]
120+
type = "string"
121+
description = "Fabrication plant identifier of the switch running the BFD session"
122+
123+
[fields.switch_lot]
124+
type = "string"
125+
description = "Lot number of the switch running the BFD session"
126+
127+
[fields.switch_wafer]
128+
type = "u8"
129+
description = "Wafer number of the switch running the BFD session"
130+
131+
[fields.switch_wafer_loc_x]
132+
type = "i8"
133+
description = "X-coordinate wafer location of the switch running the BFD session"
134+
135+
[fields.switch_wafer_loc_y]
136+
type = "i8"
137+
description = "Y-coordinate wafer location of the switch running the BFD session"
138+
139+
[fields.switch_model]
140+
type = "string"
141+
description = "The model number switch running the BFD session"
142+
143+
[fields.switch_revision]
144+
type = "u32"
145+
description = "Revision number of the switch running the BFD session"
146+
147+
[fields.switch_serial]
148+
type = "string"
149+
description = "Serial number of the switch running the BFD session"
150+
151+
[fields.switch_slot]
152+
type = "u16"
153+
description = "Slot number of the switch running the BFD session"

oximeter/oximeter/schema/bgp-session.toml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "bgp_session"
55
description = "A peer-to-peer session of the Border Gateway Protocol"
66
authz_scope = "fleet"
77
versions = [
8-
{ version = 1, fields = [ "hostname", "local_asn", "peer", "rack_id", "sled_id" ] }
8+
{ version = 1, fields = [ "hostname", "local_asn", "peer", "rack_id", "sled_id", "sled_model", "sled_revision", "sled_serial", "switch_id", "switch_fab", "switch_lot", "switch_wafer", "switch_wafer_loc_x", "switch_wafer_loc_y", "switch_model", "switch_revision", "switch_serial", "switch_slot" ] }
99
]
1010

1111
[[metrics]]
@@ -291,3 +291,55 @@ description = "ID of the rack on which our BGP peer is running"
291291
[fields.sled_id]
292292
type = "uuid"
293293
description = "ID of the sled on which our BGP peer is running"
294+
295+
[fields.sled_model]
296+
type = "string"
297+
description = "Model number of the sled on which our BGP peer is running"
298+
299+
[fields.sled_revision]
300+
type = "u32"
301+
description = "Revision number of the sled on which our BGP peer is running"
302+
303+
[fields.sled_serial]
304+
type = "string"
305+
description = "Serial number of the sled on which our BGP peer is running"
306+
307+
[fields.switch_id]
308+
type = "uuid"
309+
description = "ID of the switch on which our BGP peer is running"
310+
311+
[fields.switch_fab]
312+
type = "string"
313+
description = "Fabrication plant identifier on of the switch on which our BGP peer is running"
314+
315+
[fields.switch_lot]
316+
type = "string"
317+
description = "Lot number of the switch on which our BGP peer is running"
318+
319+
[fields.switch_wafer]
320+
type = "u8"
321+
description = "Wafer number of the switch on which our BGP peer is running"
322+
323+
[fields.switch_wafer_loc_x]
324+
type = "i8"
325+
description = "X-coordinate wafer location of the switch on which our BGP peer is running"
326+
327+
[fields.switch_wafer_loc_y]
328+
type = "i8"
329+
description = "Y-coordinate wafer location of the switch on which our BGP peer is running"
330+
331+
[fields.switch_model]
332+
type = "string"
333+
description = "The model number switch on which our BGP peer is running"
334+
335+
[fields.switch_revision]
336+
type = "u32"
337+
description = "Revision number of the switch on which our BGP peer is running"
338+
339+
[fields.switch_serial]
340+
type = "string"
341+
description = "Serial number of the switch on which our BGP peer is running"
342+
343+
[fields.switch_slot]
344+
type = "u16"
345+
description = "Slot number of the switch on which our BGP peer is running"

oximeter/oximeter/schema/ddm-router.toml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "ddm_router"
55
description = "A Delay-Driven Multipath (DDM) router"
66
authz_scope = "fleet"
77
versions = [
8-
{ version = 1, fields = [ "hostname", "rack_id", "sled_id" ] },
8+
{ version = 1, fields = [ "hostname", "rack_id", "sled_id", "sled_model", "sled_revision", "sled_serial", "switch_id", "switch_fab", "switch_lot", "switch_wafer", "switch_wafer_loc_x", "switch_wafer_loc_y", "switch_model", "switch_revision", "switch_serial", "switch_slot" ] },
99
]
1010

1111
[[metrics]]
@@ -37,3 +37,55 @@ description = "ID of the rack running the DDM router"
3737
[fields.sled_id]
3838
type = "uuid"
3939
description = "ID of the sled running the DDM router"
40+
41+
[fields.sled_model]
42+
type = "string"
43+
description = "Model number of the sled running the DDM router"
44+
45+
[fields.sled_revision]
46+
type = "u32"
47+
description = "Revision number of the sled running the DDM router"
48+
49+
[fields.sled_serial]
50+
type = "string"
51+
description = "Serial number of the sled running the DDM router"
52+
53+
[fields.switch_id]
54+
type = "uuid"
55+
description = "ID of the switch running the DDM router"
56+
57+
[fields.switch_fab]
58+
type = "string"
59+
description = "Fabrication plant identifier on of the switch running the DDM router"
60+
61+
[fields.switch_lot]
62+
type = "string"
63+
description = "Lot number of the switch running the DDM router"
64+
65+
[fields.switch_wafer]
66+
type = "u8"
67+
description = "Wafer number of the switch running the DDM router"
68+
69+
[fields.switch_wafer_loc_x]
70+
type = "i8"
71+
description = "X-coordinate wafer location of the switch running the DDM router"
72+
73+
[fields.switch_wafer_loc_y]
74+
type = "i8"
75+
description = "Y-coordinate wafer location of the switch running the DDM router"
76+
77+
[fields.switch_model]
78+
type = "string"
79+
description = "The model number switch running the DDM router"
80+
81+
[fields.switch_revision]
82+
type = "u32"
83+
description = "Revision number of the switch running the DDM router"
84+
85+
[fields.switch_serial]
86+
type = "string"
87+
description = "Serial number of the switch running the DDM router"
88+
89+
[fields.switch_slot]
90+
type = "u16"
91+
description = "Slot number of the switch running the DDM router"

oximeter/oximeter/schema/ddm-session.toml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "ddm_session"
55
description = "A session in a Delay-Driven Multipath (DDM) router"
66
authz_scope = "fleet"
77
versions = [
8-
{ version = 1, fields = [ "hostname", "interface", "rack_id", "sled_id" ] },
8+
{ version = 1, fields = [ "hostname", "interface", "rack_id", "sled_id", "sled_model", "sled_revision", "sled_serial", "switch_id", "switch_fab", "switch_lot", "switch_wafer", "switch_wafer_loc_x", "switch_wafer_loc_y", "switch_model", "switch_revision", "switch_serial", "switch_slot" ] },
99
]
1010

1111
[[metrics]]
@@ -134,3 +134,55 @@ description = "ID of the rack running the DDM router"
134134
[fields.sled_id]
135135
type = "uuid"
136136
description = "ID of the sled running the DDM router"
137+
138+
[fields.sled_model]
139+
type = "string"
140+
description = "Model number of the sled running the DDM router"
141+
142+
[fields.sled_revision]
143+
type = "u32"
144+
description = "Revision number of the sled running the DDM router"
145+
146+
[fields.sled_serial]
147+
type = "string"
148+
description = "Serial number of the sled running the DDM router"
149+
150+
[fields.switch_id]
151+
type = "uuid"
152+
description = "ID of the switch running the DDM router"
153+
154+
[fields.switch_fab]
155+
type = "string"
156+
description = "Fabrication plant identifier on of the switch running the DDM router"
157+
158+
[fields.switch_lot]
159+
type = "string"
160+
description = "Lot number of the switch running the DDM router"
161+
162+
[fields.switch_wafer]
163+
type = "u8"
164+
description = "Wafer number of the switch running the DDM router"
165+
166+
[fields.switch_wafer_loc_x]
167+
type = "i8"
168+
description = "X-coordinate wafer location of the switch running the DDM router"
169+
170+
[fields.switch_wafer_loc_y]
171+
type = "i8"
172+
description = "Y-coordinate wafer location of the switch running the DDM router"
173+
174+
[fields.switch_model]
175+
type = "string"
176+
description = "The model number switch running the DDM router"
177+
178+
[fields.switch_revision]
179+
type = "u32"
180+
description = "Revision number of the switch running the DDM router"
181+
182+
[fields.switch_serial]
183+
type = "string"
184+
description = "Serial number of the switch running the DDM router"
185+
186+
[fields.switch_slot]
187+
type = "u16"
188+
description = "Slot number of the switch running the DDM router"

0 commit comments

Comments
 (0)