Before getting started, ensure you have:
- OpenTelemetry configured with the necessary credentials to write to AWS CloudWatch
- Generated Confluent Cloud API key and secret
- Completed the configuration in
otel-collector-config.yaml
Choose one of the following deployment methods based on your infrastructure setup:
Ideal for environments with access to Docker Compose and greater control over configuration (i.e. AWS EC2):
docker-compose up -d
This is useful for an environment where there isn't much control of the Docker configuration. (i.e. AWS ECS, Kubernetes)
- Build the image
bash build-docker-image.sh
- Upload the image to your preferred repository (e.g., AWS ECR, Docker Hub)
- Pull and deploy the image in your container environment
To set up the monitoring dashboard:
- Locate the JSON file in this repository: dashboard/confluent-kafka.json
- If you modified the exporters.awsemf.namespace in otel-collector-config.yaml, update all instances of it in the JSON file
- Replace all occurrences of lkc-7d51wo with your specific cluster ID in the JSON file
- Import the JSON into your AWS CloudWatch dashboard
- This dashboard only shows Conflent Cloud clusters. Other comopnents such as Connectors, Ksql, Flink and Schema Registry are not supported yet.