FROM fedora:38@sha256:61f921e0c7b51e162e6f94b14ef4e6b0d38eac5987286fe4f52a2c1158cc2399 AS release RUN dnf install -y https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-8.9.2-x86_64.rpm COPY debugd/metricbeat/templates/ /usr/share/constellogs/templates/ # -e enables logging to stderr # -E http.enabled=true enables http endpoint as seen in https://github.com/elastic/helm-charts/blob/main/metricbeat/templates/daemonset.yaml # --path.home and --path.data set the paths to the metricbeat binary and data directory ENTRYPOINT [ "/usr/share/metricbeat/bin/metricbeat", \ "-e", \ "-E", "http.enabled=true", \ "--path.home", "/usr/share/metricbeat", \ "--path.data", "/usr/share/metricbeat/data" \ ]