DataDog install agent linux Ubuntu
caso 1
DD_API_KEY=b36c0ed623627b9947488e9e6528a4b9 bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)"
caso 2
DD_UPGRADE=true bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)"
En terminalbext@bext-G3-3779:~$ DD_API_KEY=b36c0ed623627b9947488e9e6528a4b9 bash -c "$(curl -L https://raw.githubusercontent.com/DataDog/datadog-agent/master/cmd/agent/install_script.sh)" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 11615 100 11615 0 0 29782 0 --:--:-- --:--:-- --:--:-- 29782 * Installing apt-transport-https [sudo] password for bext: Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Hit:2 http://mx.archive.ubuntu.com/ubuntu bionic InRelease Hit:3 https://download.docker.com/linux/ubuntu bionic InRelease Get:4 http://mx.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:5 http://mx.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:6 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [502 kB] Get:7 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [368 kB] Get:8 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [580 kB] Get:9 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [170 kB] Get:10 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [22.7 kB] Get:11 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 48x48 Icons [10.4 kB] Get:12 http://security.ubuntu.com/ubuntu bionic-security/main DEP-11 64x64 Icons [31.7 kB] Get:13 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [6 600 B] Get:14 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2 840 B] Get:15 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [604 kB] Get:16 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [590 kB] Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [201 kB] Get:18 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [42.1 kB] Get:19 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 48x48 Icons [16.4 kB] Get:20 http://security.ubuntu.com/ubuntu bionic-security/universe DEP-11 64x64 Icons [116 kB] Get:21 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2 464 B] Get:22 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [728 kB] Get:23 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [263 kB] Get:24 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [285 kB] Get:25 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [70.9 kB] Get:26 http://mx.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [140 kB] Get:27 http://mx.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [13.6 kB] Get:28 http://mx.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [4 540 B] Get:29 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1 003 kB] Get:30 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [979 kB] Get:31 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [308 kB] Get:32 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [253 kB] Get:33 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [209 kB] Get:34 http://mx.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [452 kB] Get:35 http://mx.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2 468 B] Get:36 http://mx.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [7 920 B] Fetched 8 239 kB in 38s (215 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... apt-transport-https is already the newest version (1.6.11). The following package was automatically installed and is no longer required: libllvm7 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded. Reading package lists... Building dependency tree... Reading state information... dirmngr is already the newest version (2.2.4-1ubuntu1.2). The following package was automatically installed and is no longer required: libllvm7 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded. * Installing APT package sources for Datadog Warning: apt-key output should not be parsed (stdout is not a terminal) Executing: /tmp/apt-key-gpghome.9aPb0KAYaK/gpg.1.sh --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 A2923DFF56EDA6E76E55E492D3A80E30382E94DE gpg: key D3A80E30382E94DE: public key "Datadog, Inc <package@datadoghq.com>" imported gpg: Total number processed: 1 gpg: imported: 1 * Installing the Datadog Agent package Ign:1 https://apt.datadoghq.com stable InRelease Get:2 https://apt.datadoghq.com stable Release [4 525 B] Get:3 https://apt.datadoghq.com stable Release.gpg [819 B] Get:4 https://apt.datadoghq.com stable/6 amd64 Packages [8 089 B] Fetched 13.4 kB in 1s (13.1 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following package was automatically installed and is no longer required: libllvm7 Use 'sudo apt autoremove' to remove it. The following NEW packages will be installed: datadog-agent 0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded. Need to get 141 MB of archives. After this operation, 472 MB of additional disk space will be used. Get:1 https://apt.datadoghq.com stable/6 amd64 datadog-agent amd64 1:6.13.0-1 [141 MB] Fetched 141 MB in 2min 29s (947 kB/s) Selecting previously unselected package datadog-agent. (Reading database ... 162478 files and directories currently installed.) Preparing to unpack .../datadog-agent_1%3a6.13.0-1_amd64.deb ... Unpacking datadog-agent (1:6.13.0-1) ... Setting up datadog-agent (1:6.13.0-1) ... Creating dd-agent group Creating dd-agent user Enabling service datadog-agent Created symlink /etc/systemd/system/multi-user.target.wants/datadog-agent.service → /lib/systemd/system/datadog-agent.service. Created symlink /etc/systemd/system/multi-user.target.wants/datadog-agent-process.service → /lib/systemd/system/datadog-agent-process.service. Created symlink /etc/systemd/system/multi-user.target.wants/datadog-agent-trace.service → /lib/systemd/system/datadog-agent-trace.service. No datadog.yaml file detected, not starting the agent Processing triggers for systemd (237-3ubuntu10.28) ... Processing triggers for ureadahead (0.100.0-21) ... ureadahead will be reprofiled on next reboot W: --force-yes is deprecated, use one of the options starting with --allow instead. * Adding your API key to the Agent configuration: /etc/datadog-agent/datadog.yaml /bin/systemctl * Starting the Agent... Your Agent is running and functioning properly. It will continue to run in the background and submit metrics to Datadog. If you ever want to stop the Agent, run: sudo systemctl stop datadog-agent And to run it again run: sudo systemctl start datadog-agent bext@bext-G3-3779:~$
eot
Thanks for your detailed explanation.
ResponderEliminarDevOps Online Training