Add new cluster policy for local API checks

Change-Id: I18a505f90950385fcb8c51359adc4255d2837425
Closes-Bug: #1634503
This commit is contained in:
Swann Croiset 2016-10-25 10:30:26 +02:00
parent 701811f782
commit bc62f5eeae
2 changed files with 49 additions and 8 deletions

View File

@ -103,6 +103,46 @@ lma_collector:
function: percent
- status: okay
# A policy which is typically used for stateless clusters
availability_of_members:
- status: down
trigger:
logical_operator: or
rules:
- function: count
arguments: [ okay ]
relational_operator: '=='
threshold: 0
- status: critical
trigger:
logical_operator: and
rules:
- function: count
arguments: [ okay ]
relational_operator: '=='
threshold: 1
- function: count
arguments: [ critical, down ]
relational_operator: '>'
threshold: 1
- status: warning
trigger:
logical_operator: or
rules:
- function: percent
arguments: [ okay ]
relational_operator: '<'
threshold: 100
- status: okay
trigger:
logical_operator: or
rules:
- function: percent
arguments: [ okay ]
relational_operator: '=='
threshold: 100
- status: unknown
gse_cluster_service:
input_message_types:
- afd_service_metric
@ -212,7 +252,7 @@ lma_collector:
members:
- vip
nova-api-endpoint:
policy: majority_of_members
policy: availability_of_members
group_by: hostname
members:
- endpoint
@ -278,7 +318,7 @@ lma_collector:
# Cinder V2 backends are in fact the same as the Cinder backends
- vip
cinder-api-endpoint:
policy: majority_of_members
policy: availability_of_members
group_by: hostname
members:
- endpoint
@ -304,7 +344,7 @@ lma_collector:
members:
- vip
neutron-api-endpoint:
policy: majority_of_members
policy: availability_of_members
group_by: hostname
members:
- endpoint
@ -347,7 +387,7 @@ lma_collector:
members:
- vip
keystone-public-api-endpoint:
policy: majority_of_members
policy: availability_of_members
group_by: hostname
members:
- endpoint
@ -370,7 +410,7 @@ lma_collector:
members:
- vip
glance-api-endpoint:
policy: majority_of_members
policy: availability_of_members
group_by: hostname
members:
- endpoint
@ -391,7 +431,7 @@ lma_collector:
members:
- vip
heat-api-endpoint:
policy: majority_of_members
policy: availability_of_members
group_by: hostname
members:
- endpoint
@ -406,7 +446,7 @@ lma_collector:
members:
- vip
heat-cfn-api-endpoint:
policy: majority_of_members
policy: availability_of_members
group_by: hostname
members:
- endpoint
@ -444,7 +484,7 @@ lma_collector:
# Swift S3 backends are in fact the same as the Swift backends
- vip
swift-api-endpoint:
policy: majority_of_members
policy: availability_of_members
group_by: hostname
members:
- endpoint

View File

@ -96,5 +96,6 @@ define lma_collector::gse_cluster_filter (
ensure => present,
path => "${lua_modules_dir}/${topology_file}.lua",
content => template('lma_collector/gse_topology.lua.erb'),
notify => Class['lma_collector::service::metric']
}
}