Monitoring Petals ESB with Prometheus

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History
* Add the following line to *petals-esb.sh*, just before the “_exec_” command at the very end of the script. If necessary, change the version number to match the jar file you downloaded. _8585_ is the port number on which HTTP metrics will be exposed (once gathered by the jmx_exporter), set it as you see fit.{code}JAVA_OPTS="$JAVA_OPTS -javaagent:${PETALS_LIB_DIR}/jmx_prometheus_javaagent-0.3.1.jar=8585:${PETALS_CONF_DIR}/prometheus-jmx.yaml"{code}
* Run _petals-esb.sh_
* Metrics are available at *[http://localhost:8585/metrics|http://localhost:8484/metrics*]*

+?+{+}Raw metrics sample:+



h2. Reload configuration




In short, once logged as admin:
# Open the side menu by clicking the Grafana icon in the top header.



h3. Creating a graph




[^Container overview-1552482360774.json]




[^Components detail-1552482381216.json]




[^API-1552482402292.json]




[^All services-1552482428245.json]




In grafana web UI, select "Import" in the "create" menu (the big *+* icon in left sidebar), then clic "Upload .json File".