-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from zmberg/grafana-dashboard
add sample grafana dashboard
- Loading branch information
Showing
10 changed files
with
1,487 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Build the manager and daemon binaries | ||
ARG BASE_IMAGE=alpine | ||
ARG BASE_IMAGE_VERION=3.17 | ||
FROM --platform=$BUILDPLATFORM golang:1.18-alpine3.17 as builder | ||
|
||
WORKDIR /workspace | ||
# Copy the Go Modules manifests | ||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
|
||
# Copy the go source | ||
COPY main.go main.go | ||
COPY internal/ internal/ | ||
COPY pkg/ pkg/ | ||
COPY vendor/ vendor/ | ||
|
||
# Build | ||
ARG TARGETOS | ||
ARG TARGETARCH | ||
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 GO111MODULE=on go build -mod=vendor -a -o kruise-state-metrics main.go | ||
|
||
ARG BASE_IMAGE | ||
ARG BASE_IMAGE_VERION | ||
FROM ${BASE_IMAGE}:${BASE_IMAGE_VERION} | ||
|
||
RUN apk add --no-cache ca-certificates=~20220614-r4 bash=~5.2.15-r0 expat=~2.5.0-r0 \ | ||
&& rm -rf /var/cache/apk/* | ||
|
||
WORKDIR / | ||
COPY --from=builder /workspace/kruise-state-metrics . | ||
ENTRYPOINT ["/kruise-state-metrics"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.