This is a project to demo using AWS Timestream with Telegraf to populate the DB with Prometheus metrics data.
Creates the following resources
- VPC
- ECS Cluster (with CloudMap namespace)
- Application Load Balanced Fargate Service - running a simple NodeJS App
- Fargate Service - running custom Telegraf Agent container to scrape prometheus metrics
- AWS Timestream DB
The cdk.json file tells the CDK Toolkit how to execute the app.
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template