Enable rails metrics handling in our dev docker-compose environment
What does this MR do?
Enables metrics in our local docker-compose environments.
Testing
- Check out this branch
- Set the image tag in your local
.env
file to thisenable-sidekiq-puma-metrics
- Fetch images
docker-compose pull
- Start application
docker-compose up
- Verify that metrics endpoints work in the sidekiq and webservice containers
Exec into the containers and curl against the endpoints
webservice
docker-compose exec webservice bash
# Confirm metrics is working
curl localhost:8082/metrics
# Double check healthchecks still avail
curl localhost:8080/-/liveness
sidekiq
docker-compose exec sidekiq bash
# Confirm metrics is working
curl localhost:8082/metrics
# Check that separate healthchecks service is available
curl localhost:8092/liveness
Related issues
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion
Required
-
Merge Request Title, and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Integration tests added to GitLab QA -
The impact any change in container size has should be evaluated
Edited by Mitchell Nielsen