Search code examples
wso2wso2-das

Java microservices (Spring Boot) push data to WSO2 DAS 3.0.1


There are many Spring Boot based Microservices in my organization, and most of them are Restful web services. To analyse and monitor them, the Microservices should be able to publish data to WSO2 DAS 3.0.1. Can anyone tell me where are step-by-step tutorials and documents available?

Cheers, Sean


Solution

  • The support provided by WSO2 MSF4J for WSO2 DAS analytics can be used here with a few changes.

    1. DAS Setup -

    WSO2 contain an analytics dashboard and SparkSQL scripts to analyze microservices data. (The jaggery app)

    These were written with WSO2 MSF4J framework in mind, but the DAS setup guide can be extracted without much changes. You can use das-setup/setup.sh for this.

    sh das-setup.sh -d /path/to/das/home

    1. Write a Spring Boot interceptor that captures the requests and publish the events to DAS.

    Your interceptor would look pretty similar to this HTTPMonitoringInterceptor.