0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

azure上のインスタンスに datadog-agent をインストールし、メトリクスを確認するまで

Last updated at Posted at 2020-11-17

環境

Paas: Azure
OS: CentOS8(4.18.0-193.28.1.el8_2.x86_64)

ざっくりな流れ

CentOS8 を選択したのはミスだったかも。。いろいろ失敗したとき、CentOS8 であることが調査のノイズになった。(ハマった部分でCentOS8 が原因のものがあったのかどうかは不明)

  • ※参考リンク先は datadogにログインしていないと確認不可のものが多い

datadog-agent のインストール

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

実行後にプロセス起動を確認

# ps -ef | grep datadog
dd-agent    3040       1  2 15:18 ?        00:00:02 /opt/datadog-agent/bin/agent/agent run -p /opt/datadog-agent/run/agent.pid
dd-agent    3041       1  0 15:18 ?        00:00:00 /opt/datadog-agent/embedded/bin/process-agent --config=/etc/datadog-agent/datadog.yaml --sysprobe-config=/etc/datadog-agent/system-probe.yaml --pid=/opt/datadog-agent/run/process-agent.pid
dd-agent    3042       1  0 15:18 ?        00:00:00 /opt/datadog-agent/embedded/bin/trace-agent --config /etc/datadog-agent/datadog.yaml --pid /opt/datadog-agent/run/trace-agent.pid
root        3319    1301  0 15:19 pts/0    00:00:00 grep --color=auto datadog
#

参考: https://app.datadoghq.com/account/settings?_gl=1*1tbwosn*_gcl_aw*R0NMLjE2MDU1NzcwNTkuQ2owS0NRaUE0OGo5QlJDLUFSSXNBTVF1M1dSalZTRDIxaWR0MHhaRGNGQUhDX2I0OG5TM0N4eWtaOXZKeFNiVHZsU0J4QS00OEFmZ05SVWFBdFBRRUFMd193Y0I.#agent/centos

Azureアカウント連携の下準備: Azure CLI のインストールと情報確認

az version以外の標準出力は省略

# yum install python36
# yum install gcc python3-devel
# curl -L https://aka.ms/InstallAzureCli | bash
# exec -l $SHELL
# az version
{
  "azure-cli": "2.15.0",
  "azure-cli-core": "2.15.0",
  "azure-cli-telemetry": "1.0.6",
  "extensions": {}
}
# az login
# az account show
# az ad sp create-for-rbac --role "Monitoring Reader" --scopes /subscriptions/{subscription_id}

datadog側に情報登録

Datadog Azure インテグレーションタイルに、"appId" を Client ID に、"password" をClient Secret に入力。
※参考: https://docs.datadoghq.com/ja/integrations/azure/?tab=azurecliv20

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?