Tomcat
1,421

Created 5/15/2018
Updated 7/5/2018
Revision 2
Grafana Version >=5.1.3
Datasources
Prometheus

Tomcat dashboard will display the metrics from micrometer. You can setup the application name and the region in your Spring Boot app with the config:

@Bean
MeterRegistryCustomizer<MeterRegistry> metricsCommonTags() {
    return registry -> registry.config()
            .commonTags(
                    "application", applicationName,
                    "region", regionName);
}

The application name and region can be provided in your application.properties or environment variables.

The thread alert threshold is set to 170 threads. The default value for tomcat_threads_config_max is 200.

Get Dashboard
Download
Copy to Clipboard
Source Grafana.com

Used Metrics 16

  • tomcat_threads_current

  • tomcat_threads_busy

  • tomcat_servlet_error_total

  • tomcat_servlet_request_seconds_sum

  • tomcat_servlet_request_seconds_count

  • tomcat_servlet_request_max_seconds

  • tomcat_cache_access_total

  • tomcat_cache_hit_total

  • tomcat_sessions_created_total

  • tomcat_sessions_rejected_total

  • tomcat_sessions_expired_total

  • tomcat_sessions_alive_max_seconds

  • tomcat_sessions_active_max

  • tomcat_sessions_active_current

  • tomcat_global_sent_bytes_total

  • tomcat_global_received_bytes_total