-
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.
Track more kinds of datalinks on a sled (#6208)
- Drop the old `physical_data_link:*` timeseries, in favor of an expanded `sled_data_link:*`. This includes the sled identifiers, and also the _kind_ of link, which incorporates physical, VNIC, and OPTE devices. Expunge the old timeseries. - Make the existing metrics manager into a small wrapper around a background task. Add message types for asking the task to start / stop tracking various things, for now just VNICs and OPTE ports. Physical links can also be tracked (but not untracked), which the sled agent does immediately after creating the task. - Add the metrics request queue to the instance manager, instance, and instance runner, and have the runner start / stop tracking the control VNIC and OPTE ports after booting the zone and before stopping it respectively. - Add the metrics request queue to the probe manager, and also start / stop tracking the links in the zones. - Add the metrics queue to the service manager. This one is more complicated, because this object has to exist before the `SledAgent` object itself, in order to start the switch zone. Instead, the manager is provided the queue when it's notified that the `SledAgent` exists, and at the same time tries to use the queue to notify the metrics task about the control VNIC that must have already been plumbed into the zone. The service manager also tracks / untracks the VNICs and OPTE ports for the _Omicron_ zones it starts, which is much simpler. - Add some helper methods into the `{Running,Installed}Zone}` types for listing the names of the control VNIC, bootstrap VNIC, and any OPTE port names. These are used to tell the metrics task what links to track. - Clean up a few straggling comments or references to the VNICs that were previously required between OPTE ports and the guest Viona driver. Those were removed in #5989.
- Loading branch information
Showing
17 changed files
with
956 additions
and
348 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
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
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
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
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,6 @@ | ||
physical_data_link:bytes_received | ||
physical_data_link:bytes_sent | ||
physical_data_link:errors_received | ||
physical_data_link:errors_sent | ||
physical_data_link:packets_received | ||
physical_data_link:packets_sent |
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,6 @@ | ||
physical_data_link:bytes_received | ||
physical_data_link:bytes_sent | ||
physical_data_link:errors_received | ||
physical_data_link:errors_sent | ||
physical_data_link:packets_received | ||
physical_data_link:packets_sent |
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
Oops, something went wrong.