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
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM golang:1.19

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY *.go ./
COPY vigor/* ./vigor/
RUN CGO_ENABLED=0 GOOS=linux go build -o /vigor-exporter

EXPOSE 9103

# Run
ENTRYPOINT ["/vigor-exporter"]
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ A (crusty) DrayTek Vigor 130 (and others) exporter for prometheus.
This can be used to scrape your Vigor modem for some connection metrics.

## Build

```
go build .
```

## Usage Information

### Run directly

```
./vigor-exporter --help
-host string
Expand All @@ -22,3 +26,17 @@ go build .

The exporter is listening on `*:9103` and provides metrics at the `/metrics`
path.

### Run with docker

```
docker build -t vigor .

docker run vigor
-host string
hostname/ip the Vigor is reachable on
-password string
password to authenticate to the Vigor
-username string
username to authenticate to the Vigor
```