Engineering Lifecycle Management Wiki - Deployment
Deployment Web
Planning and design
Installing and upgrading
Migrating and evolving
Integrating
Administering
Monitoring
Troubleshooting
Community information and contribution guidelines
Create new topic
Topic list
Search
Advanced search
Notify
RSS
Atom
Changes
Statistics
Web preferences
E
dit
A
ttach
P
rintable
TWiki
>
Deployment Web
>
DeploymentMonitoring
>
ELMAdvancedMonitoringUsingPrometheusAndGrafana
Revision 3 - 2025-01-28 - 15:11:54 -
BhagathPB
<div id="header-title" style="padding: 10px 15px; border-width:1px; border-style:solid; border-color:#FFD28C; background-image: url(<nop>https://jazz.net/wiki/pub/Deployment/WebPreferences/TLASE.jpg); background-size: cover; font-size:120%"> ---+!! ELM Advanced Monitoring using Prometheus and Grafana %DKGRAY% Authors: Main.BhagathPB, Main.NaveenS <br> Build basis: 7.x and later %ENDCOLOR%</div></sticky> <!-- Page contents top of page on right hand side in box --> <sticky><div style="float:right; border-width:1px; border-style:solid; border-color:#DFDFDF; background-color:#F6F6F6; margin:0 0 15px 15px; padding: 0 15px 0 15px;"> %TOC{title="Page contents"}% </div></sticky> <sticky><div style="margin:15px;"></sticky> This document offers to help client in monitoring ELM using third party tools such as Prometheus and Grafana. Prometheus is a free software application used for event monitoring and alerting. It records metrics in a time series database built using an HTTP pull model, with flexible queries and real-time alerting. Whereas Grafana helps to collect, correlate, and visualize data with beautiful dashboards. ---++ Configuring JMX Exporter with ELM Download JMX Exporter using the link: https://github.com/prometheus/jmx_exporter </br> Configuring JMX Exporter with ELM: * Create a folder called jmx_exporter under the path: /opt/IBM/JazzTeamServer/server/liberty/wlp/usr/shared/resources * Place the jmx_prometheus_javaagent-0.20.0.jar to the jmx_exporter folder * Create a config file with the name jmx-config.yml * Add the below stack to the config.yml file <verbatim> rules: - pattern: "com.*" </verbatim> * Save the file * Go to the jvm.option (path:/opt/IBM/JazzTeamServer/server/liberty/servers/clm) * Add the below parameter to the jvm.options file. =-javaagent:/opt/IBM/JazzTeamServer/server/liberty/wlp/usr/shared/resources/jmx_exporter/jmx_prometheus_javaagent-0.20.0.jar=9081:/opt/IBM/JazzTeamServer/server/liberty/wlp/usr/shared/resources/jmx_exporter/jmx-config.yml= * Save the file. * Restart the ELM server. * Start the server with -clean arguments. * Access the Metrics with the URL: http://hostname:9081/metrics ---++ Installing Prometheus * Follow the below shared link to download and install a Prometheus. * Download: https://prometheus.io/download/ * Install: https://prometheus.io/docs/introduction/first_steps/ ---++ Configuring ELM with Prometheus * Edit the prometheus.yml file(For Reference Path: /var/snap/prometheus/current) * Add the below stack to the .yml file which will scrap the published matrics <verbatim> - job_name: '/metrics' static_configs: - targets: ['hostname:9081'] </verbatim> * Save the file and restart the Prometheus * Once restarted, access the prometheus URL: http: http://hostname:9090/ * Select the status option and go to Targets * In the Targets check the endpoint whether it is added or not, if it is added check the status its up or running. ---++ Installing Grafana Please follow the link https://grafana.com/grafana/download to download and Install Grafana to a desired location. ---++ Configuring Prometheus with Grafana * Navigate to Grafanas bin directory ex: <Grafana-Installation-Path>/bin * Run grafana-server.exe * Access Grafana through http://hostname:3000 * Default port is 3000 * Port can be changed using default.ini file located in Grafana conf directory * Default user-id and password is admin * Click on Data sources on the left hand menu. * Click on Add new data source > Search and select Prometheus * Provide Prometheus URL and rest of other parameters can remain as default * Click Save & Test ---+++++!! Related topics: [[DeploymentWebHome][Deployment web home]], [[DeploymentWebHome][Deployment web home]] ---+++++!! External links: * [[https://www.ibm.com][IBM]] ---+++++!! Additional contributors: Main.TWikiUser, Main.TWikiUser <sticky></div></sticky>
E
dit
|
A
ttach
|
P
rintable
|
V
iew topic
|
Backlinks:
We
b
,
A
l
l Webs
|
H
istory
: r3
<
r2
<
r1
|
M
ore topic actions
Copyright © by IBM and non-IBM contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our
Terms of Use.
Please read the following
disclaimer
.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more
here
.