Hide
Steps to Reproduce
Deploy a web application after the start-up
1. Start JBoss EAP 8.1 with the default standalone.xml configuration that includes the metrics and infinispan (web cache) subsystems.
2. Deploy a web application (e.g., test.war) that having <distributable/> utilizes session replication caching. Put test.war to "depoyments" folder (or execute "deploy test.war" in JBoss-CLI).
3. Access the metrics endpoint: curl -s http://localhost:9990/metrics.
4. Check if infinispan related metrics is available for the deployment (the metrics name starting with "jboss_infinispan_" and having the deployment name for the cache; e.g., jboss_infinispan_number_of_entries{cache_container="web",cache="test.war"})
Actual Results
The metrics name starting with "jboss_infinispan_" and having the deployment name for the cache; e.g., jboss_infinispan_number_of_entries{cache_container="web",cache="test.war"}) is NOT available but only undertow related metrics is available for the deployment (e.g., test.war). For example:
Expected Results
The metrics name starting with "jboss_infinispan_" and having the deployment name for the cache; e.g., jboss_infinispan_number_of_entries{cache_container="web",cache="test.war"}) are available as well as undertow related metrics. For example:
Note that it works as expected if you swap the step 1 and step 2 (= deploy a web application before the start-up).
Show
Steps to Reproduce
Deploy a web application after the start-up
1. Start JBoss EAP 8.1 with the default standalone.xml configuration that includes the metrics and infinispan (web cache) subsystems.
2. Deploy a web application (e.g., test.war) that having <distributable/> utilizes session replication caching. Put test.war to "depoyments" folder (or execute "deploy test.war" in JBoss-CLI).
3. Access the metrics endpoint: curl -s http://localhost:9990/metrics .
4. Check if infinispan related metrics is available for the deployment (the metrics name starting with "jboss_infinispan_" and having the deployment name for the cache; e.g., jboss_infinispan_number_of_entries{cache_container="web",cache="test.war"})
Actual Results
The metrics name starting with "jboss_infinispan_" and having the deployment name for the cache; e.g., jboss_infinispan_number_of_entries{cache_container="web",cache="test.war"}) is NOT available but only undertow related metrics is available for the deployment (e.g., test.war). For example:
$ curl -s localhost:9990/metrics|grep test.war
jboss_undertow_active_sessions{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_expired_sessions_total{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_highest_session_count{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_max_active_sessions{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_rejected_sessions_total{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_session_avg_alive_time_seconds{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_session_max_alive_time_seconds{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_sessions_created_total{deployment="test.war",subdeployment="test.war"} 0.0
Expected Results
The metrics name starting with "jboss_infinispan_" and having the deployment name for the cache; e.g., jboss_infinispan_number_of_entries{cache_container="web",cache="test.war"}) are available as well as undertow related metrics. For example:
$ curl -s localhost:9990/metrics|grep test.war
jboss_infinispan_activations_total{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_average_read_time_seconds{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_average_remove_time_seconds{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_average_write_time_seconds{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_cache_loader_loads_total{cache_container="web",cache="test.war",component="persistence"} 0.0
jboss_infinispan_cache_loader_misses_total{cache_container="web",cache="test.war",component="persistence"} 0.0
jboss_infinispan_current_concurrency_level{cache_container="web",cache="test.war",component="locking"} 1000.0
jboss_infinispan_evictions_total{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_hit_ratio{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_hits_total{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_misses_total{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_number_of_entries{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_number_of_entries_in_memory{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_number_of_locks_available{cache_container="web",cache="test.war",component="locking"} 0.0
jboss_infinispan_number_of_locks_held{cache_container="web",cache="test.war",component="locking"} 0.0
jboss_infinispan_passivations_total{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_read_write_ratio{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_remove_hits_total{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_remove_misses_total{cache_container="web",cache="test.war"} 0.0
jboss_infinispan_time_since_reset_seconds{cache_container="web",cache="test.war"} 655.0
jboss_infinispan_time_since_start_seconds{cache_container="web",cache="test.war"} 655.0
jboss_infinispan_writes_total{cache_container="web",cache="test.war"} 0.0
jboss_undertow_active_sessions{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_expired_sessions_total{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_highest_session_count{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_max_active_sessions{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_rejected_sessions_total{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_session_avg_alive_time_seconds{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_session_max_alive_time_seconds{deployment="test.war",subdeployment="test.war"} 0.0
jboss_undertow_sessions_created_total{deployment="test.war",subdeployment="test.war"} 0.0
Note that it works as expected if you swap the step 1 and step 2 (= deploy a web application before the start-up).