WSO2 API Manager: Error during Analytics setup + PostgreSQL - wso2

We are installing WSO2 API Manager 2.6 Analytics using PostgreSQL DB.
When the dashboard component starts we get the following error:
Caused by: org.wso2.carbon.database.query.manager.exception.QueryMappingNotAvailableException: Mapping value for query: 'table_check' not found in Deployment config Map and Component config Map for database type: 'PostgreSQL' and version '9.5.12'
It seems it can't find the PostgreSQL queries.
How can we solve this problem?

The WSO2 APIM 2.6.0 statistics are not displayed in the APIM Analytics 2.6.0 dashboard, rather as same as the previous product version it is displayed on APIM 2.6.0 Publisher profile. underneath implementation directly access the Store Query AP in APIM Analytics 2.6.0 Worker runtime in order to get the statistics data.
So, in the default analytics scenario, you don't need to deploy the APIM Analytics 2.6.0 dashboard runtime to view the APIM statistics.
To give an answer to your query, unfortunately, there is a limitation in dashboard runtime with Postgres SQL where we need to introduce the compatible queries in here: https://github.com/wso2/carbon-dashboards/blob/master/components/dashboards/org.wso2.carbon.dashboards.core/src/main/resources/sql-queries.yaml
or else you can give the compatible queries in the wso2am-analytics-2.6.0/conf/dashboard/deployment.yaml as explained in the doc:
https://docs.wso2.com/display/SP430/Configuring+Database+Queries#ConfiguringDatabaseQueries-DashboardDashboard
Copy the queries with the above structure under the 'wso2.status.dashboard' namespace.

Related

Can I use Carbon Datasource in dss for work in WSO2 Micro Integrator?

I start wso2ei micro integrator profile and deploy carbonapp with
carbon datasource in dbs file. Then I get nullpointer error in get datasource in log.
If I specify jdbc datasource in dbs - it all ok.
Can I use carbon datasource in dbs for micro integrator?
The carbon datasources feature is not shipped with micro integrator. When a carbon datasource is created it saves in the registry in the default ESB profile. As all the registry related features are removed from the micro integrator, it is not available. Instead you can define the datasource in line in the dataservice it self.

WSO2 API Analytics: From where the data gets into WSO2AM_STATS_DB

I am fairly new with WSO2 products and currently checking on the ApiM and Analytics products.
I am able to configure the WSO2 APIM and Analytics products successfully with SQL database and now able to get the stats as well.
In further exploring, I want to know from where the data gets inserted into various tables inside WSO2AM_STATS_DB.
If its through events, then can some one please throw light on the same.
Thanks
Yes it is though a collection of Siddhi Apps running in APIM Analytics which is based on Stream Processor. You can find corresponding siddhi apps under /wso2/worker/deployment/siddhi-files. Below are the files
APIM_ACCESS_SUMMARY.siddhi
APIM_FAULT_SUMMARY.siddhi
APIM_REQUEST_PROCESSOR.siddhi
APIM_WORKFLOW.siddhi
These are written using Siddhi and here is the link to siddhi query guide if you need to understand.

WSO2 analytics confusion

I would like to generate visualization(charts) on the usage of API accessed via WSO2 API Manager. I see many products and versions and cannot find right one. What is the difference between these products ?
API M Analytics 2.2
API DAS server 3.2
API Streaming processer 4.1
I'm using API manager 2.2 version and need real time analytics so which one is suitable for this purpose and the corresponding documentation to setup ?
Thanks in advance.
With APIM 2.2.0 you should use APIM Analytics 2.2.0. It's a DAS with some custom code specific to APIM.
For statistics, APIM out of the box supports batch analytics only. However, it supports alerts.
You can read this for analytics configurations.

WSO2 API Manager - API Usage statistics by each user is missing in latest release 2.0.0

I am using WSO2 API Manager 2.0.0 along with WSO2 DAS 3.0.1
Query : API Usage statistics in PUBLISHER STATISTICS does not have user-wise split in latest version. Based on the documentation and webinars of WSO2, looks like user-wise split for API usage statistics was available in earlier versions. Am i missing any configurations here? Please clarify.
If you are referring to APIM 1.10, then AFAIK there is no major difference in statistic bases in APIM 1.10 and 2.0. The statistics module in both versions is able to show publisher wise user statistics. For that you can use this guide.As in the documentation you can check the user statistics by clicking on the API and referring to its Users tab.
Hope this helps.

WSO2 ESB - Adding databases through Admin Console Feature

I am new to WSO2 ESB and then I've started by following the initial steps described on WSO2 ESB product documentaion page. After the first samples succesfully run, I've got myself stuck trying to exercise the Database mechanism.
According to WSO2 ESB documentation - http://docs.wso2.org/wiki/display/ESB460/Databases - Admin Console feature must be installed to add a new database. So, I've tried to add that feature to my ESB installation by creating several repositories (http://dist.wso2.org/p2/carbon/releases/3.0.0 up to 4.0.5 and even the local version of 4.0.5 p2-repo.zip) , but after all I had no success in finding the Admin Console Feature, so no Database option for me. Even after adding the Datasources Feature, the Database option did not show up.
What am I missing here ? Is the documentation outdated ?
Thanks.
Otmar, That particular database provisioning feature that you are referring to as admin console feature was renamed to "rss manager". Please lookup for the feature with that name in the p2 feature repository.