Grafana


Grafana


このページではGrafana をConnect AI の仮想SQL Server API に接続する手順の概要を示します。

前提条件

接続する前にまず以下を実行します。

  • データソースをConnect AI アカウントに接続します。詳しくは、Sources を参照してください。
  • Settings ページでPersonal Access Token (PAT) を生成します。PAT をコピーし、認証時にパスワードとして使用します。

Connect AI に接続する

Grafana からConnect AI の仮想SQL Server API へのコネクションを確立するには以下の手順に従います。

  1. Download and install Grafana for your operating system from the Grafana website.

  2. Once installed, access Grafana at http://localhost:3000/.

  3. Log in to Grafana with your username and password for Grafana. If this is your first time logging in, the username is admin and the password is admin.

  4. On the navigation menu, click Connections > Add new connection.

  5. Search for Microsoft SQL Server as your data source.

  6. Click Add new data source.

  7. (Optional) Enter a new name for the data source.

  8. Enter the following connection settings.

    • Hosttds.cdata.com:14333
    • Database—接続したいConnect AI データソースのConnection Name を入力します。例:Salesforce1
    • Username—Connect AI のユーザー名を入力します。ユーザー名は、Connect AI の画面の右上に表示されています。例:test@cdata.co.jp
    • PasswordSettings ページで生成したPAT を入力します。

  9. Click Save & test. A Database Connect OK message appears.

  10. On the navigation menu, click Explore.

  11. Select the connection you created. Choose the tables and columns you want to query.

  12. Run the query and visualize your data as you want.