Files
openstack-ansible/playbooks/roles/os_heat/files/templates/AWS_CloudWatch_Alarm.yaml
Matt Thompson 5865d302c6 Heat config changes for kilo
This commit does the following:

- refreshes files/environment.d/default.yaml and
  files/templates/AWS_CloudWatch_Alarm.yaml from kilo
- adds heat_max_nested_stack_depth and heat_trusts_delegated_roles
  variables (the default values of the config options these variables
  represent changed between juno and kilo and we now default to the
  kilo values while giving operators the ability to upgrade to kilo
  with the juno values)
- adds heat_profiler_hmac_key, heat_profiler_enabled, and
  heat_profiler_trace_sqlalchemy variables which control the enablement of
  osprofiler
- removes unneeded [clients_*] sections from templates/heat.conf.j2
- renames heat_clients_endpoint variable to heat_clients_endpoint
- adds heat_clients_heat_endpoint so we can set [clients_heat] to use
  externalURL rather than internalURL

Partially implements blueprint: master-kilofication

Change-Id: If445d2ad394539a13fece656cb4089b042df542a
2015-04-03 18:03:10 +00:00

88 lines
2.5 KiB
YAML

HeatTemplateFormatVersion: '2012-12-12'
Description: AWS::CloudWatch::Alarm using Ceilometer.
Parameters:
AlarmDescription:
Type: String
Default: An alarm
EvaluationPeriods:
Type: String
MetricName:
Type: String
Namespace:
Type: String
Default: system/linux
Period:
Type: String
ComparisonOperator:
Type: String
AllowedValues: [GreaterThanOrEqualToThreshold, GreaterThanThreshold,
LessThanThreshold, LessThanOrEqualToThreshold]
Statistic:
Type: String
AllowedValues: [SampleCount, Average, Sum, Minimum, Maximum]
Threshold:
Type: String
Units:
Type: String
AllowedValues: [Seconds, Microseconds, Milliseconds, Bytes, Kilobytes,
Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits,
Gigabits, Terabits, Percent, Count, Bytes/Second,
Kilobytes/Second, Megabytes/Second, Gigabytes/Second,
Terabytes/Second, Bits/Second, Kilobits/Second,
Megabits/Second, Gigabits/Second, Terabits/Second,
Count/Second, None]
Default: None
AlarmActions:
Type: CommaDelimitedList
Default: ''
OKActions:
Type: CommaDelimitedList
Default: ''
InsufficientDataActions:
Type: CommaDelimitedList
Default: ''
Dimensions:
Type: CommaDelimitedList
Default: ''
Mappings:
ComparisonOperatorMap:
LessThanOrEqualToThreshold: {Ceilometer: le}
LessThanThreshold: {Ceilometer: lt}
GreaterThanThreshold: {Ceilometer: gt}
GreaterThanOrEqualToThreshold: {Ceilometer: ge}
StatisticMap:
SampleCount: {Ceilometer: count}
Average: {Ceilometer: avg}
Sum: {Ceilometer: sum}
Minimum: {Ceilometer: min}
Maximum: {Ceilometer: max}
Resources:
__alarm__:
Type: OS::Ceilometer::Alarm
Properties:
description:
Ref: AlarmDescription
meter_name:
Ref: MetricName
period:
Ref: Period
evaluation_periods:
Ref: EvaluationPeriods
repeat_actions: true
threshold:
Ref: Threshold
alarm_actions:
Ref: AlarmActions
ok_actions:
Ref: OKActions
insufficient_data_actions:
Ref: InsufficientDataActions
statistic:
"Fn::FindInMap": [StatisticMap, {Ref: Statistic}, Ceilometer]
comparison_operator:
"Fn::FindInMap": [ComparisonOperatorMap, {Ref: ComparisonOperator}, Ceilometer]
matching_metadata:
"Fn::MemberListToMap": [Name, Value, {Ref: Dimensions}]