Links#
1. Scope#
这个 dashboard 只使用 YACE 从 CloudWatch 采集到 VictoriaMetrics 的 AWS 指标。
datasource:
Prometheus / VictoriaMetrics
metrics:
aws_ec2_*
aws_ebs_*
not included:
node_exporter OS memory / filesystem / process metrics2. YACE Config#
apiVersion: v1alpha1
sts-region: ap-northeast-1
discovery:
jobs:
- type: AWS/EC2
regions: [ap-northeast-1]
customTags:
- key: environment
value: uat
period: 300
length: 600
nilToZero: true
metrics:
- name: StatusCheckFailed
statistics: [Maximum]
- name: StatusCheckFailed_Instance
statistics: [Maximum]
- name: StatusCheckFailed_System
statistics: [Maximum]
- name: CPUUtilization
statistics: [Average]
- name: CPUCreditBalance
statistics: [Average]
- name: CPUSurplusCreditsCharged
statistics: [Sum]
- name: NetworkIn
statistics: [Sum]
- name: NetworkOut
statistics: [Sum]
- type: AWS/EBS
regions: [ap-northeast-1]
customTags:
- key: environment
value: uat
period: 300
length: 600
nilToZero: true
metrics:
- name: VolumeQueueLength
statistics: [Average]
- name: BurstBalance
statistics: [Average]
- name: VolumeReadOps
statistics: [Sum]
- name: VolumeWriteOps
statistics: [Sum]
- name: VolumeReadBytes
statistics: [Sum]
- name: VolumeWriteBytes
statistics: [Sum]3. Dashboard Rows#
| Row | Panels |
|---|---|
| Overview | status check, CPU utilization, network in/out |
| Drilldown | instance/system status check split, EBS IOPS, EBS throughput |
| Capacity | CPU credit balance, surplus credits charged, EBS burst balance |
| Debug | EBS queue length and per-volume pressure |
4. Verify#
{__name__=~"aws_ec2_.*"}
{__name__=~"aws_ebs_.*"}