本文へスキップ

Visualize Query Results using Lagoon

Build a Lagoon dashboard that visualizes data from Soracom Query, combining query results with real-time visualization.

コピー/保存

このページはまだ日本語では利用できません。現在は英語版を表示しています。ブラウザの翻訳機能をご利用ください。

ブラウザで翻訳する
  • Chrome / Edge: アドレスバーの翻訳アイコン、またはページを右クリックして「日本語に翻訳」を選択してください。
  • Safari: アドレスバーの「aA」メニューから「翻訳」を選択してください。

翻訳メニューが表示されない場合は、ブラウザ設定で翻訳機能が有効になっているか確認してください。

英語版を見る

Visualize Soracom Query Results in Soracom Lagoon

You can visualize Soracom Query results in Soracom Lagoon 3. In this guide, we'll visualize the results that were generated in Show Connection Trends using Query.

Prerequisites

  • You must be subscribed to a Soracom Query plan. For details, see Plan Management.
  • You must be subscribed to a Soracom Lagoon plan. For details, see Subscribe to Lagoon.

Step 1: Create a New Dashboard and Panel

  1. Sign in to the Lagoon console and click Dashboards icon > New > New Dashboard.

    New Dashboard menu in Lagoon console

    A new dashboard named "New dashboard" will be created.

  2. Click Add a new panel.

    Add new panel button in dashboard

    A panel will be created and the "Edit Panel" screen will appear.

    Edit Panel screen interface
  3. Select Soracom Query from the Query tab.

    Soracom Query selection in Query tab
  4. Enter the SQL query.

    For details on the query, refer to Create a Query with SQL Assistant.

    SQL query input field with session data query

    ! SQL character limit: The maximum length for SQL queries is 3,000 characters. If your query exceeds this limit, an error will occur. Reduce the number of characters to stay within the limit.

  5. Click Run or press Shift + Enter to execute the SQL query.

    Apply button to execute the query

API calls are counted: When executing Soracom Query from Soracom Lagoon, API calls count toward your plan's total usage. Some plans limit the number of API calls or charge fees based on usage. For details, see View Usage.

Time range limitation: The time range specified in your SQL query may be limited by the time range set in the panel. For example, if your query retrieves data for the past 2 hours but the panel time range is set to 1 hour, only 1 hour of data will be displayed.

No Harvest Data export charges: Retrieving data from Soracom Harvest Data using Soracom Query does not incur export charges. This applies even if the Harvest Data retention period extension option is enabled.

Step 2: Set the Panel Title

By default, "Panel Title" is displayed.

  1. Click All > Panel options and enter "Session Creation Count Trend for the Last 24 Hours" in the Title field.

    Panel title configuration field

Step 3: Save the Dashboard

  1. Click Apply on the "Edit Panel" screen.

    Legend configuration options

    You'll return to the Dashboard screen.

  2. Click the Save dashboard button.

    Save dashboard dialog

    The Save dashboard screen will appear.

  3. Enter a name for the Dashboard (e.g., Session Creation Count Trend Dashboard) in the Dashboard name field and click Save.

    Final dashboard with session trend chart

    The Dashboard will be saved.

検索 Escで閉じる / Enterで検索結果