Skip to content
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

Expose upload metrics through aggregator API #2537

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

inahga
Copy link
Contributor

@inahga inahga commented Jan 23, 2024

Stacked on #2508.

I exposed these metrics through tasks/{task_id}/metrics/uploads, rather than directly superseding or extending the existing /metrics endpoint.

This is mostly for ease of backporting and compatibility with divviup-api. I also wanted to avoid coupling the queries that underly /metrics together, since currently it times out for large tasks. I also generally think multiple smaller APIs are better than a larger kitchen-sink one, since downstream can compose them any way it likes.

@inahga inahga requested a review from a team as a code owner January 23, 2024 21:13
Base automatically changed from inahga/metrics to main January 24, 2024 21:24
@inahga inahga force-pushed the inahga/metrics-api branch from ad7612f to 65bb165 Compare January 26, 2024 16:24
@inahga inahga enabled auto-merge (squash) January 26, 2024 16:25
@inahga inahga merged commit 009fb7a into main Jan 26, 2024
8 checks passed
@inahga inahga deleted the inahga/metrics-api branch January 26, 2024 16:59
inahga added a commit that referenced this pull request Feb 5, 2024
* Add per-task report upload metrics (#2508)

* Add per task report upload metrics.

* Change default to 32, add documentation on option

* Fix test

* Build query instead of brute forcing each possible one

* Don't wait on bad reports

* Use Runtime and RuntimeManager instead of sleeping in tests

* Clippy

* Cargo doc

* Don't use macro needlessly

Co-authored-by: Brandon Pitman <[email protected]>

---------

Co-authored-by: Brandon Pitman <[email protected]>

* Expose upload metrics through aggregator API (#2537)

* 0.6 specific fixes

Don't change existing schema

* Update schema version

---------

Co-authored-by: Brandon Pitman <[email protected]>
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.

3 participants