-
Notifications
You must be signed in to change notification settings - Fork 1
/
go-kafka-alert-uat.yml
executable file
·53 lines (53 loc) · 2.23 KB
/
go-kafka-alert-uat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
workers: 4
logFileLocation: "/var/log/go_kafka_alert.log"
log: true
kafkaConfig:
bootstrapServers: localhost:9092
kafkaTopic: go-kafka-event-stream
kafkaTopicConfig: latest
kafkaGroupId: consumerGroupOne
kafkaTimeout: 50000
webhookConfig:
appURL: http://url.
appKey: Malike
smsConfig:
twilioAccountId: Malike
twilioAuthToken: Malike
smsSender: "+15005550006"
emailConfig:
smtpServerHost: smtp.gmail.com
tls: true
smtpServerPort: 465
emailSender: Sender
emailFrom: email@from.com
emailAuthUserName: email@from.com
emailAuthPassword: password
dbConfig:
mongoHost: localhost
mongoPort: 27017
mongoDBUsername: ''
mongoDBPassword: ''
mongoDB: go_kafka_alert
collection: message
templates:
APPFLAG_API: User {{.UnmappedData.UserName}} has failed to execute service {{.UnmappedData.ServiceName}}
{{.UnmappedData.FailureCount}} times in the past {{.UnmappedData.FailureDuration}}
minutes
SERVICEHEALTH_API: Service {{.UnmappedData.ServiceName}} has failed execution {{.UnmappedData.FailureCount}}
in the past {{.UnmappedData.FailureDuration}} minutes
SUBSCRIPTION_API: Hello {{.UnmappedData.Name}}, Thanks for subscribing to {{.UnmappedData.ItemName}}
APPFLAG_SMS: User {{.UnmappedData.UserName}} has failed to execute service {{.UnmappedData.ServiceName}}
{{.UnmappedData.FailureCount}} times in the past {{.UnmappedData.FailureDuration}}
minutes
SERVICEHEALTH_SMS: Service {{.UnmappedData.ServiceName}} has failed execution {{.UnmappedData.FailureCount}}
in the past {{.UnmappedData.FailureDuration}} minutes
SUBSCRIPTION_SMS: Hello {{.UnmappedData.Name}}, Thanks for subscribing to {{.UnmappedData.ItemName}}
SERVICEHEALTH_EMAIL: "<html><head></head><body> Service {{.UnmappedData.ServiceName}}
has failed execution {{.UnmappedData.FailureCount}} in the past {{.UnmappedData.FailureDuration}}
minutes </body></html>"
SUBSCRIPTION_EMAIL: "<html><head></head><body> Hello {{.UnmappedData.Name}}, Thanks
for subscribing to {{.UnmappedData.ItemName}}. Enjoy our service. </body></html>"
REPORTATTACHED_EMAIL: "<html><head></head><body> Hello {{.UnmappedData.Name}}, Find
attached report for {{.UnmappedData.ItemName}} </body></html>"
REPORTEMBEDED_EMAIL: "{{.UnmappedData.Content}}"