{ "widgets": [ { "type": "metric", "x": 0, "y": 6, "width": 6, "height": 6, "properties": { "metrics": [ [ { "expression": "m2/m1 * 100", "label": "[max: ${MAX}, avg: ${AVG}] Percentage", "id": "e1", "region": "{{YOUR_AWS_REGION}}" } ], [ "ContainerInsights/Prometheus", "memcached_limit_bytes", "Service", "{{YOUR_SERVICE_NAME}}", "ClusterName", "{{YOUR_CLUSTER_NAME}}", "Namespace", "{{YOUR_NAMESPACE}}", { "id": "m1", "visible": false } ], [ ".", "memcached_current_bytes", ".", ".", ".", ".", ".", ".", { "id": "m2", "visible": false } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Sum", "period": 60, "title": "Memory Usage" } }, { "type": "metric", "x": 0, "y": 0, "width": 6, "height": 6, "properties": { "view": "timeSeries", "stacked": false, "metrics": [ [ "ContainerInsights/Prometheus", "memcached_current_items", "Service", "{{YOUR_SERVICE_NAME}}", "ClusterName", "{{YOUR_CLUSTER_NAME}}", "Namespace", "{{YOUR_NAMESPACE}}", { "label": "[max: ${MAX}, avg: ${AVG}] memcached_current_items" } ] ], "region": "{{YOUR_AWS_REGION}}", "title": "Items in Cache", "period": 300, "stat": "Average" } }, { "type": "metric", "x": 6, "y": 0, "width": 6, "height": 6, "properties": { "metrics": [ [ { "expression": "m2/m1 * 100", "label": "[max: ${MAX}, avg: ${AVG}] Percentage", "id": "e1", "stat": "Sum", "period": 60, "region": "{{YOUR_AWS_REGION}}" } ], [ "ContainerInsights/Prometheus", "memcached_commands_total", "Service", "{{YOUR_SERVICE_NAME}}", "ClusterName", "{{YOUR_CLUSTER_NAME}}", "command", "get", "Namespace", "{{YOUR_NAMESPACE}}", { "id": "m1", "visible": false } ], [ ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "status", "hit", { "id": "m2", "visible": false } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Sum", "period": 60, "title": "Hit Rate" } }, { "type": "metric", "x": 12, "y": 0, "width": 6, "height": 6, "properties": { "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Sum", "period": 60, "start": "-PT1H", "end": "P0D", "title": "Evicts & Reclaims rate ", "metrics": [ [ "ContainerInsights/Prometheus", "memcached_items_evicted_total", "Service", "{{YOUR_SERVICE_NAME}}", "ClusterName", "{{YOUR_CLUSTER_NAME}}", "Namespace", "{{YOUR_NAMESPACE}}", { "label": "[max: ${MAX}, avg: ${AVG}] memcached_items_evicted_total" } ], [ ".", "memcached_items_reclaimed_total", ".", ".", ".", ".", ".", ".", { "label": "[max: ${MAX}, avg: ${AVG}] memcached_items_reclaimed_total" } ] ] } }, { "type": "metric", "x": 6, "y": 6, "width": 6, "height": 6, "properties": { "metrics": [ [ "ContainerInsights/Prometheus", "memcached_read_bytes_total", "Service", "{{YOUR_SERVICE_NAME}}", "ClusterName", "{{YOUR_CLUSTER_NAME}}", "Namespace", "{{YOUR_NAMESPACE}}", { "label": "[max: ${MAX}, avg: ${AVG}] read" } ], [ ".", "memcached_written_bytes_total", ".", ".", ".", ".", ".", ".", { "label": "[max: ${MAX}, avg: ${AVG}] write" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Sum", "period": 60, "title": "Network" } }, { "type": "metric", "x": 12, "y": 6, "width": 6, "height": 6, "properties": { "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Sum", "period": 60, "title": "Connections", "metrics": [ [ "ContainerInsights/Prometheus", "memcached_current_connections", "Service", "{{YOUR_SERVICE_NAME}}", "ClusterName", "{{YOUR_CLUSTER_NAME}}", "Namespace", "{{YOUR_NAMESPACE}}", { "label": "[max: ${MAX}, avg: ${AVG}] memcached_current_connections" } ] ] } }, { "type": "metric", "x": 0, "y": 12, "width": 18, "height": 6, "properties": { "metrics": [ [ { "expression": "SEARCH('{ContainerInsights/Prometheus,ClusterName,Namespace,Service,command} Namespace=\"{{YOUR_NAMESPACE}}\" Commands ClusterName=\"{{YOUR_CLUSTER_NAME}}\"', 'Average', 60)", "id": "e1", "label": "[max: ${MAX}, avg: ${AVG}] ", "region": "{{YOUR_AWS_REGION}}" } ] ], "view": "timeSeries", "stacked": false, "region": "{{YOUR_AWS_REGION}}", "stat": "Sum", "period": 60, "title": "Commands" } } ] }