Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the puma environment as a dimension #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

afrase
Copy link

@afrase afrase commented Dec 19, 2023

Currently there is only a singular customizable dimension added to the metrics. The readme suggests changing the value to your app name like App:demo-web-puma but if you have a staging and production environment in the same region you can't tell the metrics apart.

This PR adds a environment dimension set to puma's environment or whatever PUMA_CLOUDWATCH_ENVIRONMENT is set to if you want to override it. I also fixed the fetcher and sender specs so they pass on a fresh setup.

* Added an extra dimension for the name of the environment puma is currently configured for. Made this overridable with an environment variable.
* Fixed fetcher spec to use the expected unix socket.
* Updated and fixed sender spec metric data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant