This is a Heroku buildpack to add datadog/prerunscript.sh
in your dyno, and it will add extra tags in the agent.
al_service
al_proc_type
al_proc_subtype
This is obvious and same among the dynos/pods.
$AL_SERVICE
$DD_AL_SERVICE
"unknown"
web
and worker
, depends on each dyno/pod.
$AL_PROC_TYPE
$DD_AL_PROCMAP[$DYNO_TYPE][0]
$DD_AL_PROC_TYPE
$DYNO_TYPE
"unknown"
The name of program that runs on each dyno/pod.
$AL_PROC_SUBTYPE
$DD_AL_PROCMAP[$DYNO_TYPE][1]
$DD_AL_PROC_SUBTYPE
"unknown"
$DD_AL_PROCMAP
is JSON of { key: [val0, val1], …}
key
should be the dyno type.val0
will be used asal_proc_type
val1
will be used asal_proc_subtype
Note: Buildpack is order-sensitive, but this buildpack does not care where it stands because the important execution timing is when /app/.profile.d/datadog.sh
runs, in other words: the boot time.