Customization of emitted notification using templates

Registered by Haneef Ali

Monasca by default supports EMAIL, PAGERDUTY, and WEBHOOK notification. As of now the notification format is hardcoded in the code. Operators want to have different formats for notification. Example, for email notificaiton a typical installation may want to customize the header, footer, body contents. Now there is no way to do that without code change. This blueprint is to allow customization of notification using jinja2 templates and yaml file. Operators can change the yaml file to customize the notification format without changing the code

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Haneef Ali
Direction:
Needs approval
Assignee:
Haneef Ali
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Roland Hochmuth
Completed by
Roland Hochmuth

Related branches

Sprints

Whiteboard

An implementation for HipChat: https://review.openstack.org/#/c/349097/

Example:
   For email we need
        1) sender address
        2) Subject
        3) Content

Of which Subject and Content varies from Operator to operator, and some operators want to add additional footer to the contents. So a typical customization will yam file will look like

Email_format:
     email_content_type : html
     subject : Alarrm recieved for {{ notification.alarm_name }} with severity {{ notification.severity}}
     content: |
                .......
                .......
                ......

Gerrit topic: https://review.openstack.org/#q,topic:customize-notification-format,n,z

Addressed by: https://review.openstack.org/349097
    Add custom formatting options for HipChat

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.