DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Software Design and Architecture
  3. Microservices
  4. How to Monitor the AdroitLogic ESB (UltraESB-X) With Kibana

How to Monitor the AdroitLogic ESB (UltraESB-X) With Kibana

UltraESB-X can be used to publish metrics to Elasticsearch, and it can be monitored using Kibana. You can set this up in just six steps.

Rajind Ruparathna user avatar by
Rajind Ruparathna
·
Mar. 31, 17 · Tutorial
Like (9)
Save
Tweet
Share
4.14K Views

Join the DZone community and get the full member experience.

Join For Free

AdroitLogic Enterprise Service Bus (UltraESB-X) publishes metrics to the distributed RESTful search and analytics engine Elasticsearch. We can use the open-source visualization tool Kibana for monitoring purposes.

In this blog post, we will go through the steps to set up UltraESB-X monitoring with Kibana.

1. Install Kibana and Elasticsearch

The current UltraESB-X release, v17.01, uses Elasticsearch v5.1.1. I am going to assume that you have downloaded and familiarized yourself with UltraESB. If not, please go over to our developer portal to have a quick look. Let’s first download and install Kibana and Elasticsearch from the following links:

Also, check out the Elasticsearch Installation Guide and the Kibana Installation Guide.

2. Install X-Pack to Kibana and Elasticsearch

X-Pack is an Elastic Stack extension that bundles security, alerting, monitoring, reporting, and graphing capabilities. Follow this guide for X-Pack installation for both Elasticsearch and Kibana. Note that this extension comes as a 30-day trial.

3. Change UltraESB-X Metrics Configuration

UE-X by default is configured to publish to an embedded Elasticsearch server. However, it is recommended to use a standalone Elasticsearch server in production. Therefore, in this case, we will change the metrics configuration to publish to a standalone ES server. The metrics configuration is in the XML file in UltraESB-X_HOME/conf/metrics/metrics.xml.

There, comment the bean:

<bean id="es-server" class="org.adroitlogic.x.metrics.EmbeddedElasticsearchServer"/>

And uncomment the bean:

<bean id="es-server" class="org.adroitlogic.x.metrics.ExternalElasticsearchServer">
<constructor-arg>
<map>
<entry key="localhost" value="9300"/>
</map>
</constructor-arg>
<constructor-arg value="elasticsearch" type="java.lang.String"/>
</bean>

Also, for this case, we’ll disable the stats expiration. Change the rollover configuration section in the es-publisher bean as follows.

<!--RollOver Configuration-->
<property name="indexRollOverEnabled" value="false"/>
<property name="maxDocs" value="1000"/>
<property name="maxAgeInMinutes" value="15"/>
<property name="rollOverTimePeriodInMinutes" value="10"/>
<property name="deleteOldestIndexAfterRollOver" value="false"/>
<property name="deleteInactiveIndicesAtInit" value="false"/>
<property name="deleteInactiveIndicesAtDestroy" value="false"/>

The final updated configuration is in the metrics.xml file.

4. Start Elasticsearch, UltraESB-X, and Kibana

Start Elasticsearch by running the elasticsearch script in the ES_HOME/bin directory. Start Kibana by running the kibana script in the KIBANA_HOME/bin directory. Then, start UltraESB-X. Kibana by default runs at http://localhost:5601. The default credentials will be elastic/changeme.

Note: X-Pack comes with a security extension. You can disable it by adding xpack.security.enabled: false to the elasticsearch.yml file in the ES_HOME/conf directory. When the security extension is disabled, login will not be required.

5. Add Index Template to Kibana

In Kibana, we first need to add the index templates that we are interested in. To do that, let’s go to the Management tab in the left pane and add an index template pattern ultraesb_x*.Once the index pattern is entered, Kibana will automatically pick the time-field name as recordTime, as shown below.

Adding_index_template_ultraesb_x

6. Visualizations

Now, we can add visualizations. In order to add visualizations, it is better to have an understanding of the ultraesb_x index mapping first. Elasticsearch mapping is used in the full-mapping.json file.

Now, let’s add a line chart for received messages. Go to the Visualizations tab in the left pane and add a line chart by selecting Line Chart and the ultraesb_x-* index pattern.

selecting_pattern_ultraesb_x

Configure the x-axis as shown below:

configure_x

Configure the y-axis as follows:

configure_y

Finally, we can apply the changes using the Play button. There you go; your first visualization is a success!

final_line_chart

Finally, note that we can pick the time ranges from the top right button.

Call To Action

  • Like. Share. Appreciate and let others find this article.
  • Comment. Share your views on this article.
  • Keep in touch. LinkedIn, Twitter

Originally published at notebookbft.wordpress.com on March 14, 2017.

Enterprise service bus Kibana Elasticsearch Monitor (synchronization)

Published at DZone with permission of Rajind Ruparathna, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Leverage Lambdas for Cleaner Code
  • Effective Jira Test Management
  • gRPC on the Client Side
  • Chaos Data Engineering Manifesto: 5 Laws for Successful Failures

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: