discordianfish / nginx_exporter

Simple server that scrapes nginx stats and exports them via HTTP for Prometheus consumption
MIT License
160 stars 76 forks source link

use alpine for building the docker image #6

Closed 0x46616c6b closed 7 years ago

0x46616c6b commented 8 years ago

With this approach i could reduce the image size from 21.04 MB to 14.87 MB. Also a newer Golang Version is used.

discordianfish commented 8 years ago

I wanted to migrate this to https://github.com/prometheus/busybox - D you want to give it a shot with that base image?

0x46616c6b commented 8 years ago

Sorry for the long delay. Is there any existing Exporter using busybox image?

discordianfish commented 8 years ago

@0x46616c6b Yes, all official exporters are using it. eg: https://github.com/prometheus/node_exporter/blob/master/Dockerfile#L1

0x46616c6b commented 8 years ago

And how can I reproduce the Docker build locally?

discordianfish commented 8 years ago

@0x46616c6b The images are public, you can just use it and docker build will fetch the busybox base image. You can of course also build it yourself: https://github.com/prometheus/busybox