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.
 
 
 

25 lines
664 B

FROM schliflo/docker-puppeteer:5.4.1
LABEL maintainer "Nemo <docker@captnemo.in>"
ARG BUILD_DATE
ARG VCS_REF
WORKDIR /app
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/
ENTRYPOINT ["/usr/local/bin/node", "server.js"]
EXPOSE 3000