Skip to content

[ENH]: add metrics for garbage collection #4173

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

Merged
merged 1 commit into from
Apr 7, 2025
Merged

Conversation

codetheweb
Copy link
Contributor

@codetheweb codetheweb commented Apr 4, 2025

Description of changes

Adds 3 metrics to the garbage collection service as a starting point:

  • total jobs, segmented by success/failure
  • job duration in milliseconds (histogram)
  • total # of files deleted
  • total # of versions deleted

Test plan

How are these changes tested?

Ran garbage collection and validated that the produced values in Granfana looked reasonable.

Documentation Changes

Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?

n/a

Copy link

github-actions bot commented Apr 4, 2025

Reviewer Checklist

Please leverage this checklist to ensure your code review is thorough before approving

Testing, Bugs, Errors, Logs, Documentation

  • Can you think of any use case in which the code does not behave as intended? Have they been tested?
  • Can you think of any inputs or external events that could break the code? Is user input validated and safe? Have they been tested?
  • If appropriate, are there adequate property based tests?
  • If appropriate, are there adequate unit tests?
  • Should any logging, debugging, tracing information be added or removed?
  • Are error messages user-friendly?
  • Have all documentation changes needed been made?
  • Have all non-obvious changes been commented?

System Compatibility

  • Are there any potential impacts on other parts of the system or backward compatibility?
  • Does this change intersect with any items on our roadmap, and if so, is there a plan for fitting them together?

Quality

  • Is this code of a unexpectedly high quality (Readability, Modularity, Intuitiveness)

@codetheweb codetheweb marked this pull request as ready for review April 4, 2025 23:41
@codetheweb codetheweb force-pushed the feat-gc-manual-e2e-test-fixes branch from 628e81f to d3850af Compare April 5, 2025 00:30
@codetheweb codetheweb requested a review from Sicheng-Pan April 7, 2025 16:08
@codetheweb codetheweb force-pushed the feat-gc-manual-e2e-test-fixes branch from d3850af to 8053f73 Compare April 7, 2025 16:34
@codetheweb codetheweb force-pushed the feat-gc-manual-e2e-test-fixes branch 2 times, most recently from 928480d to c1d52de Compare April 7, 2025 17:18
@codetheweb codetheweb changed the base branch from feat-gc-manual-e2e-test-fixes to graphite-base/4173 April 7, 2025 19:26
@codetheweb codetheweb force-pushed the graphite-base/4173 branch from c1d52de to 16a5dbc Compare April 7, 2025 19:26
@graphite-app graphite-app bot changed the base branch from graphite-base/4173 to main April 7, 2025 19:27
@codetheweb codetheweb merged commit eb7ee57 into main Apr 7, 2025
84 checks passed
Copy link
Contributor Author

Merge activity

  • Apr 7, 4:29 PM EDT: A user merged this pull request with Graphite.

@codetheweb codetheweb deleted the feat-gc-metrics branch April 7, 2025 20:30
philipkiely-baseten pushed a commit to philipkiely-baseten/chroma that referenced this pull request Apr 8, 2025
## Description of changes

Adds 3 metrics to the garbage collection service as a starting point:

- total jobs, segmented by success/failure
- job duration in milliseconds (histogram)
- total # of files deleted
- total # of versions deleted

## Test plan
*How are these changes tested?*

Ran garbage collection and validated that the produced values in Granfana looked reasonable.

## Documentation Changes
*Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs repository](https://github.com/chroma-core/docs)?*

n/a
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

Successfully merging this pull request may close these issues.

2 participants