Commit Graph

38 Commits

Author SHA1 Message Date
Doug Szumski 9fb6663395 Update documentation
* Remove old yaml config file
* Provide instructions on how to run monasca-notification

Change-Id: If764e666209acbefe80be4de8743d54e371cca58
2019-01-07 09:47:23 +00:00
Nguyen Hai Truong c9ef9d9d02 trivial fix: Correct some spelling errors
Small modification to correct spelling mistake.

Change-Id: Ic7f145291dc5829cf6955b8714c87dba96e04bde
2018-11-08 01:08:05 -08:00
akhil abb315961e Enable keystone authentication with webhook notification
This commit adds functionality of sending webhook notifications to
various projects that require keystone authentications. For which user
need to set auth credentials in conf under keystone header.
By default it is disabled, which can be enabled in conf.

Change-Id: I3e773af8c3ebe0cf1d57e8fa1351b1e725a9cfa0
Partially-Implements: blueprint add-monasca-push-driver
Story: 2003105
Task: 23220
2018-08-07 22:22:15 +05:30
Jenkins fb535756d7 Merge "Added a field 'Grafana Url' in the email" 2017-09-01 09:19:03 +00:00
Georgia-Anna Farmaki 347606ac54 Added a field 'Grafana Url' in the email
Retrieve the grafana_url field from notification.yaml
and append the query for metric info and timestamp.

Unit tests for method get_link_url,
adjust existing unit tests, python3 tests.

Change-Id: Ie0e98f3df48eb68caad232e5b9293222d7c946c8
Story: 2001052
Task: 4652
2017-08-28 11:32:14 +02:00
Haruki Yamanashi 0b82639af0 Fix typo and add configuration example for Jira
Change-Id: Ic304bfff6258126a439dee58b722c773bcfa8c57
2017-07-26 09:23:58 +09:00
Johannes Grassler 387096c4d9 Do not log stack traces when out of disk
This commit silences monasca-notifications in situations where
it cannot write to its log file due to ENOSPC by preventing
the logging module from raising exceptions (recommended best
practice for production use).

The old behaviour can be restored by setting the
logging/raise_exceptions setting in the configuration file to
True (defaults to False).

Change-Id: Idbe5bdf56fb280412c34f04de8f2e2f301a7a432
Story: 2001089
Task: 4749
2017-06-28 11:40:36 +02:00
Johannes Grassler 9f721774ba Use neutral IPs/hostnames in example configuration
This commit sets any configuration fields in the example
notification.yaml containing IP addresses or host names to
127.0.0.1 or invalid host names in order to avoid overlap with
any existing host names or IP addresses.

Change-Id: I72ebe453d51cc4df0c9b762a83419305ecfcf6bf
2017-04-11 05:16:00 +00:00
Artur Basiak 722ecaa7a5 Add config option for statsd
Add new section to config file with configuration for statsd
host and port. Add modification in notification engines.
According to the monasca-agent change:
https://review.openstack.org/#/c/381417

Change-Id: I6e99bae5e50f3670ae8b4a0c7ac5af3c747bcd68
2016-12-02 07:10:52 +01:00
Haneef Ali facf67edb3 Add https proxy support for a hipchat/slack plugin
Monasca notification will be running in a controller. There
are two way to add proxy, either via system proxy or via application
settings. The problem with system settings is that we need to add
no_proxy for all the other connections which is more difficult if there
are more number of outgoing connection which doesn't require proxy. Since
hipchat/slack most probably need proxy settings, it is easy to add
proxy settings only for hipchat/slack rather than changing the system-wide
environmental settings. Operators can also use system wide setting instead
of application specific settings by not using the proxy confifg option. This
gives a choice for the operator dependening on the complexity of the
installation.

Change-Id: Id5b7000d49c6824cf78b10299fcf7a707dec501e
2016-08-16 09:35:13 -07:00
haali1 be6fb21e19 Add HipChat and Slack Notification types
This patch
   1. Supports for loading new notification types as plugins.
   2) Adds new plugins for HipChat and Slack
   3) Insert Notification types during startup

Partially-implements: blueprint notification-engine-plugin
Change-Id: I246ced3fe22a9797a3c8384f7bda166797cfac3a
2016-07-29 07:59:32 -07:00
Michael James Hoppal 79189ca811 Adding support for periodic notifications
New periodic notification engine that will take a notification send it, and then
place it back onto the periodic notification topic. Once the alarm associated
with the notification has transitioned to a state that is different from the
original state the notification is removed from the queue.

Change-Id: Ie3103a0ec30abcd8dfc53869b1c3135953aabf3a
2016-05-09 08:18:11 -06:00
bklei f333f92709 Support dynamic mysql port via config file
This is necessary in some installations to specify a non-default
mysql port (something other than 3306).  All of the other monasca
packages allow overriding this in the config file, this change
brings monasca-notification inline with the others.

Change-Id: Ibe6ffca9e5adb13e44594531358e2a8e5da46b9d
2016-03-02 09:06:24 -07:00
Michal Zielonka a82a49a1e8 Add configurable database setting (mysql, postgres, orm)
We used sqlalchemy.core for execute query for orm.
The configuration of db is based on monasca-api.
The default mode is mysql connection so we can use old configuration.

Change-Id: Iebb4d6dfca6d43298ced407178e7f9673a83a7ca
2015-08-04 22:34:57 +02:00
Joe Keen 9f0e65028f Added retry engine to notification system
Change-Id: Iea1a05c1b7336b9e3e8aeb972e0f9ba1b7f74d69
2015-02-09 11:40:02 -07:00
Joe Keen ebc1ed72d6 Refactored notification engine types
Added more test coverage for email notifications.

Moved notification methods from notification_processor to new types directory.

types/interface.py now automatically records statsd information for configured
types.

Configuration for a type is now optional.  Uncofigured types are not able to
send notifications.  Notifications that come across for unconfigured types
generate a warning.

Email notification type now explicity exits when unable to connect to an SMTP
server.

Change-Id: I213d815965761736eb3680b5e14206ba7bef7e90
2015-01-21 10:07:00 -07:00
Joe Keen 45a2411ebb Added pagerduty support to notification_processor
Refactored the tests to make pagerduty functionality more clear

Change-Id: Ie9616d8629112fc5f1f1576951a3cbe3b99218b0
2015-01-05 17:20:55 -07:00
Joe Keen f0b4f91960 Added timeout to webhook
Added a timeout keyword to requests.post that we use to send webhooks.  Updated
the tests to verify that the webhook will properly time out.

Change-Id: I27140a8c13afcd8f2e30ea1367f0bd9f4944ba36
2014-12-12 15:42:03 -07:00
Tim Kuhlman f85cc90f22 Added mysql ssl support
Change-Id: I274c58e3ebc05845bfb7992e4a2c5b68704f0e22
2014-12-03 16:12:43 -07:00
Tim Kuhlman 3d1deca139 Move from using zookeeper to track partition offsets to kafka
With kafka 0.8.1 it is now possible for non-java clients to track
offsets with kafka. Previously the code had built this using zookeeper.
This relies on kafka-python > 0.9.1

Change-Id: Ia42e713cc5d9ca61d8f8df2adc454f1e2579a229
2014-08-28 08:25:47 -06:00
Tim Kuhlman e6e54c6576 Rename to monasca, setup for tox, removed legacy bits
Removed manual tests which are no longer valid with a modern mini-mon
Removed debian creation bits all distribution is with pypi now
Minor pep8 fixes

Change-Id: I1f2fc4d0ad6375f4c39446f9627247945066e4ad
2014-07-16 15:59:00 -06:00
Tim Kuhlman 64e7d8b48f Noted multiple hosts can be used. 2014-05-27 14:40:58 -06:00
Tim Kuhlman a6ad1b1ed3 Made default config more debug friendly 2014-03-20 14:23:13 -06:00
Tim Kuhlman 2dd29d0b28 Changed ttl to seconds, made both ttl and max_lag optional 2014-03-19 13:19:06 -06:00
Tim Kuhlman 97469fa4cc Implemented offset_max_lag 2014-03-19 11:52:38 -06:00
Tim Kuhlman c025bab4c2 Added alarm ttl 2014-03-19 10:05:34 -06:00
Tim Kuhlman 789ae36e12 Added some ideas for better Fault Tolerance 2014-03-18 14:47:14 -06:00
Tim Kuhlman c8e2e5c29f Added in statsd! 2014-03-18 11:09:47 -06:00
Tim Kuhlman d9f7dac06e Added better logging 2014-03-17 11:26:34 -06:00
Tim Kuhlman 6efc44110e Added a some sample tests, fixed misc bugs.
Fixed slots in Notification meaning there is no __dict__
Changed pyodbc like formatting to that which works with mysqldb
2014-03-14 10:06:47 -06:00
Tim Kuhlman d116453f69 Re-org for packing nicely 2014-03-13 10:55:19 -06:00
Tim Kuhlman 3339b6f841 Initial email implementation 2014-03-12 11:31:57 -06:00
Tim Kuhlman b1b69a0dbe Working offset tracking. I moved all Zookeeper bits to one class run by main 2014-03-10 16:19:47 -06:00
Tim Kuhlman a8a7f4ffea Unfinished implementation of the commit tracker, alarm and notification processors 2014-03-07 17:08:39 -07:00
Tim Kuhlman 91bf693882 Added zookeeper based locking so only one process runs at a time. 2014-03-06 17:24:29 -07:00
Tim Kuhlman dd5bb8984a Initial test run of a kafka producer 2014-03-05 17:16:18 -07:00
Tim Kuhlman 332244a5a7 Initial reading from kafka. 2014-03-04 17:12:41 -07:00
Tim Kuhlman 4fc9b6a3c9 Initial structure 2014-02-27 16:55:07 -07:00