tomcat jmx test
This commit is contained in:
parent
797e05d7fe
commit
6984bfa968
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user