Skip to content

Enable rails metrics handling in our dev docker-compose environment

DJ Mountney requested to merge enable-sidekiq-puma-metrics into master

What does this MR do?

Enables metrics in our local docker-compose environments.

Testing

  1. Check out this branch
  2. Set the image tag in your local .env file to this enable-sidekiq-puma-metrics
  3. Fetch images docker-compose pull
  4. Start application docker-compose up
  5. 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

Merge request reports