Ceilometer alarm where should I look for the LOG? --alarm-action 'log://'
I am using ceilometer version 2.4.0 and openstack version 2.2.0
root@node-1:~# ceilometer --version
2.4.0
root@node-1:~# openstack --version
openstack 2.2.0
I am trying to do an alarm which has to be triggered when cpu utilization is greater then 50% for more than 60 seconds. Below is the command that I have used:
ceilometer alarm-threshold-create --name enea_cpu_anva --description "Anva instance running hot" --meter-name cpu_util --threshold 50 --comparison-operator gt --statistic avg --period 60 --evaluation-periods 1 --repeat-actions True --enabled True --alarm-action 'log://' --query resource_id=34ef4464-1c18-4b84-97cd-ed57e2ac6b91
+---------------------------+-----------------------------------------------------+
| Property | Value |
+---------------------------+-----------------------------------------------------+
| alarm_actions | ["log://"] |
| alarm_id | 7e7e9a8e-7a78-4a4e-9cc3-ff3f6dafcff2 |
| comparison_operator | gt |
| description | Anva instance running hot |
| enabled | True |
| evaluation_periods | 1 |
| exclude_outliers | False |
| insufficient_data_actions | [] |
| meter_name | cpu_util |
| name | enea_cpu_anva |
| ok_actions | [] |
| period | 60 |
| project_id | 4b1e55cab804430498ea81c2851e83aa |
| query | resource_id == 34ef4464-1c18-4b84-97cd-ed57e2ac6b91 |
| repeat_actions | True |
| severity | low |
| state | insufficient data |
| statistic | avg |
| threshold | 50.0 |
| type | threshold |
| user_id | e2d0d048bb194b5ea5b81206ba46e17f |
+---------------------------+-----------------------------------------------------+
root@node-1:~# ceilometer alarm-list
+--------------------------------------+---------------+-------------------+----------+---------+------------+---------------------------------------+---------- --------+
| Alarm ID | Name | State | Severity | Enabled | Continuous | Alarm condition | Time cons traints |
+--------------------------------------+---------------+-------------------+----------+---------+------------+---------------------------------------+----------
| 7e7e9a8e-7a78-4a4e-9cc3-ff3f6dafcff2 | enea_cpu_anva | insufficient data | low | True | True | avg(cpu_util) > 50.0 during 1 x 60s | None
I have logged on the VM instance and made CPU to have constant 90% utilization.
Please let me know where should I look for the allarm log since I can't find any notifications. The alarm was created with --alarm-action 'log://" but I don't know where it logs and from documentation I can't find it.
This is copy paste from documentation:
"
Log actions
These are a lightweight alternative to webhooks, whereby the state transition is simply logged by the alarm-notifier, and are intended primarily for testing purposes.
"
Many thanks, Andrei Varvara
Did you check the ceilometer log? Somewhat dated, but probably correct: https://wiki.openstack.org/wiki/Ceilo....