Skip to content

Commit

Permalink
refactor(): refactoring with details
Browse files Browse the repository at this point in the history
Signed-off-by: gkarthiks <[email protected]>
  • Loading branch information
gkarthiks committed Mar 12, 2019
1 parent b317d45 commit d0ccc58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Stage 1: Build executable
FROM golang:1.12-alpine as builder


LABEL maintainer="Karthikeyan Govindaraj <[email protected]>"

WORKDIR /go/src/github.com/gkarthiks/container-resource-exporter
COPY container_resource_exporter.go .

Expand All @@ -21,7 +23,5 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /cr-exporter
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /cr-exporter .

EXPOSE 9000

ENTRYPOINT [ "/cr-exporter" ]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# container-resource-exporter
![Build Type](https://img.shields.io/docker/cloud/automated/gkarthics/container-resource-exporter.svg)
![Build Status](https://img.shields.io/docker/cloud/build/gkarthics/container-resource-exporter.svg)
![License](https://img.shields.io/github/license/gkarthiks/container-resource-exporter.svg)
![Release](https://img.shields.io/github/tag-date/gkarthiks/container-resource-exporter.svg?color=Orange&label=Latest%20Release)
![Pulls](https://img.shields.io/docker/pulls/gkarthics/container-resource-exporter.svg)
![language](https://img.shields.io/badge/Language-go-blue.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/gkarthiks/container-resource-exporter)](https://goreportcard.com/report/github.com/gkarthiks/container-resource-exporter)
![License](https://img.shields.io/github/license/gkarthiks/container-resource-exporter.svg)

Container Resource Exporter (CRE) is a metrics expoerter which will provide the *container* resource `request/limit/usage` metrics data on realtime in the [Prometheus](https://prometheus.io/) format. This can be utilized to trigger a pro-active alert from the the [Prometheus Alert Manager](https://prometheus.io/docs/alerting/alertmanager).

Expand Down

0 comments on commit d0ccc58

Please sign in to comment.