What are the core concepts of Amazon CloudWatch metrics?
BeginnerConceptKubernetes Monitoring, Scale & Cloud
Answer
- Namespace: container for metrics, e.g.
AWS/EC2,AWS/RDS, or your ownMyApp. - Metric: a time series such as
CPUUtilization. - Dimensions: name/value pairs identifying the series, e.g.
InstanceId=i-0abc. Each unique combination is a separate (billed) custom metric. - Resolution: standard (1 minute) or high resolution (1 second) for custom metrics. EC2 basic monitoring is 5 minutes; detailed monitoring is 1 minute.
- Statistics:
Average,Sum,Minimum,Maximum,SampleCount, percentiles likep99. - Retention: rolls up automatically: sub-minute data for 3 hours, 1-minute for 15 days, 5-minute for 63 days, 1-hour for 15 months.
aws cloudwatch put-metric-data --namespace MyApp --metric-name OrdersFailed --value 1 --dimensions Env=prod
More on Kubernetes Monitoring, Scale & Cloud
What is kube-prometheus-stack and what does it install?BeginnerWhat CRDs does the Prometheus Operator provide?IntermediateHow does the Prometheus Operator decide which ServiceMonitors to load?IntermediateWhich cAdvisor container memory metric should you watch, and why?IntermediateHow do metrics-server and the custom/external metrics APIs relate to HPA?IntermediateWhich kube-state-metrics metrics do you use most?Beginner