Logplex - Response Time

"Response Time (Service) is the amount of time spent proxying data between the web dyno and the client."


If you wish to autoscale based on the Logplex - Response Time strategy, you simply need to create a logdrain and point it to our secure endpoint:

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

After creation, make a note of the drain token:

heroku drains | grep hirefire

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

Once the logdrain is set up and you've taken note of the drain token, log into HireFire and add your Heroku application if it's not already added. In the application settings, there's a field labeled "Logplex Drain Token". Enter the token here and save.

Next, create a Dyno Manager (Autoscaler) with web as its name, set the strategy to Logplex - Response Time , configure the remaining autoscaling rules as desired, and then save and enable the manager.

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


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