Send data with a custom hostname

Sometimes you may need to send data with a custom hostname. Some possible reasons are:

You can easily achieve with this when connecting to Monti APM. See below:

Monti.connect(<appId>, <appSecret>, {hostname: "my-host"})

If you configure Monti APM via Meteor Settings, you can add the above option like this:

{
  "monti": {
    "appId": "<appId>", 
    "appSecret": "<appSecret>",
    "options": {
      "hostname": "my-host"
    }
  }
}

If you configure Monti APM via environment variables, export the following environment variable:

export MONTI_OPTIONS_HOSTNAME=my-host

This content originally appeared in the Kadira Knowledge Base.