Merge pull request #91 from SigNoz/disable-options

Disables invalid CTA, updates options based on API payload
This commit is contained in:
Ankit Nayan 2021-05-10 00:10:04 +05:30 committed by GitHub
commit 5b2f985710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -188,7 +188,7 @@ class ErrorRateChart extends React.Component<ErrorRateChartProps> {
ycoordinate={this.state.ycoordinate} ycoordinate={this.state.ycoordinate}
> >
<PopUpElements onClick={this.gotoTracesHandler}>View Traces</PopUpElements> <PopUpElements onClick={this.gotoTracesHandler}>View Traces</PopUpElements>
<PopUpElements onClick={this.gotoAlertsHandler}>Set Alerts</PopUpElements> {/* <PopUpElements onClick={this.gotoAlertsHandler}>Set Alerts</PopUpElements> */}
</ChartPopUpUnique> </ChartPopUpUnique>
); );
} else return null; } else return null;

View File

@ -193,7 +193,7 @@ class LatencyLineChart extends React.Component<LatencyLineChartProps> {
> >
View Traces View Traces
</PopUpElements> </PopUpElements>
<PopUpElements onClick={this.gotoAlertsHandler}>Set Alerts</PopUpElements> {/* <PopUpElements onClick={this.gotoAlertsHandler}>Set Alerts</PopUpElements> */}
</ChartPopUpUnique> </ChartPopUpUnique>
); );
} else return null; } else return null;
@ -218,8 +218,8 @@ class LatencyLineChart extends React.Component<LatencyLineChartProps> {
borderWidth: 2, borderWidth: 2,
}, },
{ {
label: "p90 Latency", label: "p95 Latency",
data: ndata.map((s) => s.p90 / 1000000), //converting latency from nano sec to ms data: ndata.map((s) => s.p95 / 1000000), //converting latency from nano sec to ms
pointRadius: 0.5, pointRadius: 0.5,
borderColor: "rgba(227, 74, 51, 1.0)", borderColor: "rgba(227, 74, 51, 1.0)",
borderWidth: 2, borderWidth: 2,

View File

@ -177,7 +177,7 @@ class RequestRateChart extends React.Component<RequestRateChartProps> {
ycoordinate={this.state.ycoordinate} ycoordinate={this.state.ycoordinate}
> >
<PopUpElements onClick={this.gotoTracesHandler}>View Traces</PopUpElements> <PopUpElements onClick={this.gotoTracesHandler}>View Traces</PopUpElements>
<PopUpElements onClick={this.gotoAlertsHandler}>Set Alerts</PopUpElements> {/* <PopUpElements onClick={this.gotoAlertsHandler}>Set Alerts</PopUpElements> */}
</ChartPopUpUnique> </ChartPopUpUnique>
); );
} else return null; } else return null;

View File

@ -19,7 +19,7 @@ export interface servicesListItem {
export interface metricItem { export interface metricItem {
timestamp: number; timestamp: number;
p50: number; p50: number;
p90: number; p95: number;
p99: number; p99: number;
numCalls: number; numCalls: number;
callRate: number; callRate: number;