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

proxy: upload consumption events to S3 #7213

Merged
merged 13 commits into from Apr 2, 2024
Merged

Conversation

khanova
Copy link
Contributor

@khanova khanova commented Mar 22, 2024

Problem

If vector is unavailable, we are missing consumption events.

https://github.com/neondatabase/cloud/issues/9826

Summary of changes

Added integration with the consumption bucket.

Works in xenon preview, example of events: https://s3.console.aws.amazon.com/s3/buckets/neon-dev-consumption-events-proxy?region=us-east-2&bucketType=general&tab=objects

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

Copy link

github-actions bot commented Mar 22, 2024

2742 tests run: 2605 passed, 0 failed, 137 skipped (full report)


Code coverage* (full report)

  • functions: 28.2% (6348 of 22518 functions)
  • lines: 47.0% (44603 of 94833 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
12a99a6 at 2024-03-28T17:30:44.471Z :recycle:

@khanova khanova marked this pull request as ready for review March 22, 2024 20:34
@khanova khanova requested a review from a team as a code owner March 22, 2024 20:34
proxy/src/bin/proxy.rs Outdated Show resolved Hide resolved
proxy/src/config.rs Outdated Show resolved Hide resolved
proxy/src/usage_metrics.rs Show resolved Hide resolved
proxy/src/usage_metrics.rs Outdated Show resolved Hide resolved
@khanova khanova merged commit 582cec5 into main Apr 2, 2024
53 checks passed
@khanova khanova deleted the proxy-consumption-to-s3 branch April 2, 2024 19:46
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.

None yet

2 participants