Alarm when Keystone is too slow

This patch adds a warning level alarm when the Keystone service doesn't
response fast enough.

Change-Id: Ib523e9e61204daf4b7ad271623ece88637505965
This commit is contained in:
Guillaume Thouvenin
2016-08-22 09:51:27 +02:00
parent da865a4300
commit 604541b8e7
2 changed files with 26 additions and 0 deletions

View File

@@ -622,6 +622,23 @@ lma_collector:
window: 70
periods: 0
function: max
- name: 'keystone-response-time-duration'
description: 'Keystone API is too slow'
severity: 'warning'
enabled: 'true'
trigger:
logical_operator: 'or'
rules:
- metric: openstack_keystone_http_response_times
fields:
http_method: '== GET || == POST'
http_status: '!= 5xx'
relational_operator: '>'
threshold: 0.3
window: 60
periods: 0
value: upper_90
function: max
- name: 'keystone-public-api-http-errors'
description: 'Too many 5xx HTTP errors have been detected on keystone-public-api'
severity: 'warning'
@@ -1014,6 +1031,7 @@ lma_collector:
glance-logs: ['primary-controller', 'controller']
neutron-api: ['primary-controller', 'controller']
neutron-logs: ['primary-controller', 'controller', 'compute']
keystone-response-time: ['primary-controller', 'controller']
keystone-public-api: ['primary-controller', 'controller']
keystone-admin-api: ['primary-controller', 'controller']
keystone-logs: ['primary-controller', 'controller']
@@ -1127,6 +1145,8 @@ lma_collector:
http_errors: ['neutron-api-http-errors']
neutron-logs:
error: ['neutron-logs-error']
keystone-response-time:
duration: ['keystone-response-time-duration']
keystone-public-api:
http_errors: ['keystone-public-api-http-errors']
keystone-logs:

View File

@@ -279,6 +279,11 @@ lma_collector:
group_by: member
members:
- workers
keystone-response-time:
policy: highest_severity
group_by: member
members:
- duration
keystone-public-api:
policy: highest_severity
group_by: member
@@ -613,6 +618,7 @@ lma_collector:
group_by: member
members:
- keystone-logs
- keystone-response-time
- keystone-public-api
- keystone-admin-api
- controller