tomcat jmx test

This commit is contained in:
geek 2017-11-03 15:19:04 +09:00
parent 797e05d7fe
commit 6984bfa968

View File

@ -47,7 +47,6 @@ export class TomcatMetric extends React.Component<Props, State> {
if (data.active && data.payload) {
return (
<div style={{ backgroundColor: 'white', opacity: 0.7, border: '1px solid black', padding: '4px' }}>
<p><b>{`Total Usage : ${data.payload[0].value}%`}</b></p>
<p>{`MaxThread : ${data.payload[0].payload.maxThread}`}</p>
<p>{`CurrentThread : ${data.payload[0].payload.currentThread}`}</p>
<p>{`BusyThread : ${data.payload[0].payload.busyThread}`}</p>
@ -74,8 +73,8 @@ export class TomcatMetric extends React.Component<Props, State> {
<Tooltip content={this.showTooltipData.bind(this)} />
<Legend />
<ReferenceLine y={9000} label='Warning' stroke='red' />
<Line type='monotone' dataKey='current thread' stroke='#8884d8' unit='jiffies' activeDot={{ r: 8 }} />
<Line type='monotone' dataKey='busy thread' stroke='#42454a' unit='jiffies' activeDot={{ r: 8 }} />
<Line type='monotone' dataKey='currentThread' stroke='#8884d8' unit='jiffies' activeDot={{ r: 8 }} />
<Line type='monotone' dataKey='busyThread' stroke='#42454a' unit='jiffies' activeDot={{ r: 8 }} />
</LineChart>
</div>
);