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

feat: improved cloudwatch analytics rollup BM-1092 #3381

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

blacha
Copy link
Member

@blacha blacha commented Dec 13, 2024

Motivation

We currently get 10s of millions of requests per day, which are all logged by cloudwatch into a s3 bucket, these logs are very large when looking over the entire history of basemaps, so we rollup the logs into hourly summaries of the requests.

The current implementation rolls up the logs into coarse buckets these buckets give a good overview of usage but do not allow us to dig into more detailed usage trends such as which datasets are used in what formats.

Modification

Introduces a new analytic lambda to run side by side with the existing lambda until we are comfortable to turn off the old lambda.

The logs are now rolled aggregated on more fields such as

  • tiles
    • zoom level
    • matrix set (and requested matrix set, /3857/ vs /WebMercatorQuad/ )
    • extension, png vs pbf
  • tile set
  • api key and type

@blacha blacha changed the title feat/cloudwatch analytics feat: improved cloudwatch analytics rollup Dec 13, 2024
@blacha blacha changed the title feat: improved cloudwatch analytics rollup feat: improved cloudwatch analytics rollup BM-1092 Dec 16, 2024
@blacha blacha marked this pull request as ready for review December 16, 2024 01:48
@blacha blacha requested a review from a team as a code owner December 16, 2024 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant