Commands | Descriptions |
---|---|
datadog-agent check | Run the specified check |
datadog-agent completion | Generate the autocompletion script for the specified shell |
datadog-agent config | Print the runtime configuration of a running agent |
datadog-agent configcheck | Print all configurations loaded & resolved of a running agent |
datadog-agent diagnose | Check availability of cloud provider and container metadata endpoints |
datadog-agent dogstatsd-capture | Start a dogstatsd UDS traffic capture |
datadog-agent dogstatsd-replay | Replay dogstatsd traffic |
datadog-agent dogstatsd-stats | Print basic statistics on the metrics processed by dogstatsd |
datadog-agent flare | Collect a flare and send it to Datadog |
datadog-agent health | Print the current agent health |
datadog-agent help | Help about any command |
datadog-agent hostname | Print the hostname used by the Agent |
datadog-agent import | Import and convert configuration files from previous versions of the Agent |
datadog-agent integration | Datadog integration manager |
datadog-agent jmx | Run troubleshooting commands on JMXFetch integrations |
datadog-agent launch-gui | starts the Datadog Agent GUI |
datadog-agent run | Run the Agent |
datadog-agent secret | Print information about decrypted secrets in configuration. |
datadog-agent secret-helper | Secret management provider helper |
datadog-agent snmp | Snmp tools |
datadog-agent status | Print the current status |
datadog-agent stop | Stops a running Agent |
datadog-agent stream-logs | Stream the logs being processed by a running agent |
datadog-agent tagger-list | Print the tagger content of a running agent |
datadog-agent version | Print the version info |
workload-list | Print the workload content of a running agent |
datadog-agent check
A Datadog Agent check is a plugin that collects data from a specific source and sends it to the Datadog Agent. These checks can be customized and configured to monitor various metrics and events related to your infrastructure and applications.
$ datadog-agent configcheck | |
=== cpu check === | |
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 check cpu | |
=== Series === | |
[ | |
{ | |
"metric": "system.cpu.num_cores", | |
"points": [ | |
[ | |
1681724675, | |
1 | |
] | |
], | |
"tags": [], | |
"host": "i-0c414ca76740ae218", | |
"type": "gauge", | |
"interval": 0, | |
"source_type_name": "System" | |
} | |
] | |
========= | |
Collector | |
========= | |
Running Checks | |
============== | |
cpu | |
--- | |
Instance ID: cpu [OK] | |
Configuration Source: file:/etc/datadog-agent/conf.d/cpu.d/conf.yaml.default | |
Total Runs: 1 | |
Metric Samples: Last Run: 2, Total: 2 | |
Events: Last Run: 0, Total: 0 | |
Service Checks: Last Run: 0, Total: 0 | |
Average Execution Time : 0s | |
Last Execution Date : 2023-04-17 09:44:35 UTC (1681724675000) | |
Last Successful Execution Date : 2023-04-17 09:44:35 UTC (1681724675000) |
datadog-agent completion
The datadog-agent completion
command is used to generate shell completion scripts for the Datadog Agent command-line interface (CLI).
Shell completion allows you to save time and avoid typing errors by automatically completing command options, flags, and arguments as you type. When you run the datadog-agent completion
command, it will output the completion script in the shell format that you specify as an argument, such as Bash, Zsh, or Fish.
Here are some use cases for the datadog-agent completion
command:
- Completing commands and options: When you are working with the Datadog Agent CLI, you may find it time-consuming to type out all of the command options and flags. By using shell completion, you can quickly complete the options and flags as you type, saving time and reducing errors.
- Improving productivity: Shell completion can help you be more productive by completing commands and options quickly and accurately. You don’t have to remember all of the available options and flags, which can be especially helpful when you are using the CLI infrequently.
- Learning the Datadog Agent CLI: If you are new to the Datadog Agent CLI, using shell completion can help you learn the available options and flags more quickly. As you type, you can see the available options and flags, which can help you understand the capabilities of the CLI.
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND