Skip to content

Heroku event reference

View Markdown
Events parsed from your Heroku log drain: router request lines and Heroku Postgres metrics. Each entry lists the event's fields with their types, and links to its raw JSON Schema.
2 events emitted by heroku.

postgres

A Heroku Postgres log line from a Heroku log drain. Honeybadger recognizes it by proc_id == 'heroku-postgres'.

FieldTypeDescription
event_typestring
proc_idstringHeroku process identifier. Always 'heroku-postgres' for this event. Allowed value: heroku-postgres.
sourcestringPostgres source identifier, e.g. "HEROKU_POSTGRESQL_CRIMSON".
addonstringAdd-on name.
active_connectionsintegerNumber of active database connections.
waiting_connectionsintegerNumber of connections waiting on a lock.
index_cache_hit_ratenumberIndex cache hit rate (0.0–1.0).
table_cache_hit_ratenumberTable cache hit rate (0.0–1.0).
load_avg_1mnumber1-minute load average.
load_avg_5mnumber5-minute load average.
load_avg_15mnumber15-minute load average.
read_iopsnumberRead I/O operations per second.
write_iopsnumberWrite I/O operations per second.
tmp_disk_usedintegerBytes used on temporary disk.
tmp_disk_availableintegerBytes available on temporary disk.
memory_totalintegerTotal memory in bytes.
memory_freeintegerFree memory in bytes.
memory_cachedintegerCached memory in bytes.
memory_postgresintegerMemory used by Postgres in bytes.
Example
{
"event_type": "logplex",
"proc_id": "heroku-postgres",
"source": "HEROKU_POSTGRESQL_CRIMSON",
"addon": "postgresql-curved-12345",
"active_connections": 12,
"waiting_connections": 0,
"index_cache_hit_rate": 0.99957,
"table_cache_hit_rate": 0.98309,
"load_avg_1m": 0.31,
"load_avg_5m": 0.28,
"load_avg_15m": 0.25,
"read_iops": 12.5,
"write_iops": 35.625,
"tmp_disk_used": 33849344,
"tmp_disk_available": 72944943104,
"memory_total": 8589934592,
"memory_free": 1342177280,
"memory_cached": 5368709120,
"memory_postgres": 1610612736
}

router

A Heroku router log line from a Heroku log drain. Honeybadger recognizes it by proc_id == 'router'.

FieldTypeDescription
event_typestring
proc_idstringHeroku process identifier. Always 'router' for this event. Allowed value: router.
methodstringHTTP method, e.g. "GET", "POST".
pathstringRequest path.
hoststringRequest host header.
fwdstringForwarded client IP address.
dynostringDyno that handled the request, e.g. "web.1".
connectnumberTime in milliseconds to establish the connection.
servicenumberTime in milliseconds the dyno spent processing the request.
statusintegerHTTP response status code.
bytesintegerNumber of bytes returned in the response.
protocolstringProtocol used, e.g. "https".
Example
{
"event_type": "logplex",
"proc_id": "router",
"method": "GET",
"path": "/users/123",
"host": "www.example.com",
"fwd": "203.0.113.42",
"dyno": "web.1",
"connect": 1,
"service": 45,
"status": 200,
"bytes": 15342,
"protocol": "https"
}