Connect with GoodData

GoodData is a comprehensive analytics platform that enables you to explore, visualize, and derive insights from your SingleStore data. It offers a cloud-based, scalable solution for building and managing dashboards, reports, and data-driven applications.

To integrate your SingleStore database into GoodData, create a new data source using the GoodData UI or the Entity API.

Prerequisites

  • An active SingleStore deployment.

  • Add the GoodData Cloud IP address to the IP Allowlist (firewall) of your SingleStore deployment.

  • SingleStore recommends using a dedicated SingleStore database user with the required privileges for integration with GoodData.

    Run the following command to create a user:

    CREATE USER <username> IDENTIFIED BY '<password>';

    Refer to CREATE USER for more information.

Create a SingleStore Data Source in GoodData

The SingleStore data source can be configured in GoodData using any of the following methods:

  • Using the GoodData UI

  • Using the GoodData Entity API

Using the GoodData UI

To connect to SingleStore from GoodData:

  1. On the GoodData homepage, select Data sources > Connect data.

  2. On the Connect data dialog, select SingleStore from the list of supported databases.

  3. Enter a name for the data source, for example, SingleStore.

  4. Enter or select the following information in the Enter your SingleStore credentials section:

    • Connection URL:

      • Enter the hostname or IP address of your SingleStore deployment.

      • Enter the port of your SingleStore deployment. Default is 3306.

    • SSL mode: Select the SSL mode from the list.

    • Username: Enter the username of the SingleStore database user.

    • Password: Enter the password for the SingleStore database user.

    • Database name: Enter the name of the SingleStore database to connect with.

  5. Select Connect.

  6. From the Set cache preference list, select the cache preference.

  7. Select Save.

The SingleStore data source is configured and ready to use.

Using the GoodData Entity API

To configure a data source via the GoodData Entity API, make an API call to the ../api/v1/entities/dataSources endpoint. Here's an example:

curl $HOST_URL/api/v1/entities/dataSources \
-H "Content-Type: application/vnd.gooddata.api+json" \
-H "Accept: application/vnd.gooddata.api+json" \
-H "Authorization: Bearer $API_TOKEN" \
-X POST \
-d '{
"data": {
"type": "dataSource",
"id": "<unique_id_for_the_data_source>",
"attributes": {
"name": "<data_source_display_name>",
"url": "jdbc:mysql://<SINGLESTORE_HOST>:<SINGLESTORE_PORT>/<SINGLESTORE_DBNAME>",
"schema": "<SINGLESTORE_DBNAME>",
"type": "SINGLESTORE",
"username": "<SINGLESTORE_USER>",
"password": "<SINGLESTORE_PASSWORD>"
}}}' | jq .

On a successful API call, the server returns a response similar to the following:

{
  "data": {
    "type": "dataSource",
    "id": "<unique_id_for_the_data_source>",
    "attributes": {
      "name": "<data_source_display_name>",
      "url": "jdbc:mysql://<SINGLESTORE_HOST>:<SINGLESTORE_PORT>/<SINGLESTORE_DBNAME>",
      "schema": "<SINGLESTORE_DBNAME>",
      "type": "SINGLESTORE",
      "username": "<SINGLESTORE_USER>"
    }
  },
  "links": {
    "self": "$HOST_URL/api/v1/entities/dataSources/<unique_id_for_the_data_source>"
  }
}

For more information, refer to GoodData API documentation.

Remarks

  • The SingleStore data source only supports Basic Authentication.

  • The following table lists the minimum permissions required for the SingleStore database user to perform the respective task:

    Task

    Minimum Permission Required

    Data Rendering

    SELECT

    Caching database

    CREATE, DROP

    Refer to GRANT for more information.

  • For a list of SingleStore features that are not supported by GoodData, refer to Unsupported Features and Limitations.

Last modified: August 29, 2024

Was this article helpful?

Verification instructions

Note: You must install cosign to verify the authenticity of the SingleStore file.

Use the following steps to verify the authenticity of singlestoredb-server, singlestoredb-toolbox, singlestoredb-studio, and singlestore-client SingleStore files that have been downloaded.

You may perform the following steps on any computer that can run cosign, such as the main deployment host of the cluster.

  1. (Optional) Run the following command to view the associated signature files.

    curl undefined
  2. Download the signature file from the SingleStore release server.

    • Option 1: Click the Download Signature button next to the SingleStore file.

    • Option 2: Copy and paste the following URL into the address bar of your browser and save the signature file.

    • Option 3: Run the following command to download the signature file.

      curl -O undefined
  3. After the signature file has been downloaded, run the following command to verify the authenticity of the SingleStore file.

    echo -n undefined |
    cosign verify-blob --certificate-oidc-issuer https://oidc.eks.us-east-1.amazonaws.com/id/CCDCDBA1379A5596AB5B2E46DCA385BC \
    --certificate-identity https://kubernetes.io/namespaces/freya-production/serviceaccounts/job-worker \
    --bundle undefined \
    --new-bundle-format -
    Verified OK