Skip to content

Metrics for SSA cache #10527

Open
Open
@sbueringer

Description

A while ago we implemented a ssa.Cache to cache SSA calls. I think it would be great if we have corresponding metrics (e.g. cache hit/miss) so we can observe how well the cache is working.

We should at least have labels for:

  • the object of the SSA call (probably just kind)
  • the controller in which the cache is used (MD / MS / cluster topology / ...)

I think we'll have to extend the cache a bit to have the data for the labels.

Also let's take a look at how cache metrics usually look like in the Prometheus format and try to be consistent with that.

Metadata

Assignees

Labels

help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.priority/backlogHigher priority than priority/awaiting-more-evidence.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions