Skip to main content

Install TDP APIM Insights
for WSO2 API Manager.

With tdpctl, prepare the TDP Cluster and configure WSO2 API Manager to send API usage data, which you analyze in Apache Superset.

The TDP WSO2 APIM Insights extension lets you analyze and visualize the usage data of the APIs managed by WSO2.

To install it, you need the extension file (.taf), provided individually by Tecnisys after the product is purchased. If you want to purchase it, contact us.

Extension file

The TDP WSO2 APIM Insights extension file (.taf).

TDP Cluster

Installed and configured, with the Apache NiFi, Apache Kafka, Apache Druid, and Apache Superset services running.

WSO2 API Manager

Installed and configured.

tdpctl

The TDP Command Line Interface, tdpctl, installed.

Your environment

If you fill in your environment details here, the examples and commands on the page use what you provided. The path of the .taf file must be absolute.

Installation stages​

The extension is installed in two stages, run in sequence with the same command, addon-install:

1st stage

BIG-DATA

Runs on one of the TDP Cluster hosts. Configures the cluster services used by the extension.

2nd stage

API-MANAGER

Runs on the host where WSO2 API Manager is installed. Configures the data delivery to the TDP Cluster.

Afterward

Analysis in Superset

The API usage data is available in the API MANAGER-WSO2 dashboard in Apache Superset.

note

In a WSO2 API Manager deployment with more than one node, the API-MANAGER stage must be run on all machines.

Scenarios​

On one of the TDP Cluster hosts: Ambari, NiFi, Druid, and Superset.

In the BIG-DATA stage, tdpctl requests information, performs checks, and runs operations on the TDP Cluster services used by the extension: Apache NiFi, Apache Kafka, Apache Druid, and Apache Superset.

Run the installation command

tdpctl started with the extension file.

Terminal input
tdpctl addon-install -f <TAF_FILE>

Start the installation in the big-data stage

The BIG-DATA stage selected.

  1. Select the desired language (1-English, 2-Portuguese).
  2. Enter the TDP extension file (.taf), if it was not provided in the command (-f or --file option).
  3. Enter the password to decrypt the file.
  4. Confirm that you want to start the extension installation operation.
  5. Select the big-data stage (option 1).

Enter the Ambari details

tdpctl connected to the Ambari of the TDP Cluster.

  1. Enter the Ambari Web host [Default: localhost].
  2. Enter the Ambari Web port [Default: 8080].
  3. Enter the communication protocol used by Ambari Web [Default: http].
  4. Enter the name of the TDP Cluster defined in Ambari.
  5. Enter the Ambari authentication user [Default: admin].
  6. Enter the Ambari authentication password.

Enter the NiFi, Druid, and Superset credentials

tdpctl authenticated on the services used by the extension.

  1. Enter the NiFi authentication user and password.
  2. Enter the Druid authentication user and password.
  3. Enter the Superset authentication user and password.

Copy the NiFi URL

The Apache NiFi service URL saved for the API-MANAGER stage.

Check all the steps of the BIG-DATA stage in the following image.

Figure 1 - Running the BIG-DATA stage
Figure 1 - Running the BIG-DATA stage
warning

At the end of this stage, the Apache NiFi service URL is provided. Copy it, because you must enter it in the API-MANAGER stage.

It worked when

At the end of the stage, tdpctl shows the Apache NiFi service URL.
Terminal recording: BIG-DATA stage
Carregando...

Command syntax​

Terminal input
tdpctl addon-install [OPTIONS]
OptionWhat it does
-f, --fileTDP extension file (.taf) to install.
-p, --passwordPassword to decrypt the extension.
-y, --yesConfirms the extension installation.
-t, --traceShows the traceback of the error.
--helpShows the help and exits.
note

To provide the TDP extension file (.taf) in the command, use the -f or --file option. If you do not provide the file in the command, tdpctl asks for it during execution. The file path must be absolute.

Terminal input
tdpctl addon-install --help

It worked when

The addon-install command help is shown with its options.
$ tdpctl addon-install --help
Usage: tdpctl addon-install [OPTIONS]

  Install a TDP add-on.

Options:
  -f, --file TEXT      TDP add-on file to install.
  -p, --password TEXT  The password to decrypt the add-on.
  -y, --yes            Confirm the add-on installation.
  -t, --trace          Show the traceback of the error.
  --help               Show this message and exit.

Installation logs​

The installation logs of the TDP WSO2 APIM Insights extension are stored in the tdpctl installation directory (<TDPCTL_DIR>). To follow them, run:

Terminal input
tail -f <TDPCTL_DIR>/tdpctl.log