Metrics
Microtica allows users to extend the default metrics for various AWS services by creating custom metrics. This enables detailed monitoring and alerting based on specific needs. Custom metrics are defined through AWS CloudFormation templates by outputting parameters in a specific format. This document outlines the process to create and deploy custom metrics.
- Basic understanding of AWS CloudFormation syntax and operations.
- Familiarity with the AWS service metrics you wish to monitor.
To create a custom metric, you need to output parameters from your CloudFormation template in the following format:
- Name - The display name for the metric in the Microtica console.
- Namespace - The namespace of the AWS service (e.g., AWS/ECS, AWS/EC2).
- MetricName - The name of the metric within the AWS service.
- Statistics - The statistic type (e.g., Average, Maximum).
- Unit - The unit for the metric value (e.g., Percent, Seconds).
- Dimensions - Key-value pairs that uniquely identify the metric.
To monitor the average CPU utilization of an ECS service, you would define the following in your CloudFormation template's Outputs section:
To deploy your custom metric, simply include it in your CloudFormation stack and push the changes in Git. Once deployed, go to component Monitoring settings section and click on Sync Metrics button and the custom metric will be available in Microtica console, ready for monitoring and alerting based on your configurations.