Create or edit destination with file - anodot/daria GitHub Wiki

File config

Property Type Description
type String Specify destination type. Supported values - http
host_id String Unique identifier for the agent installation
access_key String Anodot access key. Please follow the instructions to get it
config Object Destination configuration

config object properties:

Property Type Required Description
url String Yes URL of an Anodot application where all data will be transferred
token String Yes Anodot data collection token. Open your Anodot account, go to Settings > API tokens > Data Collection > Copy
conf.client.useProxy bool No If use proxy for connection to Anodot
conf.client.proxy.uri String No Proxy URL
conf.client.proxy.username String No Proxy Username
conf.client.proxy.password String No Proxy Password
conf.maxRequestCompletionSecs int No maxRequestCompletionSecs (default 300)
conf.maxSendResponseWait int No maxSendResponseWait (milliseconds, defailt 300000)

Example

{
  "config": {
    "conf.client.useProxy": true,
    "conf.client.proxy.uri": "http://squid:3128",
    "conf.client.proxy.username": "",
    "conf.client.proxy.password": "",
    "conf.maxRequestCompletionSecs": 500,
    "url": "http://dummy_destination",
    "token": "correct_token"
  },
  "type": "http",
  "host_id": "ABCDEF",
  "access_key": "correct_key"
}

Create or edit if destination exists

agent destination -f path/to/destination.json

Export existing destination config

agent destination-export