mirror of https://github.com/linkerd/linkerd2.git
43 lines
1.3 KiB
JavaScript
43 lines
1.3 KiB
JavaScript
import _ from 'lodash';
|
|
import LatencyOverview from './LatencyOverview.jsx';
|
|
import React from 'react';
|
|
import { rowGutter } from './util/Utils.js';
|
|
import StatPaneStat from './StatPaneStat.jsx';
|
|
import { Col, Row } from 'antd';
|
|
|
|
export default class StatPane extends React.Component {
|
|
render() {
|
|
return (
|
|
<div>
|
|
<Row gutter={rowGutter}>
|
|
<Col span={8}>
|
|
<StatPaneStat
|
|
name="Current request rate"
|
|
metric="REQUEST_RATE"
|
|
lastUpdated={this.props.lastUpdated}
|
|
timeseries={_.get(this.props.timeseries, "REQUEST_RATE", [])} />
|
|
</Col>
|
|
<Col span={8}>
|
|
<StatPaneStat
|
|
name="Current success rate"
|
|
metric="SUCCESS_RATE"
|
|
lastUpdated={this.props.lastUpdated}
|
|
timeseries={_.get(this.props.timeseries, "SUCCESS_RATE", [])} />
|
|
</Col>
|
|
</Row>
|
|
<Row>
|
|
<Col span={24}>
|
|
<div className="latency-chart-container">
|
|
<LatencyOverview
|
|
data={_.get(this.props.timeseries, "LATENCY", {})}
|
|
lastUpdated={this.props.lastUpdated}
|
|
showAxes={true}
|
|
containerClassName="latency-chart-container" />
|
|
</div>
|
|
</Col>
|
|
</Row>
|
|
</div>
|
|
);
|
|
}
|
|
}
|