Skip to content

Commit 05ced91

Browse files
authored
Merge branch 'master' into master
2 parents 413733d + 750f43c commit 05ced91

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM golang:alpine as build-env
22

3-
RUN apk add git
4-
53
# Copy source + vendor
64
COPY . /go/src/github.com/tencentyun/qcloud-exporter
75
WORKDIR /go/src/github.com/tencentyun/qcloud-exporter
@@ -12,4 +10,8 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -v -a -ldflags
1210

1311
FROM alpine
1412
COPY --from=build-env /go/bin/qcloud_exporter /usr/bin/qcloud_exporter
13+
RUN apk update
14+
#RUN apk add git
15+
RUN apk add curl
16+
RUN apk add tcpdump
1517
ENTRYPOINT ["qcloud_exporter"]

pkg/metric/repository.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ func (repo *TcmMetricRepositoryImpl) GetSamples(s *TcmSeries, st int64, et int64
138138
} else {
139139
response, err = repo.monitorClient.GetMonitorData(request)
140140
}
141-
level.Info(repo.logger).Log("reqid",response.Response.RequestId)
142141
if err != nil {
143142
return
144143
}
@@ -191,7 +190,6 @@ func (repo *TcmMetricRepositoryImpl) listSampleByBatch(
191190
} else {
192191
response, err = repo.monitorClient.GetMonitorData(request)
193192
}
194-
level.Info(repo.logger).Log("reqid",response.Response.RequestId)
195193
if err != nil {
196194
return nil, err
197195
}

0 commit comments

Comments
 (0)