Skip to content

Commit 043978b

Browse files
authored
Merge pull request #12 secondary axis for Send/receive rate Issue-11
2 parents de020a2 + 77b4210 commit 043978b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apamax/log_analyzer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1830,9 +1830,12 @@ def lowKeyChartLink(chartid):
18301830
self.writeOverviewHTMLForAllFiles(self.overviewHTML, **extra)
18311831

18321832
CHARTS = { # values are (mostly) for dygraph config
1833-
'rates':{'heading':'Send/receive rate', 'ylabel':'Events /sec',
1833+
'rates':{'heading':'Send/receive rate',
1834+
'ylabel':'Received events /sec',
1835+
'y2label':'Sent events /sec',
18341836
'labels':['rx /sec', 'rx /sec 1min avg', 'tx /sec', 'tx /sec 1min avg'],
18351837
'colors':['red', 'pink', 'teal', 'turquoise'], # red for received/input side; teal for transmitted/output side
1838+
'series': {'tx /sec':{'axis':'y2'}, 'tx /sec 1min avg':{'axis':'y2'}},
18361839
'labelsKMB':True, # for big numbers this works better than exponential notation
18371840
},
18381841
'queues':{'heading':'Correlator queues and consumers',

0 commit comments

Comments
 (0)