Created
April 23, 2024 17:30
-
-
Save andersonbosa/7574758d56977ae48d007be1999b2391 to your computer and use it in GitHub Desktop.
node_exporter service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
node-exporter: | |
command: ["node_exporter", "--web.listen-address", "127.0.0.1:8081"] | |
build: | |
context: ./modules/node_exporter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:edge | |
WORKDIR /bin/app | |
RUN wget https://github.com/prometheus/node_exporter/releases/download/v1.7.0/node_exporter-1.7.0.linux-amd64.tar.gz \ | |
&& tar -xzvf node_exporter-1.7.0.linux-amd64.tar.gz --directory . \ | |
&& mv -v ./node_exporter-1.7.0.linux-amd64/node_exporter /bin/node_exporter \ | |
&& chmod 777 /bin/node_exporter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment