[Openstack] Ceilometer: alarm not generating

m.channappa.negalur at accenture.com m.channappa.negalur at accenture.com
Wed Mar 19 05:56:07 UTC 2014


Hello Mike/Bill,

Thanks for your reply.

@Bill: ceilometer statistics -m cpu --period 60  shows the output (huge data)

   | 0.0      | 2014-03-18T02:24:54        | 2014-03-18T02:24:54        |
| 60     | 2014-03-18T02:34:20 | 2014-03-18T02:35:20 | 1     | 1.29465e+13   | 1.29465e+13   | 1.29465e+13   | 1.29465e+13       | 0.0      | 2014-03-18T02:34:54        | 2014-03-18T02:34:54        |
| 60     | 2014-03-18T02:44:20 | 2014-03-18T02:45:20 | 1     | 1.294736e+13  | 1.294736e+13  | 1.294736e+13  | 1.294736e+13      | 0.0      | 2014-03-18T02:44:54        | 2014-03-18T02:44:54        |
| 60     | 2014-03-18T02:54:20 | 2014-03-18T02:55:20 | 1     | 1.29481e+13   | 1.29481e+13   | 1.29481e+13   | 1.29481e+13       | 0.0      | 2014-03-18T02:54:54        | 2014-03-18T02:54:54        |
| 60     | 2014-03-18T05:46:20 | 2014-03-18T05:47:20 | 1     | 0.0           | 0.0           | 0.0           | 0.0               | 0.0      | 2014-03-18T05:46:24        | 2014-03-18T05:46:24        |
| 60     | 2014-03-18T05:50:20 | 2014-03-18T05:51:20 | 1     | 0.0           | 0.0           | 0.0           | 0.0               | 0.0      | 2014-03-18T05:50:56.553000 | 2014-03-18T05:50:56.553000 |
+--------+---------------------+---------------------+-------+---------------+---------------+---------------+-------------------+----------+----------------------------+----------------------------+
root at controller:/var/log/ceilometer#

@Mike:  as you can see from the below output that I am able to create alarms, but I would like to know where these logs are getting generated after alarm triggered ? I have mentioned ‘log://’.

But there is nothing in my logfile:




root at controller:/var/log/ceilometer# ceilometer alarm-threshold-create --name lowcpuutlization --project-id 536518d5b38d4f3e9dcab26403d4d6e8 --user-id admin --description Threshholdvalue --state alarm --enabled True --alarm-action 'log://' --meter-name cpu --period 60 --evaluation-periods 1  --statistic avg --comparison-operator 'lt' --threshold 30 --repeat-actions True     +---------------------------+------------------------------------------------------------------+
| Property                  | Value                                                            |
+---------------------------+------------------------------------------------------------------+
| alarm_actions             | [u'log://']                                                      |
| user_id                   | admin                                                            |
| name                      | lowcpuutlization                                                 |
| enabled                   | True                                                             |
| rule                      | {u'meter_name': u'cpu', u'evaluation_periods': 1, u'period': 60, |
|                           | u'statistic': u'avg', u'threshold': 30.0, u'query': [],          |
|                           | u'comparison_operator': u'lt'}                                   |
| alarm_id                  | 094fa622-b1f4-4b16-adf4-024ce89728e2                             |
| state                     | alarm                                                            |
| insufficient_data_actions | []                                                               |
| repeat_actions            | True                                                             |
| ok_actions                | []                                                               |
| project_id                | 536518d5b38d4f3e9dcab26403d4d6e8                                 |
| type                      | threshold                                                        |
| description               | Threshholdvalue                                                  |
+---------------------------+------------------------------------------------------------------+
root at Tcontroller:/var/log/ceilometer# ceilometer alarm-list                                                                   +------------------+----------------------+-------------------+---------+------------+--------------------------------------+----------------------------------+----------------------------------+
| Name             | Description          | State             | Enabled | Continuous | Alarm ID                             | User ID                          | Project ID                       |
+------------------+----------------------+-------------------+---------+------------+--------------------------------------+----------------------------------+----------------------------------+
| cpu_high_going   | instance running hot | insufficient data | True    | False      | f8718b08-4155-4477-b216-d81013dc5a8f | 2371a648e9fc415b8e9601e7acd503d8 | 536518d5b38d4f3e9dcab26403d4d6e8 |
| cpuutlization    | Threshholdvalue      | insufficient data | True    | True       | 0027e9f1-be4e-4088-8c2e-7febf9923453 | admin                            | 536518d5b38d4f3e9dcab26403d4d6e8 |
| lowcpuutlization | Threshholdvalue      | alarm             | True    | True       | 094fa622-b1f4-4b16-adf4-024ce89728e2 | admin                            | 536518d5b38d4f3e9dcab26403d4d6e8 |
| memory_over_load | Threshhold_value     | insufficient data | True    | False      | 6133d8de-670d-4c64-996b-930c9c843a2c | admin                            | 536518d5b38d4f3e9dcab26403d4d6e8 |
+------------------+----------------------+-------------------+---------+------------+--------------------------------------+----------------------------------+----------------------------------+
root at Tcontroller:/var/log/ceilometer#

Log file:
root at Tcontroller:/var/log/ceilometer# tail -f ceilometer-alarm-notifier.log ceilometer-alarm-evaluator.log


its empty ☹


From: Mike Spreitzer [mailto:mspreitz at us.ibm.com]
Sent: Tuesday, March 18, 2014 9:58 PM
To: openstack at lists.openstack.org
Subject: Re: [Openstack] Ceilometer: alarm not generating

Also try selecting for CPU<95% and apply no load; this will tell you whether the problem is about getting any data/evaluations/notifications at all or something else.

Regards,
Mike



From:        Bill Arnold/Watson/IBM at IBMUS
To:        <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>,
Date:        03/18/2014 12:17 PM
Subject:        Re: [Openstack] Ceilometer:  alarm not generating
________________________________



Do you mean to use the cpu meter not cpu_util?
Also, there is no filtering so the statistics query done by the alarm evaluator would return information for all vms.
Try (roughly)
ceilometer statistics -m cpu --period 60

-Bill Arnold
[Inactive hide details for ---03/18/2014 03:24:34 AM---Hello All, I have configured Havana set up on Ubuntu 12.04 with Ceilomete]---03/18/2014 03:24:34 AM---Hello All, I have configured Havana set up on Ubuntu 12.04 with Ceilometer.

From: <m.channappa.negalur at accenture.com<mailto:m.channappa.negalur at accenture.com>>
To: <openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>>,
Date: 03/18/2014 03:24 AM
Subject: [Openstack] Ceilometer:  alarm not generating
________________________________



Hello All,
I have configured Havana set up on Ubuntu 12.04 with Ceilometer.

Ceilometer is not producing any alarm even though condition is met , Below is the detail

root at controller:/var/log/ceilometer# ceilometer alarm-threshold-create --name cpuutlization --project-id 536518d5b38d4f3e9dcab26403d4d6e8 --user-id admin --description Threshholdvalue --state alarm --enabled True --alarm-action 'log://' --meter-name cpu --period 60 --evaluation-periods 1  --statistic avg --comparison-operator 'gt' --threshold 30 --repeat-actions True
+---------------------------+------------------------------------------------------------------+
| Property                  | Value                                                            |
+---------------------------+------------------------------------------------------------------+
| alarm_actions             | [u'log://']                                                      |
| user_id                   | admin                                                            |
| name                      | cpuutlization                                                    |
| enabled                   | True                                                             |
| rule                      | {u'meter_name': u'cpu', u'evaluation_periods': 1, u'period': 60, |
|                           | u'statistic': u'avg', u'threshold': 30.0, u'query': [],          |
|                           | u'comparison_operator': u'gt'}                                   |
| alarm_id                  | eb56440e-2510-4be3-80b6-dfbd7262cfb2                             |
| state                     | alarm                                                            |
| insufficient_data_actions | []                                                               |
| repeat_actions            | True                                                             |
| ok_actions                | []                                                               |
| project_id                | 536518d5b38d4f3e9dcab26403d4d6e8                                 |
| type                      | threshold                                                        |
| description               | Threshholdvalue                                                  |
+---------------------------+------------------------------------------------------------------+

I launched my stack and using stress command I increased cpu load , according to above condition once my condition met there should be some logs in my  ceilometer-alarm-evaluator.log ceilometer-alarm-notifier.log …but nothing is there in my log ..

Is there any addition configurations need to be done ..?

Regards,
Malleshi C N



________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140319/1089cf74/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 105 bytes
Desc: image001.gif
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140319/1089cf74/attachment.gif>


More information about the Openstack mailing list