Skip to content

Add Prometheus metrics about cache #13349

@tobikris

Description

@tobikris

NetBox version

v3.5.7

Feature type

Change to existing functionality

Proposed functionality

Currently the prometheus metrics do not include metrics about the cache. The documentation suggests otherwise

- Cache hit, miss, and invalidation counters

I could imagine that the change of the cache backend removed this as a side-effect.
As those metrics are pretty useful, I propose to add them back.

Use case

Without the metrics it is pretty hard to determine the effectiveness of the caching. I would like to see if the cache is working as expected or if the general performance is worse than it should be.

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureIntroduction of new functionality to the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions