0

I use independent wso2 API manager 1.10.0 and wso2 DAS 3.0.0 on AWS ec2 to gather statistics of my API usage and I use postgresql to be external RDBMS to store summary data.

APIM configurations on Admin-Dashboard

Event Receiver Configurations :

tcp://DAS-IP:7611

Data Analyzer Configurations :

https://DAS-IP:9443

Statistics Summary Datasource :

My-postgresql-url

APIM configuration in api-manager.xml

Disable rest client and enable RDBMS client

DAS configuration

Set datasource WSO2AM_STATS_DB in master-datasources.xml

Scenario

  1. Login to APIM publisher

  2. Deploy sample API

  3. Go to APIM store

  4. Subscribe sample API

  5. Go to APIM publisher

  6. Click statistics > API usage

  7. Only show example statistics page.

APIM Logs

[2016-04-22 06:12:47,787]  INFO - EmbeddedRegistryService Configured Registry in 0ms

[2016-04-22 06:12:48,015]  INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2016-04-22 06:12:48,015+0000]

[2016-04-22 06:12:48,360]  INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2016-04-22 06:12:48,359+0000]

[2016-04-22 06:12:48,605]  INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2016-04-22 06:12:48,605+0000]

[2016-04-22 06:12:48,664]  INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2016-04-22 06:12:48,664+0000]

[2016-04-22 06:12:48,920]  INFO - CarbonAuthenticationUtil 'admin@carbon.super [-1234]' logged in at [2016-04-22 06:12:48,920+0000]

[2016-04-22 06:12:49,296]  INFO - API Initializing API: admin--CalculatorAPI:v1.0

[2016-04-22 06:13:05,384]  INFO - **ReceiverGroup Resending the failed published data...**

DAS Logs

[2016-04-22 04:09:00,218]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

[2016-04-22 04:09:32,439]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

[2016-04-22 04:09:47,474]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

[2016-04-22 04:33:10,239]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

[2016-04-22 04:35:28,672]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

[2016-04-22 06:05:18,848]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

[2016-04-22 06:12:53,017]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

[2016-04-22 06:13:09,173]  INFO {org.wso2.carbon.databridge.core.DataBridge} -  user admin connected

DAS WSO2_STATS_DB status

From DAS dashboard > configure > data sources,I've checked the status of all DB is active and tested connection is healthy.


I don't know if WSO2AM_STATS_DB doesn't support postgresql or my configuration gets something wrong.

thanks

4

1 回答 1

1

我为 APIM Stat 脚本文件夹提出了一个公共jira,没有 PostgreSQL 脚本。

APIM 不会将订阅事件发布到 DAS。订阅详细信息保存在WSO2AM_DB数据库中,为此我们使用了 AM_SUBSCRIBER 和 AM_SUBSCRIPTION 表。

希望您遵循此文档

于 2016-05-18T05:49:19.567 回答