All analytics data being tracked at the proxy are stored and fetched from the analytics database for processing. To enable data storage and processing, a third Party installation of PostgreSQL DB Server is required. The sections below illustrate the PostgreSQL configuration.
Installing and configuring PostgreSQL
- Download PostgreSQL from https://www.postgresql.org/download/.
- Install PostgreSQL (9.6 or a higher version) on the machine where the Analytics Database is to be created.
- Create a preferred username, set a password and create the database.
- Download the PostgreSQL JDBC driver for JVM from https://jdbc.postgresql.org/download/postgresql-42.2.2.jar.
- Provide the jar path in the server.conf file at FIORANO_HOME/esb/server/bin.
Figure 1: Providing the jar path in the server.conf file
Configuring the Analytics Database
Certain changes need to be made to the Fiorano setup for the Analytics database to connect to the PostgreSQL. This can be done using any one of the following ways:
From the configuration file
Postgre DB details are stored in the apidb.cfg file present in the $FIORANO_HOME/esb/server/profiles/server1/AMS/conf directory. To configure database details, make the following changes in the document:
Under point 2, change the <ip-address>, <port> and <database> variables to the desired settings of the above-installed PostgreSQL setup.
- Under point 3 and point 4 of this document, provide username and password credentials needed to connect to the installed database.
- Under point 6 and 7, provide the preferred reconnect settings.
- Go to $FIORANO_HOME/esb/server/bin/server.conf.
- Under <java.classpath>segment, add the path to the JDBC driver that was downloaded previously, so that the driver gets added to the classpath of the JVM.
Figure 2: Analytics DB properties in the apidb.cfg configuration file
From eStudio
When the servers are not running, the configuration can be done from the Profile Management perspective in eStudio. Perform the following actions for the same:
- Launch the Profile Management perspective from Window > Open perspective > Profile Management and open the APIMANAGER profile.
- Right-click the APIMANAGER node and click the DB Configuration for API Management option.
Change values in this dialog box as required (refer to the properties in the From the configuration file section above).
Figure 3: Analytics DB properties in the DB Configuration for API Management dialog box in eStudio
From the API Dashboard
The analytics database can be configured from the API Dashboard itself.
- Go to the Server Groups section in the API management dashboard Admin module.
Select the environment (Server Group) for which the Analytics database needs to be configured and provide values.
Figure 4: Analytics DB properties in the Server Groups section in the Administration section of API Dashboard
Configuring the Mail Server to receive Analytics notifications
For receiving Analytics notifications, the Mail Server section can be configured in the Admin module of the API Management dashboard. Refer the Mail Server section to see the properties that need to be updated.