Commit 62ab7aa 1 parent 13a53c9 commit 62ab7aa Copy full SHA for 62ab7aa
File tree 6 files changed +27
-5
lines changed
tests/correctness/Cor_018
6 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 1
1
3.7.dev
2
2
-------
3
- - TODO
3
+ - It is not longer required for the prefix in userStatusLines to end with a ":".
4
4
5
5
3.6
6
6
---
Original file line number Diff line number Diff line change @@ -78,8 +78,9 @@ To do this create a .json configuration file containing a "userStatusLines" dici
78
78
{
79
79
"userStatusLines":{
80
80
81
- // This is for a typical application-defined status line. Note that any text inside [...] brackets (
82
- // typically the monitor instance id) is ignored.
81
+ // This is for a typical application-defined status line. Note that any number (or text) inside [...] brackets (
82
+ // typically the monitor instance id) is ignored. This is matched against the "message" part of the log line,
83
+ // which follows the first " - " in the line (except for [apama-ctrl] messages which have an extra <apama-ctrl> prefix)
83
84
"com.mycompany.MyMonitor [1] MyApplication Status:": {
84
85
// This prefix is added to the start of each alias to avoid clashes with other status KPIs
85
86
"keyPrefix":"myApp.",
Original file line number Diff line number Diff line change @@ -2229,8 +2229,6 @@ def main(self, args):
2229
2229
# sanity check it
2230
2230
columns = {k or COLUMN_DISPLAY_NAMES [k ] for k in COLUMN_DISPLAY_NAMES }
2231
2231
for userStatusPrefix , userStatus in v .items ():
2232
- if not userStatusPrefix .endswith (':' ): raise UserError ('userStatus prefixes should end with a ":"' )
2233
-
2234
2232
for k , alias in userStatus ['key:alias' ].items ():
2235
2233
alias = userStatus ['keyPrefix' ]+ (alias or k )
2236
2234
if alias in columns : raise UserError (f"User status line '{ userStatusPrefix } ' contains display name '{ alias } ' which is already in use; consider using keyPrefix to ensure this status line doesn't conflict with display names from others" )
Original file line number Diff line number Diff line change 1
1
{"userStatusLines" :{
2
2
3
+
4
+
3
5
"com.mycompany.MyMonitor [1] MyApplication Status:" : {
4
6
"keyPrefix" :" myApp." ,
5
7
"key:alias" :{
8
10
"kpi3" :" "
9
11
}},
10
12
13
+ // since we munge the message for [apama-ctrl] lines we have a slightly different prefix needed
14
+ "<apama-ctrl> com.apama.in_c8y.proxy.CepProxyServlet.run - ProxyStatus: addr=192.168.138.64 " : {
15
+ "keyPrefix" :" apama-ctrl.192.168.138.64." ,
16
+ "key:alias" :{
17
+ "started" :" " ,
18
+ "completed" :" "
19
+ }},
20
+ "<apama-ctrl> com.apama.in_c8y.proxy.CepProxyServlet.run - ProxyStatus: addr=192.168.146.0 " : {
21
+ "keyPrefix" :" apama-ctrl.192.168.146.0." ,
22
+ "key:alias" :{
23
+ "started" :" " ,
24
+ "completed" :" "
25
+ }},
26
+
11
27
"JMS Status:" : {
12
28
"keyPrefix" :" jms." ,
13
29
"key:alias" :{
Original file line number Diff line number Diff line change 182
182
2020-06-12 16:06:11.534 INFO [47556:Status] - JMSReceiver myConnection-receiver-apama-queue-01: rx=4 rRate=0 rWindow=97 rRedel=0 rMaxDeliverySecs=0.0 msgErrors=1 rDupsDet=1 perSourceDupIds=3 timeExpiryDupIds=0
183
183
2020-06-12 16:06:11.534 INFO [47556:Status] - JMSReceiver myConnection-receiver-apama-topic-01: rx=0 rRate=0 rWindow=100 rRedel=0 rMaxDeliverySecs=0.0 msgErrors=0 rDupsDet=0 perSourceDupIds=0 timeExpiryDupIds=0
184
184
2020-06-12 16:06:11.534 INFO [47556] - Persistence Status: numSnapshots=42 lastSnapshotTime=624772 snapshotWaitTimeEwmaMillis=0.03 commitTimeEwmaMillis=194.34 lastSnapshotRowsChangedEwma=93
185
+ [apama-ctrl] 2020-06-17 20:15:47.342 INFO [Thread-5] com.apama.in_c8y.proxy.CepProxyServlet.run - ProxyStatus: addr=192.168.146.0 started=5 completed=3
186
+ [apama-ctrl] 2020-06-17 20:15:47.342 INFO [Thread-5] com.apama.in_c8y.proxy.CepProxyServlet.run - ProxyStatus: addr=192.168.138.64 started=2 completed=2
187
+ [apama-ctrl] 2020-06-17 20:15:47.342 INFO [Thread-5] com.apama.in_c8y.proxy.CepProxyServlet.run - ProxyStatus: addr=192.168.99.0 started=17 completed=17
185
188
2020-06-12 16:06:11.600 CRIT [33128] - test.Test [2] Some sample EPL output
186
189
2020-06-12 16:06:12.601 CRIT [33128] - test.Test [2] Some sample EPL output
187
190
2020-06-12 16:06:13.600 CRIT [14100] - test.Test [2] Some sample EPL output
Original file line number Diff line number Diff line change 1
1
myApp.kpi1=1585
2
2
myApp.kpi2AliasWithUnits=80.2
3
3
myApp.kpi3='abc def'
4
+ apama-ctrl.192.168.138.64.started=2
5
+ apama-ctrl.192.168.138.64.completed=2
6
+ apama-ctrl.192.168.146.0.started=5
7
+ apama-ctrl.192.168.146.0.completed=3
4
8
jms.s=senders=1
5
9
jms.r=receivers=2
6
10
jms.rx /sec=0
You can’t perform that action at this time.
0 commit comments