mirror of
https://github.com/nikdoof/hg612-exporter.git
synced 2025-12-27 17:49:22 +00:00
Compare commits
49 Commits
0.1.0
...
renovate/g
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
42f1acc05b | ||
| 23027c5922 | |||
| 3b145da136 | |||
| 92e47a96c8 | |||
| 853d9fc80b | |||
| ba346d4312 | |||
| 32a94cc135 | |||
|
|
92ce7fe969 | ||
| 3e2e47b717 | |||
| b71907227b | |||
|
|
55162b00cd | ||
|
|
31498311b8 | ||
|
|
25033ed3de | ||
|
|
faccf547ba | ||
|
|
581ec5b2ab | ||
|
|
975b1f8fa8 | ||
|
|
aa697e0bc9 | ||
| a0cfcb7c18 | |||
| cd71a06345 | |||
| 6bc8841336 | |||
| 9a854913d7 | |||
|
|
9481bd72bc | ||
|
|
dfec9d8cc8 | ||
|
|
3c0d5ab230 | ||
| d0172e19e1 | |||
|
|
9b728749da | ||
|
|
aa0fb72066 | ||
|
e699b7747f
|
|||
|
6ac0db075b
|
|||
| 83d3970baf | |||
| dd126704ef | |||
| f7f77145b8 | |||
|
|
ad7aa373c7 | ||
|
|
78137c798c | ||
| 92e6e207a7 | |||
| 1aee823fe4 | |||
| 05626a2a8d | |||
| 122ec1ecec | |||
|
|
b8e44f0e76 | ||
|
|
776e0862aa | ||
|
|
ed4c96ec25 | ||
|
|
a7655910b0 | ||
| 24766c5931 | |||
|
6d212d488f
|
|||
|
fac6dacc47
|
|||
|
d51167ac6f
|
|||
|
|
0e3bc340f9 | ||
|
0a8edc22d6
|
|||
|
8eb5ab412c
|
39
.github/workflows/build-docker-image.yaml
vendored
39
.github/workflows/build-docker-image.yaml
vendored
@@ -1,32 +1,33 @@
|
||||
name: ci
|
||||
|
||||
name: build-docker-image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
- "master"
|
||||
tags:
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
- "[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Login to GHCR
|
||||
uses: docker/login-action@v3
|
||||
if: github.event_name != 'pull_request'
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: nikdoof/hg612-exporter:${{ github.ref_name }}
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/hg612-exporter:${{ github.ref_name }}
|
||||
ghcr.io/${{ github.repository_owner }}/hg612-exporter:latest
|
||||
|
||||
|
||||
11
.github/workflows/release.yaml
vendored
11
.github/workflows/release.yaml
vendored
@@ -16,13 +16,12 @@ jobs:
|
||||
- goarch: arm64
|
||||
goos: windows
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: wangyoucao577/go-release-action@v1.22
|
||||
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
|
||||
- uses: wangyoucao577/go-release-action@v1.36
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
goos: ${{ matrix.goos }}
|
||||
goarch: ${{ matrix.goarch }}
|
||||
goversion: "https://dl.google.com/go/go1.17.4.linux-amd64.tar.gz"
|
||||
project_path: "./cmd/test-binary"
|
||||
binary_name: "test-binary"
|
||||
extra_files: LICENSE README.md
|
||||
goversion: "https://dl.google.com/go/go1.18.4.linux-amd64.tar.gz"
|
||||
binary_name: "hg612-exporter"
|
||||
extra_files: LICENSE README.md
|
||||
|
||||
3
CONTRIBUTORS
Normal file
3
CONTRIBUTORS
Normal file
@@ -0,0 +1,3 @@
|
||||
Jake Keeys
|
||||
Dominic Evans
|
||||
Andrew Williams
|
||||
@@ -1,10 +1,10 @@
|
||||
FROM golang:1.17.4-alpine3.15 as build
|
||||
FROM golang:1.20.4-alpine3.16 as build
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
RUN go get -d -v .
|
||||
RUN go build -v -o hg612-exporter .
|
||||
|
||||
FROM alpine:3.15.0
|
||||
FROM alpine:3.20.2
|
||||
WORKDIR /service
|
||||
COPY --from=build /build/hg612-exporter .
|
||||
ENTRYPOINT ["./hg612-exporter"]
|
||||
@@ -1,7 +1,5 @@
|
||||
# HG612 Prometheus Exporter
|
||||
|
||||
[](https://quay.io/repository/jakekeeys/hg612-exporter)
|
||||
|
||||
A prometheus exporter for the HG612 modem
|
||||
|
||||
 
|
||||
@@ -20,7 +18,7 @@ NAME:
|
||||
hg612 prometheus exporter - a metrics exporter for the hg612
|
||||
|
||||
USAGE:
|
||||
main [global options] command [command options] [arguments...]
|
||||
hg612-exporter [global options] command [command options] [arguments...]
|
||||
|
||||
COMMANDS:
|
||||
help, h Shows a list of commands or help for one command
|
||||
@@ -39,7 +37,7 @@ GLOBAL OPTIONS:
|
||||
|
||||
## Run
|
||||
* `go run main.go --host <host> --identifier <identifier>`
|
||||
* `docker run docker run quay.io/jakekeeys/hg612-exporter --host <host> --identifier <identifier>`
|
||||
* `docker run docker run nikdoof/hg612-exporter --host <host> --identifier <identifier>`
|
||||
|
||||
## Metrics
|
||||
|
||||
@@ -81,4 +79,4 @@ GLOBAL OPTIONS:
|
||||
|
||||
### Grafana Dashboard Preview
|
||||
|
||||

|
||||

|
||||
|
||||
6
go.mod
6
go.mod
@@ -4,7 +4,7 @@ go 1.15
|
||||
|
||||
require (
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/prometheus/client_golang v1.11.0
|
||||
github.com/sirupsen/logrus v1.8.1
|
||||
github.com/urfave/cli/v2 v2.3.0
|
||||
github.com/prometheus/client_golang v1.20.5
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
github.com/urfave/cli/v2 v2.11.0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user