Skip to content

Instantly share code, notes, and snippets.

@ncracker
Created August 7, 2019 17:10
Show Gist options
  • Save ncracker/560923313af8cdfaaaf75dcb0ee68ba0 to your computer and use it in GitHub Desktop.
Save ncracker/560923313af8cdfaaaf75dcb0ee68ba0 to your computer and use it in GitHub Desktop.
#!/bin/bash
yum update
yum install vim bind-utils -y
#install agent here
DD_API_KEY=<YOUR_API_KEY_HERE> bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)"
sudo -u dd-agent cp /etc/datadog-agent/system-probe.yaml.example /etc/datadog-agent/system-probe.yaml
cat <<EOF > /etc/datadog-agent/system-probe.yaml
##################################
## System Probe Configuration ##
##################################
## @param system_probe_config - custom object - optional
## Beta Agent
## Enter specific configurations for your System Probe data collection.
## Uncomment this parameter and the one below to enable them.
#
system_probe_config:
## @param enabled - boolean - optional - default: false
## Set to true to enable the System Probe.
#
enabled: true
## @param sysprobe_socket - string - optional - default: /opt/datadog-agent/run/sysprobe.sock
## The full path to the location of the unix socket where system probes are accessed.
#
# sysprobe_socket: /opt/datadog-agent/run/sysprobe.sock
## @param log_file - string - optional - default: /var/log/datadog/system-probe.log
## The full path to the file where system-probe logs are written.
#
log_file: /var/log/datadog/system-probe.log
EOF
sudo service datadog-agent-sysprobe start
sudo service datadog-agent restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment