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) {
|
if (data.active && data.payload) {
|
||||||
return (
|
return (
|
||||||
<div style={{ backgroundColor: 'white', opacity: 0.7, border: '1px solid black', padding: '4px' }}>
|
<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>{`MaxThread : ${data.payload[0].payload.maxThread}`}</p>
|
||||||
<p>{`CurrentThread : ${data.payload[0].payload.currentThread}`}</p>
|
<p>{`CurrentThread : ${data.payload[0].payload.currentThread}`}</p>
|
||||||
<p>{`BusyThread : ${data.payload[0].payload.busyThread}`}</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)} />
|
<Tooltip content={this.showTooltipData.bind(this)} />
|
||||||
<Legend />
|
<Legend />
|
||||||
<ReferenceLine y={9000} label='Warning' stroke='red' />
|
<ReferenceLine y={9000} label='Warning' stroke='red' />
|
||||||
<Line type='monotone' dataKey='current thread' stroke='#8884d8' unit='jiffies' activeDot={{ r: 8 }} />
|
<Line type='monotone' dataKey='currentThread' stroke='#8884d8' unit='jiffies' activeDot={{ r: 8 }} />
|
||||||
<Line type='monotone' dataKey='busy thread' stroke='#42454a' unit='jiffies' activeDot={{ r: 8 }} />
|
<Line type='monotone' dataKey='busyThread' stroke='#42454a' unit='jiffies' activeDot={{ r: 8 }} />
|
||||||
</LineChart>
|
</LineChart>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user