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

Extend configurability of model count metrics #44

Open
Kircheneer opened this issue Dec 16, 2022 · 2 comments
Open

Extend configurability of model count metrics #44

Kircheneer opened this issue Dec 16, 2022 · 2 comments

Comments

@Kircheneer
Copy link
Contributor

Kircheneer commented Dec 16, 2022

Environment

  • Nautobot version: 1.5.4
  • nautobot-capacity-metrics version: 2.0.0

Proposed Functionality

Make it possible to "subscribe" to additional labels for model counts, such as the region name for devices, by config.

Use Case

Allow for more flexibility.

Possible implementation

Extend configuration to include a list of labels to be added like

["site.region.name", "name"]

to include as labels on the relevant model count metric.

@Kircheneer
Copy link
Contributor Author

We may be able to auto-derive this by model introspection, traversing the relationships and describing the related objects by their natural key (Nautobot 2.0, see here)

@Kircheneer
Copy link
Contributor Author

Solved by #47. The introspection aspect is quite complicated, especially once you get into traversing multiple relationships, so I would like to avoid it at least for now,

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

No branches or pull requests

1 participant