小编Tom*_*der的帖子

ec2_metric_alarm ansible模块中的报警动作定义

我正在尝试设置一个云观察警报器ansible ec2_metric_alarm模块,我不知道如何设置它发送警报的电子邮件

代码是

- name: add alarm
  ec2_metric_alarm:
    state: present
    region: eu-west-1
    name: "LoadAverage"
    metric: "LoadAverage"
    statistic: Average
    comparison: ">"
    threshold: 3.0
    evaluation_periods: 3
    period: 60
    unit: "None"
    description: "Load Average"
    dimensions: {'Role':{{itme[0]}}, Node:{{item[1]}} }
    alarm_actions: ["action1","action2"]
Run Code Online (Sandbox Code Playgroud)

是什么语法或我该怎么做来表达我希望它发送电子邮件alarm_actions

amazon-web-services ansible

10
推荐指数
1
解决办法
2138
查看次数

标签 统计

amazon-web-services ×1

ansible ×1