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
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
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
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
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
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
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
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
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
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
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
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
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
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