Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switch/sled metadata to ddm/mgd related timeseries #6955

Draft
wants to merge 8 commits into
base: zl/tfportd-oximeter
Choose a base branch
from

Conversation

zeeshanlakhani
Copy link
Collaborator

No description provided.

Includes:

- package-manifest update to match the properties added to dpd
- removal of client call to get sled idenifier information (no longer used)
- switch_slot added to oximeter schemas for dendrite/switch-data-link
Related to oxidecomputer/dendrite#1033.

New timeseries (from sled-data-link) as we've added switch information
in the metadata.
@zeeshanlakhani zeeshanlakhani self-assigned this Oct 30, 2024
zeeshanlakhani added a commit to oxidecomputer/maghemite that referenced this pull request Oct 30, 2024
@@ -5,7 +5,7 @@ name = "bfd_session"
description = "A Bidirectional Forwarding Protocol (BFD) session"
authz_scope = "fleet"
versions = [
{ version = 1, fields = [ "hostname", "rack_id", "sled_id", "peer" ] },
{ 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" ] },
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bnaecker, there's a question about which switch and sled fields we really need. Is it just switch_id (what Ry recommended)? Do we include anything beyond sled_id for sled stuff? I laid everything out as we get all the data (either via smf or dpd-client), but it's easy to restrict this. Thoughts?

@zeeshanlakhani zeeshanlakhani force-pushed the zl/tfportd-oximeter branch 2 times, most recently from 4c9a71d to 819eded Compare November 1, 2024 02:35
Copy link
Contributor

@Nieuwejaar Nieuwejaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks pretty straightforward. It might be worth having @bnaecker sanity check the oximeter stuff. It looks fine to me, but I haven't worked with any of the schema stuff before.


tfport_config = tfport_config
.add_property(
"host",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should really be dpd_host and dpd_port or dendrite_host and dendrite_port. I know the command line options are just host and port, but that's not ideal either.

Copy link
Collaborator Author

@zeeshanlakhani zeeshanlakhani Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Since this is in draft (and needs other PRs in first), I'll make these changes in #6918 for tfportd.


for address in addresses {
tfport_config = tfport_config.add_property(
"address",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe 'listen_address`?

Copy link
Collaborator Author

@zeeshanlakhani zeeshanlakhani Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, will do for these and tfport in the sep PRs.


if let Some(i) = info {
tfport_config = tfport_config
.add_property(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than repeating this same code 5 (6?) times, maybe add a helper function to do it? That will also help avoid any future errors if we decide to add/change a property.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. For sure. This piece of code is generally super repetitive, but I'll make this change for sled properties.

@zeeshanlakhani
Copy link
Collaborator Author

@Nieuwejaar I'll leave this in draft and wait on the dpd/tfport changes to go in first before updating.

@zeeshanlakhani zeeshanlakhani force-pushed the zl/tfportd-oximeter branch 2 times, most recently from 01f2a0b to 59a6171 Compare November 5, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants