Skip to content

I2I: Move CSI collection to GCP Monitoring Metrics #25228

@jridgewell

Description

@jridgewell

Summary

Move AMP's Client Side Instrumentation collection service to Google Cloud's Monitoring service. This service will collect simple metrics like First Contentful Paint (not PII) so we can determine if a release contains a performance regression.

This I2I is intended allow us to discuss both the GCP implementation, and whether or not we should even be using GCP to collect these metrics.

Design document

https://docs.google.com/document/d/1FV_kj3jvmB6IOjRMNqgMR63wNMNYsc9ws5wxhKjuzN4/edit

Motivation

AMP's current CSI collection is through Google's SERP viewer, has a 3 day latency (currently), and the data is restricted to Google employees.

Moving to GCP will allow us to reduce the latency to minutes, and free us from the tight integration with SERP viewer.

Launch tracker

Infrastructure

  • Create /metrics App Engine Endpoint
  • Create new data aggregation/pusher cron service

Runtime

  • Intercept metrics pings, forward to both Viewer and /metrics
  • After we have confidence in the new CSI, disable viewer metrics integration

/cc @ampproject/wg-approvers
/cc @cramforce
/cc @kristoferbaxter

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions