Logplex - Requests Per Minute

"Requests Per Minute (RPM) is the number of requests that the Heroku Router has proxied to your web dynos, measured in one-minute intervals."


If you want to autoscale based on RPM using the Logplex - Requests Per Minute strategy, then all you need to do is create a logdrain and point it at our secure endpoint:

heroku drains:add https://logdrain.hirefire.io

Once created, take note of the drain token:

heroku drains | grep hirefire

The format of the token is d.00000000-0000-0000-0000-000000000000 .

Once the logdrain has been created and you've taken note of the drain token, log in to HireFire and add your Heroku application if you haven't already. In the application settings, you'll see a field labeled "Logplex Drain Token". Add the token there and save it.

Now proceed to create a Dyno Manager (Autoscaler), using web as its name, set the strategy to Logplex - Requests Per Minute , configure the rest of the autoscaling rules to your liking, save and then enable the manager.

Once all that's done, HireFire will autoscale your web dynos based on your application's RPM.


Optional Log Filtering

The Logplex strategy requires configuring a log drain from your application to HireFire. HireFire ingests and processes these logs to extract metrics such as service time, connect time, queue time, load, and requests per minute. While we have implemented appropriate security measures and do not retain any sensitive information beyond the necessary metric data, we understand the desire to minimize the volume of log data sent to HireFire. To accommodate this, we offer a Docker image that you can deploy as an application within your Heroku account. This application is designed to ingest logs and forward only the relevant lines, effectively filtering out the majority of the content. Using this filtering service is optional.

For those interested, please visit https://github.com/hirefire/logdrain.proxy for additional details.

Still need help? Contact Us Contact Us