Sign inSign up

exoplatform/jmxtrans

By exoplatform

•Updated about 1 month ago

JMXTrans docker image for eXo

Image
1

5.9K

exoplatform/jmxtrans repository overview

⁠JMXTrans docker container for eXo

This container aims to provide an out of the box tool to collect eXo Platform JMX metrics and to push it in an Influxdb server.

⁠eXo Platform Docker image

Docker Stars - Docker Pulls

ImageJMXTranseXo Platform
exoplatform/jmxtrans:latest2684.4+
exoplatform/jmxtrans:develop2684.4+
exoplatform/jmxtrans:268_02684.4+
exoplatform/jmxtrans:268_12685.1+
exoplatform/jmxtrans:272_42726.2+

⁠Running

Just launch the image with default values :

docker run exoplatform/jmxtrans 

If you want to specify the targeted Influxdb server :

docker run -e TARGET_INFLUXDB_URL="http://influxdb.server.org" exoplatform/jmxtrans 

or the eXo Platform server hostname :

docker run -e TARGET_JMX_HOST=exo.server.org exoplatform/jmxtrans 

For more configuration settings, see the next section.

⁠Configuration options

Several aspects of JMXTrans container are customizable with the following environment variables:

VARIABLEMANDATORYDEFAULT VALUEDESCRIPTION
HEAP_SIZENO512specify the jvm allocated memory size in MB (-Xms and -Xmx parameters)
TARGET_JMX_HOSTNOlocalhostthe JMX hostname of the eXo Platform instance
TARGET_JMX_PORTNO8004the JMX port of the eXo Platform instance
TARGET_JMX_USERNO``the JMX username of the eXo Platform instance
TARGET_JMX_PASSWORDNO``the JMX password of the eXo Platform instance
TARGET_HOSTNAMENOsame as $TARGET_JMX_HOST valuethe hostname of the eXo Platform server
TARGET_NODE_IDNONCa string to identify an eXo node in a cluster for exemple
TARGET_INFLUXDB_URLNOhttp://localhost:8086the full url of the Influxdb server to send the metrics
TARGET_INFLUXDB_DATABASENOexothe Influxdb database name to use
TARGET_INFLUXDB_USERNAMENOnobodythe Influxdb username
TARGET_INFLUXDB_PASSWORDNOnothingthe Influxdb password
TARGET_INFLUXDB_CREATE_DBNOtruedoes JMXTrans create the Influxdb database if needed
TARGET_INFLUXDB_RETENTION_POLICYNOautogenthe Influxdb rentention policy name to use
JMXTRANS_POOLING_FREQUENCYNO30the JMXTrans pooling frequency in seconds
JMXTRANS_LOG_LEVELNOWARNthe JMXTrans logging level (DEBUG

⁠Collected metrics

Influxdb MeasurementMBeans
jvm_gcjava.lang:type=GarbageCollector,name=*
jvm_memory_heapjava.lang:type=Memory
jvm_memory_pooljava.lang:name=*,type=MemoryPool
jvm_systemjava.lang:type=OperatingSystem
jvm_threadsjava.lang:type=Threading
exo_cachesexo:portal=,service=cache,name=
exo_infinispan_idmorg.infinispan.plidm:type=Cache,name=,manager=,component=Statistics
exo_infinispan_idm_channelorg.infinispan.plidm:type=channel,cluster=*
exo_infinispan_idm_protocolorg.infinispan.plidm:type=protocol,cluster=*,protocol=TCP
exo_infinispan_idm_rpcorg.infinispan.plidm:type=Cache,name=,manager=,component=RpcManager
exo_infinispan_jcrjcr.ispn.cache:type=Cache,name=,manager=,component=Statistics
exo_infinispan_jcr_channeljcr.ispn.cache:type=channel,cluster=*
exo_infinispan_jcr_protocoljcr.ispn.cache:type=protocol,cluster=*,protocol=TCP
exo_infinispan_jcr_rpcjcr.ispn.cache:type=Cache,name=,manager=,component=RpcManager
exo_infinispan_servicesservices.ispn.cache:type=Cache,name=,manager=,component=Statistics
exo_infinispan_services_channelservices.ispn.cache:type=channel,cluster=*
exo_infinispan_services_protocolservices.ispn.cache:type=protocol,cluster=*,protocol=TCP
exo_infinispan_services_rpcservices.ispn.cache:type=Cache,name=,manager=,component=RpcManager
exo_jcr_cacheexo:portal=,repository=,workspace=,service=Cache
exo:portal=
,repository=,workspace=,service=lockmanager
exo_jcr_session_registryexo:portal=,repository=,service=SessionRegistry
tomcat_datasourcesCatalina:type=DataSource,class=javax.sql.DataSource,name="*"
tomcat_request_processorCatalina:type=GlobalRequestProcessor,name=*
tomcat_http_sessionsCatalina:type=Manager,context=/,host=
tomcat_threadpoolsCatalina:type=ThreadPool,name=*

⁠Testing

A docker-compose file is provided to test a full monitoring stack with eXo Platform Community edition

docker-compose -f test/docker-compose.yml -p jmx up -d

Tag summary

Content type

Image

Digest

sha256:e996316e6…

Size

89.9 MB

Last updated

about 1 month ago

docker pull exoplatform/jmxtrans