Set Up and Access IoT Monitoring

This describes when you should use an IoT SDK or the IoT REST API, get an EUM App Key, and direct you to instructions for capturing and reporting data.

SDKs Versus REST API

The IoT SDKs use the REST API to transmit data to the EUM Server. By handling HTTP requests, serializing JSON, and managing events in memory, the SDKs make it easier to capture and report data, so you can focus on instrumenting your application. For platforms other than C++ or Java, you can take advantage of the wide variety of HTTP(S) and JSON libraries to use the IoT REST API to report data.

EUM アプリケーションキーの取得

EUM アプリケーションキーを取得するには、IoT アプリケーションを手動で作成するか、Getting Started Wizardを使用する(新規ユーザーの場合に推奨)必要があります。IoT REST API または IoT SDK を使用して EUM サーバにデバイス情報とイベントをレポートするには、EUM アプリケーションキーが必要です。複数の IoT アプリケーションが同じキーを共有できます。

Create an IoT Application with the Getting Started Wizard

From the Controller:

  • New Applications

  • Using Existing Applications

New Applications

From the Controller:

  1. Click User Experience from the top navigation bar.
  2. Select the Connected Devices tab.
  3. Click Get Started.
  4. From the Create Application dialog, select Create an Application using the Getting Started Wizard.
  5. Click OK.
  6. For step one of the Getting Started Wizard - Connected Devices page, select Use an existing Application.
  7. Choose one of the existing applications from the dropdown.
  8. From step two, select which method you want to use to report IoT data (Java SDK, C/C++ SDK, REST API).
  9. Copy the values for the App Key and the Collector URL. You'll be using both to report IoT data.

Using Existing Applications

From the Controller:

  1. Click User Experience from the top navigation bar.
  2. Select the Connected Devices tab.
  3. Click Get Started.
  4. From the Create Application dialog, select Create an Application using the Getting Started Wizard.
  5. Click OK.
  6. For step one of the Getting Started Wizard - Connected Devices page, select Create a new Application.
  7. Enter a name for your IoT app.
  8. Click Continue.
  9. From step two, select which method you want to use to report IoT data (Java SDK, C/C++ SDK, REST API).
  10. Copy the values for the App Key and the Collector URL. You'll be using both to report IoT data.

Manually Create an IoT Application

From your Controller:

  1. Click User Experience from the top navigation bar.
  2. Select the Connected Devices tab.
  3. Click Get Started.
  4. From the Create Application dialog, select Create an Application manually.
  5. Enter a name for your IoT app.
  6. Click OK.
  7. From the Connected Devices tab, select IoT app and click Copy Icon
    to copy the App Key to your clipboard.

IoT モニタリング用のビジネストランザクションの相関

IoT ネットワーク リクエスト イベントとビジネストランザクションを関連付けることができます。この相関は、ネットワーク リクエスト イベント情報とビジネストランザクションのインスタンス(トランザクション スナップショット)を含むビーコン間で行われます。

IoT Network Requests Correlation

This procedure outlines how IoT applications correlate network requests with business transactions:

  1. The IoT application attaches Splunk AppDynamics HTTP headers to a network request to the app server agent. These Splunk AppDynamics HTTP headers instruct the app server agent to send back correlation headers.
  2. The app server agent:
    • Sends HTTP response headers identifying the business transaction to the IoT application.
    • Aggregates backend metrics and sends them along with the business transaction identifiers to the Controller. This serves as the content for the transaction snapshot.
  3. The IoT Agent sends business transaction identifiers (from the HTTP response headers) as part of IoT network request event to the EUM Server. This serves as the content for the network request.
  4. The Controller fetches the events and business transaction identifiers from the EUM Server. These business transaction identifiers are used to correlate the network request with the transaction snapshots.

Correlate IoT Network Request Events with Business Transactions

Use the IoT SDKs or the IoT REST API to send the returned response headers from the business application with beacons to report IoT network request events and correlate those events with the business transaction.

For correlation instructions, see "Correlate Business Transactions with Network Requests" for either the IoT C/C++ SDK, IoT Java SDK, or the IoT REST API.

IoT アプリケーションに関連付けられたビジネストランザクションの表示

ネットワークリクエストのスナップショットから関連するビジネストランザクションに移動するには、いくつかの方法があります。次の手順は、可能な 1 つの方法を示しています。

  1. [IoT Device Dashboard] から、[Unique Devices] ウィジェット内のいずれかのデバイスレコードをダブルクリックします。一意のデバイス
  2. これで、[Activity Stream] タブにネットワークリクエストのリストが表示されるようになります。アクティビティストリーム内のリンクをクリックすると、ビジネストランザクションのトランザクション フローマップを表示できます。アクティビティストリーム
  3. 関連するビジネストランザクションのリストを表示するには、[Business Transactions] タブをクリックします。ビジネストランザクション
  4. 次にビジネストランザクションをクリックすると、以下の [Transaction Flow Map] によって関連するビジネストランザクションの間にビジネスアプリケーションのコンポーネントとアクティビティが視覚的に表示されます。,