Skip to content

Commit

Permalink
Add dockerfile and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Frankie H committed Oct 8, 2017
1 parent d458494 commit 9c06dcc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:latest

RUN apk update && apk add python2 py-pip fping
COPY ./ping-exporter.py /
RUN ln -s /usr/sbin/fping /usr/bin/fping
EXPOSE 8085
CMD ["python2", "/ping-exporter.py"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ A simple python script call fping(require version 4.0) and parse the output to a

For Debian user, you can get the fping deb file from http://ftp.debian.org/debian/pool/main/f/fping/fping_4.0-1_armhf.deb

For docker user, you can build the container with the Dockerfile(based on alpine around 54M). For arm user, you can change FROM to "armhf/alpine"

PS: The script is working fine with > 40 ping target in a PI 3B.

Append the following in prometheus's config
Expand Down

0 comments on commit 9c06dcc

Please sign in to comment.