diff --git a/Dockerfile b/Dockerfile index 1c41d4f..4b4514a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ # Stage 1: Build executable FROM golang:1.12-alpine as builder - + +LABEL maintainer="Karthikeyan Govindaraj " + WORKDIR /go/src/github.com/gkarthiks/container-resource-exporter COPY container_resource_exporter.go . @@ -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" ] \ No newline at end of file diff --git a/README.md b/README.md index 66d6f02..4ccc6d2 100644 --- a/README.md +++ b/README.md @@ -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).