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

Merged
merged 16 commits into from
Jan 15, 2025

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
tawera-manaena
tawera-manaena previously approved these changes Jan 13, 2025
@tawera-manaena tawera-manaena added this pull request to the merge queue Jan 13, 2025
@tawera-manaena tawera-manaena removed this pull request from the merge queue due to a manual request Jan 13, 2025
@blacha blacha added this pull request to the merge queue Jan 15, 2025
Merged via the queue into master with commit de2f295 Jan 15, 2025
12 checks passed
@blacha blacha deleted the feat/cloudwatch-analytics branch January 15, 2025 21:35
@blacha blacha mentioned this pull request Jan 26, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 26, 2025
# [7.14.0](v7.13.0...v7.14.0)
(2025-01-26)


### Bug Fixes

* **infra:** correct dist path location
([#3390](#3390))
([46f8fb8](46f8fb8))
* revert "build: maplibre v5.0.0
([#3387](#3387))"
([#3394](#3394))
([d441be2](d441be2))
* **tiler-sharp:** when resampling uint round numbers rather than
truncate ([#3392](#3392))
([d02e56f](d02e56f))


### Features

* **cogify:** add background color support for overriding transparent
pixels BM-1146 ([#3379](#3379))
([b8bedc3](b8bedc3))
* improved cloudwatch analytics rollup BM-1092
([#3381](#3381))
([de2f295](de2f295))
* **tiler-sharp:** support uint32 and uint8 source datasets for
color-ramp ([#3391](#3391))
([f316042](f316042))
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.

3 participants