# Prometheus for the lab (lesson 8.3), with its scrape configuration and alert rules built in.
FROM prom/prometheus:v3.15.0
COPY prometheus.yml alerts.yml /etc/prometheus/
# rules.d/ takes extra rule files at run time (module 8, exercise 2); a SIGHUP reloads them.
USER root
RUN mkdir -p /etc/prometheus/rules.d && chown nobody /etc/prometheus/rules.d
USER nobody
