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 build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template