r2 - 2024-08-22 - 09:30:55 - BhagathPBYou are here: TWiki >  Deployment Web > DeploymentMonitoring > ELMAdvancedMonitoringUsingPrometheusAndGrafana

ELM Advanced Monitoring using Prometheus and Grafana new.png

Authors: BhagathPB, NaveenS
Build basis: 7.x and later

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 link: https://github.com/prometheus/jmx_exporter
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

rules:
- pattern: "com.*"

  • 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 Matrics with the URL: http://hostname:9081/metrics

Installing Prometheus

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
- job_name: '/metrics'
   static_configs:
      - targets: ['hostname:9081']
  • 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 it’s 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 Grafana’s 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: Deployment web home, Deployment web home

External links:

Additional contributors: TWikiUser, TWikiUser

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
This site is powered by the TWiki collaboration platformCopyright © 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.