Skip to content

Commit f616aa2

Browse files
authored
Merge pull request #254 from scouter-contrib/development
Development - 2.6.3
2 parents 6f4a7ab + 47648f0 commit f616aa2

File tree

11 files changed

+56
-20
lines changed

11 files changed

+56
-20
lines changed

docker/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PAPER_VERSION=2.6.2-a
1+
PAPER_VERSION=2.6.3

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ RUN mkdir -p /var/www;
77
COPY default.conf /etc/nginx/conf.d/default.conf
88
## install
99
WORKDIR /var/www
10-
RUN apk add -U tzdata wget unzip;cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime; wget ${INSTALL_URL};unzip scouter-paper-v${PAPER_VERSION}.zip
10+
RUN apk add -U tzdata wget unzip;cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime; wget ${INSTALL_URL};unzip scouter-paper-v${PAPER_VERSION}.zip;rm -f scouter-paper-v${PAPER_VERSION}.zip

docker/Dockerfile-Dev

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM nginx:1.17.0-alpine
2+
## url setting
3+
LABEL maintainer="[email protected]"
4+
ARG PAPER_VERSION=${PAPER_VERSION:-2.5.0}
5+
RUN mkdir -p /var/www;
6+
COPY default.conf /etc/nginx/conf.d/default.conf
7+
WORKDIR /var/www
8+
COPY scouter-paper.zip ./
9+
## install
10+
RUN apk add -U tzdata wget unzip;cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime; wget ${INSTALL_URL};unzip scouter-paper.zip;rm -f scouter-paper.zip

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
scouter-paper:
44
build :
55
context : .
6-
dockerfile: Dockerfile
6+
dockerfile: Dockerfile-Dev
77
args:
88
- PAPER_VERSION=${PAPER_VERSION}
99
image : scouterapm/scouter-paper:${PAPER_VERSION}

src/App.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ class App extends Component {
357357
server.name = server.protocol + "://" + server.address + ":" + server.port
358358
});
359359
}
360+
const paramXlogClassicMode = common.getParam(this.props,"xlogClassicMode");
361+
if(paramXlogClassicMode && ( paramXlogClassicMode === 'Y' || paramXlogClassicMode === 'N')){
362+
config.others.xlogClassicMode = paramXlogClassicMode;
363+
}
364+
360365

361366
this.props.setConfig(config);
362367
if (localStorage) {

src/common/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// local storage access
22
import moment from "moment";
33
import {Dictionary, DictType} from "./dictionary";
4-
export const version = "2.6.2";
4+
export const version = "2.6.3";
55

66
export function getData(key) {
77
let ls = null;

src/components/Menu/InstanceSelector/InstanceSelector.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
}
233233

234234
.instance-selector .instance-selector-content .list-content {
235-
height: calc(100% - 30px);
235+
height: calc(100% - 83px);
236236
position: absolute;
237237
top: 30px;
238238
overflow-y: auto;

src/components/Paper/LineChart/Line.js

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -165,21 +165,27 @@ class Line extends Component {
165165

166166
let instanceMetricCount = {};
167167
let peakData = [];
168-
for (let counterKey in data.counters) {
169-
let thisOption = data.box.option.filter((d) => {return d.counterKey === counterKey})[0];
170-
if(thisOption){
171-
switch(data.options.type){
172-
case 'STACK AREA':
173-
this.stackAreaPaint(thisOption,counterKey,data);
174-
break;
175-
default :
176-
//- LINE,LINEFILL
177-
this.linePlot(data,thisOption,counterKey,instanceMetricCount,peakData);
168+
try {
169+
for (let counterKey in data.counters) {
170+
let thisOption = data.box.option.filter((d) => {
171+
return d.counterKey === counterKey
172+
})[0];
173+
if (thisOption) {
174+
switch (data.options.type) {
175+
case 'STACK AREA':
176+
this.stackAreaPaint(thisOption, counterKey, data);
177+
break;
178+
default :
179+
//- LINE,LINEFILL
180+
this.linePlot(data, thisOption, counterKey, instanceMetricCount, peakData);
181+
}
178182
}
179183
}
184+
//-peakpaint
185+
this.peakPaint(data.options.type, peakData);
186+
}catch (e) {
187+
console.error(e);
180188
}
181-
//-peakpaint
182-
this.peakPaint(data.options.type,peakData);
183189
}
184190
this.moveTooltip();
185191

src/components/Paper/XLog/XLog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ class XLog extends Component {
505505
context.drawImage(this.graph._tempCanvas, -pixel, 0, canvas.width, canvas.height);
506506
};
507507
isClassMode =()=>{
508-
return this.props.box.values.showClassicMode === "Y";
508+
return this.props.config.others.xlogClassicMode === "Y" || this.props.box.values.showClassicMode === "Y";
509509
};
510510
graphInit = () => {
511511
let that = this;

src/components/Settings/Settings.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,7 @@ class Settings extends Component {
10431043
</div>
10441044
</div>
10451045
</div>
1046+
10461047
</div>
10471048
</div>
10481049

@@ -1072,6 +1073,19 @@ class Settings extends Component {
10721073
</select>
10731074
</div>
10741075
</div>
1076+
<div className="row">
1077+
<div className="label">
1078+
<div>XLOG CLASSIC MODE</div>
1079+
</div>
1080+
<div className="input">
1081+
<select value={this.state.config.others.xlogClassicMode} onChange={this.onChangeOthers.bind(this, "xlogClassicMode")} disabled={!this.state.edit}>
1082+
{["Y","N"].map((d, i) => {
1083+
return <option key={i} value={d}>{d}</option>
1084+
})}
1085+
</select>
1086+
</div>
1087+
</div>
1088+
10751089
</div>
10761090
</div>
10771091
{this.state.edit &&

0 commit comments

Comments
 (0)