Skip to content

N+1 Query in Plugin #112

@relwell

Description

@relwell

Environment

  • Python version: 3.11
  • Nautobot version: 2.4.6
  • nautobot-capacity-metrics version: 3.1.1
  • netobs version: 0.102.0

Expected Behavior

Prometheus queries are performant and minimize load on the database

Observed Behavior

N+1 errors are observed using a performance and error reporting tool like Sentry

Steps to Reproduce

So long as Prometheus scrapes the capacity metrics endpoint, N+1 queries will be reported by Sentry. Here are some examples:

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions