Debug School

MathanKumaran
MathanKumaran

Posted on

DataDog Commands by MathanKumaran

DD_API_KEY= DD_SITE="datadoghq.com" bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_agent7.sh)"

    To install the agent in Linix
Enter fullscreen mode Exit fullscreen mode

systemctl start datadog-agent

    To start the datadog agent
Enter fullscreen mode Exit fullscreen mode

systemctl restart datadog-agent

    To restart the datadog agent
Enter fullscreen mode Exit fullscreen mode

systemctl stop datadog-agent

    To restart the datadog agent
Enter fullscreen mode Exit fullscreen mode

systemctl status datadog-agent

    To check the status for the agent whether its running or not
Enter fullscreen mode Exit fullscreen mode

datadog-agent configcheck

    To get the list of config item check information
Enter fullscreen mode Exit fullscreen mode

Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/cpu.d/conf.yaml.default
Instance ID: cpu:e331d61ed1323219
{}

~

=== disk check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/disk.d/conf.yaml.default
Instance ID: disk:67cc0574430a16ba
use_mount: false

~

=== file_handle check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/file_handle.d/conf.yaml.default
Instance ID: file_handle:381b8b6ca58d37b0
{}

~

=== io check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/io.d/conf.yaml.default
Instance ID: io:541b60d158de04a7
{}

~

=== load check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/load.d/conf.yaml.default
Instance ID: load:bf7cea93fb3aa780
{}

~

=== memory check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/memory.d/conf.yaml.default
Instance ID: memory:3f1f6288b95b9979
{}

~

=== network check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/network.d/conf.yaml.default
Instance ID: network:4b0649b7e11f0772
{}

~

=== ntp check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/ntp.d/conf.yaml.default
Instance ID: ntp:3c427a42a70bbf8
{}

~

=== uptime check ===
Configuration provider: file
Configuration source: file:/etc/datadog-agent/conf.d/uptime.d/conf.yaml.default
Instance ID: uptime:c72f390abdefdf1a
{}
~

datadog-agent config

  To get the configuration details.
Enter fullscreen mode Exit fullscreen mode

datadog-agent health

  To check healthcheck of the component
Enter fullscreen mode Exit fullscreen mode

Agent health: PASS
=== 16 healthy components ===
ad-servicelistening, aggregator, collector-queue-15s, collector-queue-900s, dogstatsd-main, forwarder, healthcheck, healthcheck, metadata-agent_checks, metadata-host, metadata-inventories, metadata-resources, tagger-store, tagger-workloadmeta, workloadmeta-puller, workloadmeta-store

datadog-agent hostname

    To get the hostname where the agent is running
Enter fullscreen mode Exit fullscreen mode

datadog-agent version

    To get the version of the agent running
Enter fullscreen mode Exit fullscreen mode

Top comments (0)