And we have mentioned below the steps we followed for configuring the advanced email alerts.
We have mentioned the steps below for enabling the advanced email alerts.
IN CME:
In Pulse application:
And configured the following options.
- In CME, For the pulse application, under option, we need to select the pulse section. And we need to enable the following condition.
enable_advanced_alerts Ă True
And the following alert tab are getting populated in the pulse application. After we restart the application.
- In CME, For the pulse application, In the option, we need to add the following application sections and configuration.
- We need to create new section layout-watcher and we need to add the following options
- port = 50051
- enabled = true
- db_polling_interval = 5000
We need to create the new section widget-watcher and we need to add the following options
- Port=50052
- enabled=true
- db_polling_interval=5000
We need to create the new section measure-watcher and we need to add the following options.
- Port=50053
- enabled=true
- db_polling_interval=5000
We need to create the new section pulse-user-permissions and we need to add the following options
- Port=50054
- enabled=true
- cache_max_size = 10000
- cache_expire_timeout= 1200
And we need to click apply to save the changes.
In Installation Folder:
In Pulse Installation Folder:
And in pulse installation folder, we have alert processor folder, inside the folder we have alertprocessor.properties file.
And we need to configure the required options.
1.AlertProcessor.Properties
# Directory used by aeron driver. On linux it is better to use a directory inside /dev/shm
aeron.driver.directory= We need to create the new folder and give it as the aeron directory.
In our lab, we have given, C:\Aeron_1
## Template used to compose Alert label
#alert.template.generated_alert_label=Condition on ${depends_on_stat_names}
# Email address that will be written in "from" field of emails sent by Alert Processor
email.from= We need to give the from email address.
In our lab, we have given, email id
# Host of an SMTP server to be used to send emails
email.smtp.host= we need to give the host of email server
In our lab, we have given, smtp.gmail.com
# Port of an SMTP server to be used to send emails
email.smtp.port= We need to give the port of the smtp server
In our lab, we have given, 465.
# WidgetWatcher service instances defined by host and port pairs in a comma separated list
service.widgetwatcher.servers=localhost:50052
# WidgetWatcher reconnect interval in seconds. Default value = 10
#service.widgetwatcher.reconnect_interval=10
This properties configuration will be available by default, we need to change the localhost to our pulse application
host.
The port number will be matched with the widget watcher port number configuration.
# UserPermissions service instances defined by host and port pairs in a comma separated list
service.userpermissions.servers=localhost:50054
# Number of seconds after which an entry in user permissions cache expires. Default value = 240
#service.userpermissions.expire_cache_after_seconds=240
This properties configuration will be available by default, we need to change the localhost to our pulse application
host.
The port number will be matched with the userpermission port number configuration.
# StatServerDataProvider aeron control address. Host and port pair.
service.statserverdataprovider.aeron.control=localhost:40001
# StatServerDataProvider aeron channel full specification. Should be used if a channel with a single control specification is not enough.
# Control address option will be ignored if this option will be filled.
#service.statserverdataprovider.aeron.channel=aeron:udp?control=localhost:40001
This properties configuration will be available by default, we need to change the localhost to our pulse application
host.
The port number will be matched with the statserver dataprovider aeron control port number configuration.
# FormulaProcessor aeron control address. Host and port pair.
service.formulaprocessor.aeron.control=localhost:40002
# FormulaProcessor aeron channel full specification. Should be used if a channel with a single control specification is not enough.
# Control address option will be ignored if this option will be filled.
#service.formulaprocessor.aeron.channel=aeron:udp?control=localhost:40002
This properties configuration will be available by default, we need to change the localhost to our pulse application
host.
The port number will be matched with the formulaprocessor aeron control port number configuration.
Pulse Collector Installation Folder:
In the pulse collector installation folder, Under microservices folder, we have two configurations available for enabling the advanced alerts.
They are
- Statserver dataprovider
- Formula Processor
And we need to add the configuration for the following.
In the statserver data provider folder, we have statserverdataprovider.cfg, And we need to add the following options.
StatServerDataProvider
By default, all values in the properties will be available, we need to edit the following configurations.
[StatServerDataProvider]
# Hostname of primary StatServer
# Valid values: String
host = localhost
We need to the host of the primary statserver
# Port number of primary StatServer
# Valid values: Positive integers
port = statsserver port
We give the port of the primary statserver application
[LayoutSubscriber]
# The URI of the endpoint to connect to.
# Valid values:
# [dns:///]<host>:<port> - a hostname/port combination
# unix:<path> - the unix scheme is used to create and connect
# to unix domain sockets. The path represents
# the absolute or relative path to the desired
# socket
# ipv4:<host>:<port> - a pre-resolved ipv4 dotted decimal
# address/port combination
# ipv6:[<host>]:<port> - a pre-resolved ipv6 address/port combination
target = localhost:50051
In the place of the local host, we give the host address
# Query only layouts containing Alert Conditions.
# Valid values: true, false
# Default value: false
only_with_alert_conditions = true
We need to give as true.
[AeronPublisher]
# Aeron driver directory. Should be the same as the media driver uses.
# On linux it is better to be a directory inside /dev/shm/
# Valid values: String
# Default value: System specific
driver_directory = Same directory which we given for the aeron driver.
In our lab, we have given as C:\Aeron_1
# Multi-Destination-Cast (MDC) control address to be used for dynamically
# allocating new destination streams.
# Valid values: String in the <host>:<port> format
channel.control = localhost:40001
In the place of the local host, we give the host address.
Formula Processor:
All values will be populated automatically, And we need to edit and do some configurations. And we will mention below.
[MeasureSubscriber]
# The URI of the endpoint to connect to.
# Valid values:
# [dns:///]<host>:<port> - a hostname/port combination
# unix:<path> - the unix scheme is used to create and connect
# to unix domain sockets. The path represents
# the absolute or relative path to the desired
# socket
# ipv4:<host>:<port> - a pre-resolved ipv4 dotted decimal
# address/port combination
# ipv6:[<host>]:<port> - a pre-resolved ipv6 address/port combination
target = localhost:50053
In the place of localhost, we mention the ip address.
[AeronPublisher]
# Aeron driver directory. Should be the same as the media driver uses.
# On linux it is better to be a directory inside /dev/shm/
# Valid values: String
# Default value: System specific
driver_directory = Same directory we need to mention, as we given for aeron media driver.
In our lab, we given as C:\Aeron_1
# Multi-Destination-Cast (MDC) control address to be used for dynamically
# allocating new destination streams.
# Valid values: String in the <host>:<port> format
channel.control = localhost:40002
In the place of localhost, we mention the ip address.
[AeronSubscriber]
# Aeron driver directory. Should be the same as the media driver uses.
# On linux it is better to be a directory inside /dev/shm/
# Valid values: String
# Default value: System specific
driver_directory = Same directory we need to mention, as we given for aeron media driver.
In our lab, we given as C:\Aeron_1
[AeronSubscriber.channel]
# Multi-Destination-Cast (MDC) control address to be used for dynamically
# allocating new destination streams.
# Valid values: String in the <host>: <port> format
ssdp.control = localhost:40001
In the place of localhost, we mention the ip address.
# Local endpoint address to be used for listening incoming messages.
# Valid values: String in the <host>:<port> format
ssdp.endpoint = localhost:40102
In the place of localhost, we mention the ip address.
And in the pulse installation folder, we have four more configuration files need to be done. But in document, they have not described.
They are
- layout-watcher
- measure-watcher
- user-permissions
- widget-watcher
In layout-watcher, measure-watcher ,widget-watcher , they are asking database details.
In the User-Permissions, they are asking about cme username,password,port details.
Looking forward for your valuable suggestions. Thanks in advance
Thanks,
Anandapriyan.R