{ "widgets": [ { "type": "metric", "x": 12, "y": 1, "width": 12, "height": 3, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} java_lang_operatingsystem_totalphysicalmemorysize', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}" } ] ], "view": "singleValue", "stacked": true, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Total RAM", "setPeriodToTimeRange": false } }, { "type": "metric", "x": 12, "y": 4, "width": 12, "height": 3, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} java_lang_operatingsystem_totalswapspacesize', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "" } ] ], "view": "singleValue", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Total SWAP" } }, { "type": "metric", "x": 0, "y": 1, "width": 12, "height": 3, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} java_lang_operatingsystem_systemcpuload', 'Average', 60)) * 100", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "" } ] ], "view": "singleValue", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "CPU System Load" } }, { "type": "metric", "x": 0, "y": 7, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} java_lang_operatingsystem_systemcpuload', 'Average', 60)) * 100", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "System" } ], [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} java_lang_operatingsystem_processcpuload', 'Average', 60)) * 100", "id": "e2", "region": "{{YOUR_AWS_REGION}}", "label": "Process" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "CPU Usage" } }, { "type": "metric", "x": 12, "y": 13, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace, area} jvm_memory_bytes_used', 'Average', 60))/AVG(REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} java_lang_operatingsystem_totalphysicalmemorysize', 'Average', 60))) * 100", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Memory Heap / Non Heap" } }, { "type": "metric", "x": 0, "y": 13, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace, pool} jvm_memory_pool_bytes_used', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Memory Pool Used " } }, { "type": "metric", "x": 12, "y": 7, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} jvm_threads_daemon', 'Average', 60))", "id": "e2", "region": "{{YOUR_AWS_REGION}}", "label": "" } ], [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} jvm_threads_current', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Threads Used" } }, { "type": "metric", "x": 0, "y": 19, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} java_lang_operatingsystem_openfiledescriptorcount', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "System" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Open File Descriptors " } }, { "type": "metric", "x": 12, "y": 19, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} jvm_classes_loaded', 'Average', 60)) * 100", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "System" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Class Loading" } }, { "type": "metric", "x": 0, "y": 4, "width": 12, "height": 3, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} java_lang_operatingsystem_availableprocessors', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}" } ] ], "view": "singleValue", "stacked": true, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "CPU Cores", "setPeriodToTimeRange": false } }, { "type": "metric", "x": 0, "y": 25, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} catalina_manager_activesessions', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "active" } ], [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} catalina_manager_rejectedsessions', 'Average', 60))", "id": "e2", "region": "{{YOUR_AWS_REGION}}", "label": "rejected" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Catalina Manager Sessions" } }, { "type": "metric", "x": 12, "y": 25, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} catalina_globalrequestprocessor_bytesreceived', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "recv" } ], [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} catalina_globalrequestprocessor_bytessent', 'Average', 60))", "id": "e2", "region": "{{YOUR_AWS_REGION}}", "label": "sent" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Catalina Request Processor bytes" } }, { "type": "metric", "x": 0, "y": 31, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} catalina_globalrequestprocessor_requestcount', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "count" } ], [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} catalina_globalrequestprocessor_errorcount', 'Average', 60))", "id": "e2", "region": "{{YOUR_AWS_REGION}}", "label": "error" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Catalina Request Processor requests" } }, { "type": "metric", "x": 12, "y": 31, "width": 12, "height": 6, "properties": { "metrics": [ [ { "expression": "REMOVE_EMPTY(SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace} catalina_globalrequestprocessor_processingtime', 'Average', 60))", "id": "e1", "region": "{{YOUR_AWS_REGION}}", "label": "count" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Average", "period": 60, "title": "Catalina Request Processor Time", "yAxis": { "left": { "label": "ms", "showUnits": false }, "right": { "showUnits": false } } } }, { "type": "text", "x": 0, "y": 0, "width": 24, "height": 1, "properties": { "markdown": "\n# Prometheus metrics: Java/JMX\n" } } ] }