@@ -697,6 +697,7 @@ resources:
697697 type : node.yaml
698698 properties :
699699 autoscaling : {get_param: autoscaling}
700+ metadata : {"metering.server_group": {get_param: "OS::stack_id"}}
700701 ocp_version : {get_param: ocp_version}
701702 image : {get_param: node_image}
702703 flavor : {get_param: node_flavor}
@@ -726,7 +727,6 @@ resources:
726727 ansible_public_key : {get_attr: [ansible_keys, public_key]}
727728 bastion_node : {get_attr: [bastion_host, resource.host]}
728729 system_update : {get_param: system_update}
729- metadata : {"metering.stack": {get_param: "OS::stack_id"}}
730730 extra_repository_urls : {get_param: extra_repository_urls}
731731 extra_docker_repository_urls : {get_param: extra_docker_repository_urls}
732732 all_master_nodes :
@@ -802,33 +802,43 @@ resources:
802802 scaling_adjustment : ' -1'
803803
804804 cpu_alarm_high :
805- type : OS::Ceilometer::Alarm
805+ type : OS::Aodh::GnocchiAggregationByResourcesAlarm
806806 properties :
807- meter_name : cpu_util
808- statistic : avg
809- period : 60
810- evaluation_periods : 1
807+ metric : cpu_util
811808 threshold : 50
809+ comparison_operator : gt
810+ resource_type : instance
811+ aggregation_method : mean
812+ granularity : 300
813+ evaluation_periods : 1
812814 enabled : {get_param: autoscaling}
813815 alarm_actions :
814816 - {get_attr: [scale_up_policy, alarm_url]}
815- matching_metadata : {'metadata.user_metadata.stack': {get_param: "OS::stack_id"}}
816- comparison_operator : gt
817+ query :
818+ str_replace :
819+ template : ' {"=": {"server_group": "stack_id"}}'
820+ params :
821+ stack_id : {get_param: "OS::stack_id"}
817822
818823 cpu_alarm_low :
819- type : OS::Ceilometer::Alarm
824+ type : OS::Aodh::GnocchiAggregationByResourcesAlarm
820825 properties :
821- meter_name : cpu_util
822- statistic : avg
823- period : 600
824- evaluation_periods : 1
826+ metric : cpu_util
825827 threshold : 15
828+ comparison_operator : lt
829+ resource_type : instance
830+ aggregation_method : mean
831+ granularity : 300
832+ evaluation_periods : 1
826833 enabled : {get_param: autoscaling}
827834 alarm_actions :
828835 - {get_attr: [scale_down_policy, alarm_url]}
829- matching_metadata : {'metadata.user_metadata.stack': {get_param: "OS::stack_id"}}
830- comparison_operator : lt
831-
836+ query :
837+ str_replace :
838+ template : ' {"=": {"server_group": "stack_id"}}'
839+ params :
840+ stack_id : {get_param: "OS::stack_id"}
841+
832842 bastion_port :
833843 type : OS::Neutron::Port
834844 properties :
0 commit comments