From 47175618bec74e7a7005f588015027f1b62b9f1e Mon Sep 17 00:00:00 2001
From: Neetu <44194609+ntrip@users.noreply.github.com>
Date: Thu, 12 Mar 2020 15:48:24 +0530
Subject: [PATCH 1/2] Updated steps for Prometheus for BW6
---
prometheus-integration/README.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/prometheus-integration/README.md b/prometheus-integration/README.md
index 4e4652f..251b8db 100644
--- a/prometheus-integration/README.md
+++ b/prometheus-integration/README.md
@@ -31,6 +31,22 @@ To enable Prometheus monitoring for applications running in PCF follow the below
* cp path-to-file/prometheus.yml ~/prometheus.yml
* docker run --name prometheus -v ~/prometheus.yml:/etc/prometheus/prometheus.yml -p 127.0.0.1:9090:9090 --link promregator prom/prometheus:latest
+## Prometheus for BW6
+
+To enable Prometheus monitoring for an appnode follow the below steps:
+* Set BW_PROMETHEUS_ENABLE environment variable to TRUE. Add below line in /bin/bwcommon.tra file
+ * tibco.env.BW_PROMETHEUS_ENABLE=true
+* Add prometheus-integration.jar in /system/hotfix/shared folder.
+* Start the appnode. It will start pushing data at http://localhost:9095/
+* Download standalone Prometheus server: https://prometheus.io/download/ and use below commands to install it in Linux:
+ * tar xvfz prometheus-*.tar.gz
+ * cd prometheus-*
+For other OS check steps here: https://prometheus.io/docs/introduction/first_steps/
+* Update prometheus.yml file, set target as localhost:9095 and start the Prometheus server using below command:
+ * ./prometheus --config.file=prometheus.yml`
+* Check http://localhost:9090 for Prometheus metrics
+
+
## Grafana Integration to Prometheus
To start Grafana in your local machine run the below command:
From 703bc15a2c55ca7ff81fc23674dfb88dfb7a7453 Mon Sep 17 00:00:00 2001
From: Neetu <44194609+ntrip@users.noreply.github.com>
Date: Thu, 12 Mar 2020 16:18:54 +0530
Subject: [PATCH 2/2] Updated headings
---
prometheus-integration/README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/prometheus-integration/README.md b/prometheus-integration/README.md
index 251b8db..92a9e4c 100644
--- a/prometheus-integration/README.md
+++ b/prometheus-integration/README.md
@@ -2,7 +2,7 @@
Prometheus Monitoring for TIBCO BusinessWorks is an open source plug-in for TIBCO BusinessWorks. It is designed to monitor JVM, application's activity & process related statistics via [Prometheus](https://prometheus.io).
-## Prometheus for Docker
+## For BW apps running in Docker
To enable Prometheus monitoring for applications running in Docker follow the below steps:
* Add JAR of this plugin in addons/jar folder and build the base image (name it as bwce-base).
@@ -18,7 +18,7 @@ Now, hit the application endpoint and check the metrics here: http://your-machin
* cp path-to-file/prometheus.yml ~/prometheus.yml
* docker run -d -p 9090:9090 -v ~/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus --config.file=/etc/prometheus/prometheus.yml
-## Prometheus for PCF
+## For BW apps running in PAS (Formerly known as PCF)
To enable Prometheus monitoring for applications running in PCF follow the below steps:
* Set BW_PROMETHEUS_ENABLE environment variable to TRUE in the manifest.yml file of the application.
@@ -31,7 +31,7 @@ To enable Prometheus monitoring for applications running in PCF follow the below
* cp path-to-file/prometheus.yml ~/prometheus.yml
* docker run --name prometheus -v ~/prometheus.yml:/etc/prometheus/prometheus.yml -p 127.0.0.1:9090:9090 --link promregator prom/prometheus:latest
-## Prometheus for BW6
+## For BW apps running in BW6 AppSpace
To enable Prometheus monitoring for an appnode follow the below steps:
* Set BW_PROMETHEUS_ENABLE environment variable to TRUE. Add below line in /bin/bwcommon.tra file