全球网页性能监控:基于 AWS Serverless 的 SaaS 方案

这款自助式云原生监控解决方案,可以追踪全球各地网页和 API 接口的加载速度。

准备工作

* AWS 账户(凭证存储在 ~/.aws/credentials)

* Node.js 版本 10 以上

* Yarn 或 npm

安装

yarn # 或 npm install

使用

  • yarn deploy:all:编译并部署所有组件(Lambda 函数、CDK 堆栈、前端应用)到 AWS 云
  • yarn build:frontend:仅构建前端应用
  • yarn build:cdk:将 CDK 代码从 TypeScript 编译为 JavaScript

您还可以通过以下环境变量自定义部署:

  • REGION:部署仪表板和项目列表的 AWS 区域
  • COLLECTOR_REGIONS:部署数据收集器的 AWS 区域
  • CRON_PATTERNS:数据收集频率(默认为每 5 分钟一次)

项目贡献

欢迎提交代码和文档!

作者

zip
serverless-web-performance-monitor-master.zip 预估大小:56个文件
folder
serverless-web-performance-monitor-master 文件夹
folder
bin 文件夹
folder
collector 文件夹
file
collector.ts 2KB
folder
src 文件夹
file
package.json 517B
file
.gitignore 9B
file
yarn.lock 32KB
folder
utils 文件夹
file
uuid.ts 136B
file
lambdaResponse.ts 178B
file
index.ts 3KB
folder
frontend 文件夹
file
frontend.ts 1KB
folder
api 文件夹
folder
projectsService 文件夹
file
package.json 313B
file
.gitignore 12B
file
yarn.lock 5KB
folder
utils 文件夹
file
uuid.ts 136B
file
lambdaResponse.ts 235B
file
index.ts 1KB
file
api.ts 3KB
folder
metricsService 文件夹
file
package.json 313B
file
.gitignore 12B
file
yarn.lock 5KB
folder
utils 文件夹
file
uuid.ts 136B
file
lambdaResponse.ts 235B
file
index.ts 1KB
file
aws-web-performance-monitor.ts 2KB
folder
types 文件夹
file
MetricsDatapoint.ts 216B
file
Project.ts 388B
folder
frontend 文件夹
file
package.json 1KB
folder
src 文件夹
file
react-app-env.d.ts 40B
folder
consts 文件夹
file
timeRanges.ts 433B
file
index.tsx 146B
folder
components 文件夹
folder
Charts 文件夹
file
HealthChart.tsx 453B
file
ResponseTimeDistribution.tsx 732B
file
TotalResponseTimeChart.tsx 807B
file
BreakdownChart.tsx 878B
file
TimeRangePicker.tsx 712B
file
Project.tsx 1KB
file
ProjectDetails.tsx 3KB
file
Footer.tsx 528B
file
App.tsx 1KB
folder
types 文件夹
file
Region.ts 156B
folder
utils 文件夹
file
everyNth.tsx 87B
file
tsconfig.json 491B
file
.gitignore 310B
folder
public 文件夹
file
logo192.png 8KB
file
manifest.json 492B
file
robots.txt 57B
file
index.html 817B
file
logo512.png 22KB
file
favicon.ico 22KB
file
README.md 2KB
file
yarn.lock 458KB
file
package.json 1KB
folder
assets 文件夹
file
infra.png 949KB
file
tsconfig.json 626B
file
cdk.json 57B
file
.gitignore 124B
file
README.md 2KB
file
yarn.lock 87KB
...
zip 文件大小:1.15MB