Exposes your current ACT FUP usage as prometheus metrics. Scrapes the data from the ACT Portal website by using puppeteer.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.0 KiB

FROM schliflo/docker-puppeteer:1.20.0
LABEL maintainer "Nemo <docker@captnemo.in>"
ARG BUILD_DATE
ARG VCS_REF
ENV CHROME_REVISION=674921
WORKDIR /app
# Ensure that the chromium path hasn't changed (this fails the build early)
RUN ls "/usr/local/share/.config/yarn/global/node_modules/puppeteer/.local-chromium/linux-$CHROME_REVISION/chrome-linux/chrome"
COPY package.json package-lock.json /app/
RUN npm install
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Prometheus ACT Exporter" \
org.label-schema.vcs-url="https://git.captnemo.in/nemo/prometheus-act-exporter.git" \
org.label-schema.url="https://git.captnemo.in/nemo/prometheus-act-exporter" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0.0-rc1"
COPY index.js server.js prom.js *.md /app/
ENV CHROME_BIN="/usr/local/share/.config/yarn/global/node_modules/puppeteer/.local-chromium/linux-$CHROME_REVISION/chrome-linux/chrome"
ENTRYPOINT ["/usr/local/bin/node", "server.js"]
EXPOSE 3000