Logplex - Connect Time

"Connect Time is the amount of time spent establishing a connection from the Heroku Router to the web dyno."

To autoscale based on the Logplex - Connect Time strategy, you need to create a logdrain and direct it to our secure endpoint:

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

After it's set up, take note of the drain token:

heroku drains | grep hirefire

The token's 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 - Connect 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 connect 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