> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Datadog

> Datadogとの連携の手順です。

## サポートする機能

<Badge color="blue">アカウント無効化</Badge> <Badge color="blue">アカウント作成</Badge>

## 事前準備

### Datadogへのログイン方法

[Datadogログインページ](https://app.datadoghq.com/account/login)にて、ユーザー名またはメールアドレス・パスワードを入力し、ログインします。

<img src="https://mintcdn.com/moneyforwardi/auXDOQvRltOVZLKW/images/integrations/l7k9m32990/1656398267335.png?fit=max&auto=format&n=auXDOQvRltOVZLKW&q=85&s=3d06ea977104534b7fe8fab7427a8586" alt="Datadogログイン画面" width="1021" height="641" data-path="images/integrations/l7k9m32990/1656398267335.png" />

### アプリケーションキーの取得方法

<Info>
  Application Keysの発行はAdmin Roleで実行いただくか、以下の権限を持つアカウントで発行ください。

  * Access Management (User Access Manage, Org Management)
  * API and Application Keys (5/5)

  ※Org Managementの**user\_access\_read**が認可されている事をご確認ください。
</Info>

Datadogにログイン後、サイドメニューよりMy Account からOrganization Settings をクリックします。

<img src="https://mintcdn.com/moneyforwardi/auXDOQvRltOVZLKW/images/integrations/l7k9m32990/1662514299982.png?fit=max&auto=format&n=auXDOQvRltOVZLKW&q=85&s=8499cf1566094e4b685ea20dc46afc2d" alt="Organization Settings" width="738" height="464" data-path="images/integrations/l7k9m32990/1662514299982.png" />

**Application Keys** に移動します。右上にある＋**New key**をクリックし、New Keyに任意の名前（会社名など）を付けて**Create Key**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/auXDOQvRltOVZLKW/images/integrations/l7k9m32990/1662514569434.png?fit=max&auto=format&n=auXDOQvRltOVZLKW&q=85&s=de7066d1cac183a4fc0e9cd34c5be5f2" alt="Application Keys作成" width="2954" height="1028" data-path="images/integrations/l7k9m32990/1662514569434.png" />

**新しいAPI key**が作成されます。`KEY`が**ワークスペースキー**となるので保存します。

<img src="https://mintcdn.com/moneyforwardi/auXDOQvRltOVZLKW/images/integrations/l7k9m32990/1656402799609.png?fit=max&auto=format&n=auXDOQvRltOVZLKW&q=85&s=be6a061a306d1bf896b14655566c630d" alt="Application Key" width="534" height="229" data-path="images/integrations/l7k9m32990/1656402799609.png" />

### APIキーの取得方法

<Info>
  API Keysの発行はAdmin Roleで実行ください。以下の権限を持つアカウントで発行ください。

  * Access Management (User Access Manage, Org Management)
  * API and Application Keys (5/5)
</Info>

**Organization Settings**から、**API Keys**を開きます。右上の **+ New key**をクリックし、

**New API key**に任意の名前（会社名など）を入力し、**Create API Key**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/auXDOQvRltOVZLKW/images/integrations/l7k9m32990/1662518127495.png?fit=max&auto=format&n=auXDOQvRltOVZLKW&q=85&s=f15632a546b0b9617ed570a4e8b0a52e" alt="API Keys作成" width="3074" height="842" data-path="images/integrations/l7k9m32990/1662518127495.png" />

**API keyが発行**されます。`KEY`が、**アクセスキー**となるので**保存**しておきます。

<img src="https://mintcdn.com/moneyforwardi/auXDOQvRltOVZLKW/images/integrations/l7k9m32990/1662518791450.png?fit=max&auto=format&n=auXDOQvRltOVZLKW&q=85&s=113b13f44978c5f7e4474635da95162a" alt="API Key" width="1064" height="444" data-path="images/integrations/l7k9m32990/1662518791450.png" />

### ドメインの取得

お客様の利用されているDatadogのサイトURLを入力します。

例）US1の場合 `https://app.datadoghq.com`

Datadogのサイトについては下記の情報を参考ください。

[Datadog サイト](https://docs.datadoghq.com/ja/getting_started/site/)

## インテグレーションのセットアップ

マネーフォワード Adminaのインテグレーション画面にて、**Datadog**で検索します。

<img src="https://mintcdn.com/moneyforwardi/auXDOQvRltOVZLKW/images/integrations/l7k9m32990/2022-03-08-175911.png?fit=max&auto=format&n=auXDOQvRltOVZLKW&q=85&s=965be7fc3b99e0179e406ac11e3c0c25" alt="Admina インテグレーション画面" width="938" height="500" data-path="images/integrations/l7k9m32990/2022-03-08-175911.png" />

前の手順で取得した**アプリケーションキー**、**APIキー、ドメイン**を入力し、**連携する**をクリックします。

<img src="https://mintcdn.com/moneyforwardi/auXDOQvRltOVZLKW/images/integrations/l7k9m32990/1729838528172.png?fit=max&auto=format&n=auXDOQvRltOVZLKW&q=85&s=5149dfc25f3ccb81fd061cd4b5774654" alt="Datadog連携設定" width="471" height="625" data-path="images/integrations/l7k9m32990/1729838528172.png" />

Datadog連携に成功すると、アカウント一覧に登録済みのユーザー情報が表示されます。

正常に完了しない場合は、インテグレーション画面のステータスタブから**編集**し、再度連携をお試しください。

解決しない場合はチャットにてお問い合わせください🙏

Datadogの連携概要については[連携ページ](http://admina.moneyforward.com/jp/integrations/datadog)をご覧ください。
