WildFly, formerly known as JBoss AS, or simply JBoss, is an application server authored by JBoss, now developed by Red Hat. WildFly is written in Java and implements the Java Platform, Enterprise Edition (Java EE) specification. It runs on multiple platforms.

Prerequisite

  1. Add the following in kubernetes YAML file, in the containers section:
command: ["/opt/jboss/wildfly/bin/standalone.sh"]
args: ["-b", "0.0.0.0", "-bmanagement" ,"0.0.0.0"]
  1. For Virtual machines, install the Linux agent.

Configuring the credentials

Configure the credentials in the directory /opt/opsramp/agent/conf/app.d/creds.yaml

wildfly:
- name: wildfly
  user: <username>
  pwd: <Password>
  encoding-type: plain
  labels:
    key1: val1
    key2: val2
  

Configuring the application

Virtual machine

Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-detection.yaml

- name: wildfly
  instance-checks:
    service-check:
      - wildfly
    process-check:
      - wildfly
    port-check:
      - 8080
      - 9990
  

Docker environment

Configure the application in the directory /opt/opsramp/agent/conf/app/discovery/auto-container-detection.yaml

- name: wildfly
  container-checks:
    image-check:
      - wildfly
    port-check:
      - 8080
      - 9990
  

Kubernetes environment

Configure the application in config.yaml

- name: wildfly
  container-checks:
    image-check:
      - wildfly
    port-check:
      - 8080
      - 9990
  

Validate

Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.

Metrics

OpsRamp MetricMetric Display NameUnit
wildfly_datasources_pool_in_use_count

Number of open connections
datasources pool in use
wildfly_datasources_pool_wait_count

Number of requests that had to wait to obtain a physical connection
datasources pool wait
wildfly_datasources_pool_idle_count

Number of physical connections currently idle
datasources pool idle
wildfly_datasources_pool_xacommit_count

Number of XAResource commit invocations
datasources pool xacommit
wildfly_datasources_pool_active_count

Number of XAResource active invocations
datasources pool active
wildfly_datasources_pool_xarollback_count

Number of XAResource rollback invocations
datasources pool xarollback
wildfly_datasources_pool_xarecover_count

Number of XAResource recover invocations
datasources pool xarecover
wildfly_datasources_jdbc_prepared_statement_cache_current_size

Number of prepared and callable statements currently cached in the statement cache
datasources jdbc prepared statement cache current size
wildfly_datasources_jdbc_prepared_statement_cache_miss_count

Number of times that a statement request could not be satisfied with a statement from the cache
datasources jdbc prepared statement cache miss
wildfly_datasources_jdbc_prepared_statement_cache_hit_count

Number of times that statements from the cache were used
datasources jdbc prepared statement cache hit
wildfly_transactions_number_of_aborted_transactions_total

Total number of transactions which have aborted
transactions aborted transactions
wildfly_transactions_number_of_application_rollbacks_total

Number of transactions rolled back by the application.
transactions application rollbacks
wildfly_transactions_number_of_committed_transactions_total

Number of committed transactions.
transactions committed transactions
wildfly_transactions_number_of_heuristics_total

Number of transactions which have terminated with heuristic outcomes
transactions heuristics
wildfly_transactions_number_of_inflight_transactions

Total number of inflight (active) transactions.
transactions inflight transactions
wildfly_transactions_number_of_nested_transactions_total

Number of nested (sub) transactions created so far.
transactions nested transactions
wildfly_transactions_number_of_resource_rollbacks_total

Number of transactions rolled back by participants.
transactions resource rollbacks
wildfly_transactions_number_of_system_rollbacks_total

Number of transactions that were rolled back due to an internal system error.
transactions system rollbacks
wildfly_transactions_number_of_timed_out_transactions_total

Total number of transactions rolled back due to timeout.
transactions timed out transactions
wildfly_transactions_number_of_transactions_total

Number of transactions (top-level and nested) created so far.
transactions transactions
wildfly_undertow_error_count_total

Number of 500 responses that have been sent
undertow error
wildfly_undertow_processing_time_total_seconds

Total processing time of all requests handed by this listener
undertow processing time secondsseconds
wildfly_undertow_request_count_total

Number of requests served
undertow requestrequests
wildfly_undertow_bytes_sent_total_bytes

Number of bytes that have been sent out
undertow bytes sent bytesbytes
wildfly_undertow_bytes_received_total

Number of bytes that have been received
undertow bytes receivedbytes
wildfly_undertow_active_sessions

Number of active sessions
undertow active sessions
wildfly_undertow_expired_sessions_total

Number of expired sessions
undertow expired sessions
wildfly_undertow_sessions_created_total

Total sessions created
undertow sessions created
wildfly_undertow_rejected_sessions_total

Number of sessions that have been rejected
undertow rejected sessions
wildfly_undertow_session_max_alive_time_seconds

Longest time that an expired session had been alive
undertow session max alive time secondsseconds
wildfly_undertow_session_avg_alive_time_seconds

Average time that expired sessions had been alive
undertow session avg alive time secondsseconds