POC - from Cloudwatch to GitLab prometheus
Problem to solve
As a developer / devops engineer, in order to monitor my deployments, I'd like to see my AWS Lambda request numbers and error rates under GitLab.
Intended users
Definition of Done
Delivery specifications:
- 1 Lambda function that echos output
- 1 Lambda function that throws an error
- A GitLab Prometheus instance pointing at the Cloudwatch data for the Lambda function
- An EC2 instance running https://github.com/prometheus/cloudwatch_exporter to export the CloudWatch data
- A README documenting the setup process for the above
- Presentation of findings at team meeting
Recommended Reading
- https://docs.gitlab.com/ee/user/project/integrations/prometheus.html#prometheus-integration
- https://github.com/prometheus/cloudwatch_exporter
Questions
As it's a POC, please explore the following questions:
- where could a GitLab.com managed project run the cloudwatch exporter? what do we want to develop support for?
- where could an on-prem GitLab project run the cloudwatch exporter? what do we want to develop support for?
- what should be the steps next development steps?
- what settings, configurations are needed to get the Number of requests and Number of errors shown under GitLab?
Edited by Nick Klick