"The load average for the dyno in the last 1, 5 or 15 minutes. This reflects the number of CPU tasks that are in the ready queue (i.e. waiting to be processed). More details about how load averages are calculated can be found here."
If you want to auto-scale based on the average (Dyno) Load then you first have to enable the
heroku labs:enable log-runtime-metrics
Then all that you have 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 . The metrics will become available one minute after adding the logdrain.
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 form you'll see a field labeled "Logplex Drain Token". Add the token there and save it.
Now proceed to create a manager with a name that reflects the Procfile entry (e.g.
worker , etc) that you want to auto-scale, set the
Web.Logplex.Load , configure the rest of the options to your liking and then save and enable the manager.
Once all of that's done, HireFire will be auto-scaling your web dynos.
Note: Web.Logplex.Load works with both web- and worker-type dynos!
This strategy allows you to stream your application/platform logs to HireFire's logdrain. The logdrain parses metric data out of the received logs to build a temporary data stream of metrics that HireFire's primary system can utilize to auto-scale your dyno formation.
Logs are consumed, parsed and stored in the logdrain within roughly a second after Heroku emits them, providing HireFire with metrics accurate to the second when it requests them during the minutely manager checkups.
HireFire does not extract any information from your logs other than what is necessary for auto-scaling, which are the metrics emitted by Heroku's Router (service, connect), Application (queue), Runtime Metrics (load1m, load5m, load15m).