-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02d4636
commit e0122fe
Showing
345 changed files
with
69,059 additions
and
13,897 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, build with `go test -c` | ||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool | ||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# External packages folder | ||
# vendor/ | ||
_vendor-*/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
run: | ||
modules-download-mode: vendor | ||
|
||
# Run only staticcheck for now. Additional linters will be enabled one-by-one. | ||
linters: | ||
enable: | ||
- staticcheck | ||
disable-all: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,27 @@ | ||
go: | ||
version: 1.12 | ||
repository: | ||
path: github.com/lukasmalkmus/rpi_exporter | ||
build: | ||
flags: -buildmode=exe -tags netgo -installsuffix cgo | ||
flags: -mod=vendor -buildmode=exe -tags=netgo -installsuffix=cgo -a | ||
ldflags: | | ||
-s | ||
-w | ||
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}} | ||
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}} | ||
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}} | ||
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}} | ||
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}} | ||
-extldflags="-static" | ||
-X={{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}} | ||
-X={{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}} | ||
-X={{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}} | ||
-X={{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}} | ||
-X={{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}} | ||
gcflags: | ||
-trimpath=$(GOPATH)/src | ||
asmflags: | ||
-trimpath=$(GOPATH)/src | ||
tarball: | ||
files: | ||
- LICENSE | ||
- NOTICE | ||
crossbuild: | ||
platforms: | ||
- linux/arm | ||
- linux/arm64 | ||
- linux/arm64 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
language: go | ||
|
||
go: | ||
- 1.x | ||
- master | ||
|
||
# before_install: | ||
# - go get github.com/mattn/goveralls | ||
- 1.12.x | ||
|
||
script: | ||
# - $GOPATH/bin/goveralls -service=travis-ci | ||
- go build | ||
- make check_license style unused test lint | ||
- git diff --exit-code |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM quay.io/prometheus/busybox:latest | ||
LABEL maintainer="Lukas Malkmus <[email protected]>" | ||
|
||
COPY rpi_exporter /bin/rpi_exporter | ||
|
||
ENTRYPOINT ["/bin/rpi_exporter"] | ||
EXPOSE 9243 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* Lukas Malkmus <[email protected]> |
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
Oops, something went wrong.