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
- 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"]
- 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 Metric | Metric Display Name | Unit | Description |
---|---|---|---|
wildfly_datasources_pool_in_use_count | datasources pool in use | Number of open connections | |
wildfly_datasources_pool_wait_count | datasources pool wait | Number of requests that had to wait to obtain a physical connection | |
wildfly_datasources_pool_idle_count | datasources pool idle | Number of physical connections currently idle | |
wildfly_datasources_pool_xacommit_count | datasources pool xacommit | Number of XAResource commit invocations | |
wildfly_datasources_pool_active_count | datasources pool active | Number of XAResource active invocations | |
wildfly_datasources_pool_xarollback_count | datasources pool xarollback | Number of XAResource rollback invocations | |
wildfly_datasources_pool_xarecover_count | datasources pool xarecover | Number of XAResource recover invocations | |
wildfly_datasources_jdbc_prepared_statement_cache_current_size | datasources jdbc prepared statement cache current size | Number of prepared and callable statements currently cached in the statement cache | |
wildfly_datasources_jdbc_prepared_statement_cache_miss_count | datasources jdbc prepared statement cache miss | Number of times that a statement request could not be satisfied with a statement from the cache | |
wildfly_datasources_jdbc_prepared_statement_cache_hit_count | datasources jdbc prepared statement cache hit | Number of times that statements from the cache were used | |
wildfly_transactions_number_of_aborted_transactions_total | transactions aborted transactions | Total number of transactions which have aborted | |
wildfly_transactions_number_of_application_rollbacks_total | transactions application rollbacks | Number of transactions rolled back by the application. | |
wildfly_transactions_number_of_committed_transactions_total | transactions committed transactions | Number of committed transactions. | |
wildfly_transactions_number_of_heuristics_total | transactions heuristics | Number of transactions which have terminated with heuristic outcomes | |
wildfly_transactions_number_of_inflight_transactions | transactions inflight transactions | Total number of inflight (active) transactions. | |
wildfly_transactions_number_of_nested_transactions_total | transactions nested transactions | Number of nested (sub) transactions created so far. | |
wildfly_transactions_number_of_resource_rollbacks_total | transactions resource rollbacks | Number of transactions rolled back by participants. | |
wildfly_transactions_number_of_system_rollbacks_total | transactions system rollbacks | Number of transactions that were rolled back due to an internal system error. | |
wildfly_transactions_number_of_timed_out_transactions_total | transactions timed out transactions | Total number of transactions rolled back due to timeout. | |
wildfly_transactions_number_of_transactions_total | transactions transactions | Number of transactions (top-level and nested) created so far. | |
wildfly_undertow_error_count_total | undertow error | Number of 500 responses that have been sent | |
wildfly_undertow_processing_time_total_seconds | undertow processing time seconds | seconds | Total processing time of all requests handed by this listener |
wildfly_undertow_request_count_total | undertow request | requests | Number of requests served |
wildfly_undertow_bytes_sent_total_bytes | undertow bytes sent bytes | bytes | Number of bytes that have been sent out |
wildfly_undertow_bytes_received_total | undertow bytes received | bytes | Number of bytes that have been received |
wildfly_undertow_active_sessions | undertow active sessions | Number of active sessions | |
wildfly_undertow_expired_sessions_total | undertow expired sessions | Number of expired sessions | |
wildfly_undertow_sessions_created_total | undertow sessions created | Total sessions created | |
wildfly_undertow_rejected_sessions_total | undertow rejected sessions | Number of sessions that have been rejected | |
wildfly_undertow_session_max_alive_time_seconds | undertow session max alive time seconds | seconds | Longest time that an expired session had been alive |
wildfly_undertow_session_avg_alive_time_seconds | undertow session avg alive time seconds | seconds | Average time that expired sessions had been alive |