Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
bin/mtr_exporter
mtr_exporter
main
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.14.7-alpine3.12 as builder
WORKDIR /src
ENV GO111MODULE=on
COPY . /src
RUN go build -o mtr_exporter main.go && chmod +x mtr_exporter

FROM alpine:3.12
ENTRYPOINT ["/usr/local/bin/mtr_exporter"]
CMD ["-config.file", "/etc/mtr_exporter/config.yml"]
RUN apk add --no-cache mtr
COPY mtr.yaml /etc/mtr_exporter/config.yml
COPY --from=builder /src/mtr_exporter /usr/local/bin/mtr_exporter
17 changes: 17 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module github.com/Shinzu/mtr_exporter

go 1.14

require (
github.com/Shinzu/go-mtr v0.0.0-20170519133445-3a40e82ebda6
github.com/Sirupsen/logrus v0.8.8-0.20160119000032-f7f79f729e0f // indirect
github.com/beorn7/perks v0.0.0-20150223135152-b965b613227f // indirect
github.com/golang/protobuf v0.0.0-20160106020635-2402d76f3d41 // indirect
github.com/matttproud/golang_protobuf_extensions v0.0.0-20151011102529-d0c3fe89de86 // indirect
github.com/prometheus/client_golang v0.0.0-20151127182433-67994f177195
github.com/prometheus/client_model v0.0.0-20150212101744-fa8ad6fec335 // indirect
github.com/prometheus/common v0.0.0-20161220174553-6d76b79f2398
github.com/prometheus/procfs v0.0.0-20151029195050-406e5b7bfd82 // indirect
golang.org/x/sys v0.0.0-20160717071931-a646d33e2ee3 // indirect
gopkg.in/yaml.v2 v2.0.0-20150624102902-7ad95dd0798a
)
22 changes: 22 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
github.com/Shinzu/go-mtr v0.0.0-20170519133445-3a40e82ebda6 h1:Pxnw91zkH/sace8uZFL8VufZ4E4fyQVEdXa9BMyAMD8=
github.com/Shinzu/go-mtr v0.0.0-20170519133445-3a40e82ebda6/go.mod h1:hpSoOsZF/K2YfGyQper2bLOvAr5csKIGVKb5Pu/V0QA=
github.com/Sirupsen/logrus v0.8.8-0.20160119000032-f7f79f729e0f h1:9ZanmNLF/BV98J6omNjyJyWLacmhzCspi11cFG0tAhk=
github.com/Sirupsen/logrus v0.8.8-0.20160119000032-f7f79f729e0f/go.mod h1:rmk17hk6i8ZSAJkSDa7nOxamrG+SP4P0mm+DAvExv4U=
github.com/beorn7/perks v0.0.0-20150223135152-b965b613227f h1:L/FlB1krOjojJSmUaiAiOMiIdRWylhc9QcHg0vHBuzA=
github.com/beorn7/perks v0.0.0-20150223135152-b965b613227f/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/golang/protobuf v0.0.0-20160106020635-2402d76f3d41 h1:BIDtr9YECqqvixqxNnfN1Dp4dlRZB2nS68tywI+YZj4=
github.com/golang/protobuf v0.0.0-20160106020635-2402d76f3d41/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/matttproud/golang_protobuf_extensions v0.0.0-20151011102529-d0c3fe89de86 h1:b8euq5x5N/v1JqX0v2oOwj67Wz9W3lWu/YUMs/lVUK8=
github.com/matttproud/golang_protobuf_extensions v0.0.0-20151011102529-d0c3fe89de86/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/prometheus/client_golang v0.0.0-20151127182433-67994f177195 h1:lPIvXUvJroqZxgIc6elDcybTmqcD2+jbrQpGzv55Rhk=
github.com/prometheus/client_golang v0.0.0-20151127182433-67994f177195/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_model v0.0.0-20150212101744-fa8ad6fec335 h1:0E/5GnGmzoDCtmzTycjGDWW33H0UBmAhR0h+FC8hWLs=
github.com/prometheus/client_model v0.0.0-20150212101744-fa8ad6fec335/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
github.com/prometheus/common v0.0.0-20161220174553-6d76b79f2398 h1:GzsEVUW6VeFdoOmBt08Wq8OtIHFJ5xbL2Smw+Xn6dxQ=
github.com/prometheus/common v0.0.0-20161220174553-6d76b79f2398/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
github.com/prometheus/procfs v0.0.0-20151029195050-406e5b7bfd82 h1:frgDnqep7lXuK5Ti+pqluLrJw/4B4EbcIwStnzhfCLY=
github.com/prometheus/procfs v0.0.0-20151029195050-406e5b7bfd82/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
golang.org/x/sys v0.0.0-20160717071931-a646d33e2ee3 h1:ZLExsLvnoqWSw6JB6k6RjWobIHGR3NG9dzVANJ7SVKc=
golang.org/x/sys v0.0.0-20160717071931-a646d33e2ee3/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
gopkg.in/yaml.v2 v2.0.0-20150624102902-7ad95dd0798a h1:g+5jhv1DHNJos7kIS4sEd8+jAKSH9pP8AZynd85XdlI=
gopkg.in/yaml.v2 v2.0.0-20150624102902-7ad95dd0798a/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
7 changes: 2 additions & 5 deletions mtr.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
args: ["--tcp", "--port", "443"]
cycles: 10
hosts:
- name: "www.heise.de"
alias: "heise_de"
- name: "www.spiegel.de"
alias: "spiegel_de"
- name: "1.1.1.1"
alias: "one.one.one.one"
1 change: 1 addition & 0 deletions vendor/github.com/Sirupsen/logrus/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions vendor/github.com/Sirupsen/logrus/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/golang/protobuf/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/golang/protobuf/CONTRIBUTORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions vendor/github.com/prometheus/client_golang/AUTHORS.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions vendor/github.com/prometheus/client_model/AUTHORS.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions vendor/github.com/prometheus/common/AUTHORS.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions vendor/github.com/prometheus/procfs/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/golang.org/x/sys/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/golang.org/x/sys/CONTRIBUTORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/golang.org/x/sys/unix/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified vendor/golang.org/x/sys/unix/mkall.sh
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mkerrors.sh
100755 → 100644
Empty file.
62 changes: 0 additions & 62 deletions vendor/golang.org/x/sys/unix/mkpost.go

This file was deleted.

Empty file modified vendor/golang.org/x/sys/unix/mksyscall.pl
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mksysnum_linux.pl
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
100755 → 100644
Empty file.
Empty file modified vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
100755 → 100644
Empty file.
Loading