Sysdig Documentation

Table 1: Environment Variables for Agent Config File

Name

Value

Description

ACCESS_KEY

<your Sysdig access key>

Required

TAGS

<meaningful tags you want applied to your instances>

Optional. These are displayed in Sysdig Monitor for ease of use.

COLLECTOR

<collector-hostname.com> or 111.222.333.400

On-prem only. Enter the host name or IP address of the Sysdig collector service. Note that when used within dragent.yaml, must be lowercase collector.

COLLECTOR_PORT

6443

On-prem only. The port used by the Sysdig collector service; default 6443.

SECURE

"true"

On-prem only. If using SSL/TLS to connect to collector service value = "true" otherwise "false."

CHECK_CERTIFICATE

"false"

On-prem only. Set to "true" when using SSL/TLS to connect to the collector service and should check for valid SSL/TLS certificate.

ADDITIONAL_CONF

Optional. A place to provide custom configuration values to the agent as environment variables .

SYSDIG_PROBE_URL

Optional. An alternative URL to download precompiled kernel module.

Sample Docker Command Using Variables

docker run --name sysdig-agent --privileged --net host --pid host -e ACCESS_KEY=3e762f9a-3936-4c60-9cf4-c67e7ce5793b -e COLLECTOR=mycollector.elb.us-west-1.amazonaws.com -e COLLECTOR_PORT=6443 -e CHECK_CERTIFICATE=false -e TAGS=my_tag:some_value -e ADDITIONAL_CONF="log:\n file_priority: debug\n console_priority: error"
-v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro -v /boot:/host/boot:ro -v /lib/modules:/host/lib/modules:ro -v /usr:/host/usr:ro --shm-size=350m sysdig/agent