prometheus/prom/Dockerfile

15 lines
462 B
Docker

FROM prom/prometheus:latest
ADD prometheus.yml /etc/prometheus/prometheus.yml
RUN mkdir -p /etc/prometheus/targets.d
EXPOSE 9090
ENTRYPOINT [ "/bin/prometheus" ]
CMD [ "-config.file=/etc/prometheus/prometheus.yml", \
"-storage.local.path=/prometheus", \
"-web.console.libraries=/etc/prometheus/console_libraries", \
"-web.console.templates=/etc/prometheus/consoles", \
"-web.listen-address=:9090" ]