The monitoring interceptor was using Rails.env to determine the environment it is reporting for to Statsd.
In deployed environments like Kubernetes, where we use Rails.env production for dev/beta/production, but use ENV[DEPLOYMENT_TYPE] to define the final environment, the monitoring interceptor needs to be configurable in regards of the env it uses for reporting.
The monitoring interceptor was using
Rails.env
to determine the environment it is reporting for to Statsd.In deployed environments like Kubernetes, where we use Rails.env production for dev/beta/production, but use ENV[
DEPLOYMENT_TYPE
] to define the final environment, the monitoring interceptor needs to be configurable in regards of theenv
it uses for reporting.