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

Expose Top Level location. #189

Closed
steve-nscale opened this issue Jul 19, 2024 · 1 comment
Closed

Expose Top Level location. #189

steve-nscale opened this issue Jul 19, 2024 · 1 comment
Labels

Comments

@steve-nscale
Copy link
Contributor

Hi all, Firstly GREAT project :D

With netbox having the ability to build hierarchies of Locations, and then racks living in a location.

Eg

Site Location Location Rack
DataCenter 1 Data Suite 1 Row - A Rack 1

Currently the prom_sd exporter returns the rack and the location on the next level up, so using the above example, you can get the rack and the racks first level parent and the site.

What you cant get is the top level parent of the rack.

i have had a look in the code, but I am unable to work out the best way to get that data, I think we are going to have to make another call to pull in the parent of the first level parent.

Any suggestions on how this might be implemented, im happy to take a stab at it, but im struggling to work out the best way forward.

Copy link

This issue has been automatically closed because it has been inactive for more than 60 days.
Please reopen if you still intend to submit this pull request.

@github-actions github-actions bot added the Stale label Sep 18, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant