Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Add metrics for cache instance count #5631

Merged
merged 6 commits into from
Sep 13, 2021

Conversation

unneon
Copy link
Contributor

@unneon unneon commented Sep 13, 2021

Goals (and why): Start tracking the count of existing caches in metrics, to help diagnosing memory leaks such as PDS-185998 and (currently) PDS-209612.

Implementation Description (bullets):

  • Simple gauge which tracks the map size.

Testing (What was existing testing like? What have you done to improve it?): Metrics are contained in a CacheMetrics class, which is usually mocked and receives some simple testing. I added a minimal assertion to one of the existing tests.

Concerns (what feedback would you like?): A single CacheMetrics instance seems to be exclusive to a single CacheStoreImpl instance, but metric names are strings registered in MetricsManager - is it certain individual gauges will be tagged appropriately?

Where should we start reviewing?: Wherever.

Priority (whenever / two weeks / yesterday): Two weeks.

@changelog-app
Copy link

changelog-app bot commented Sep 13, 2021

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Add metrics for cache instance count

Check the box to generate changelog(s)

  • Generate changelog entry

@bulldozer-bot bulldozer-bot bot merged commit b9fd1c9 into develop Sep 13, 2021
@bulldozer-bot bulldozer-bot bot deleted the mcegielka/cacheinstancecount branch September 13, 2021 14:36
@svc-autorelease
Copy link
Collaborator

Released 0.414.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants