mdlayher / apcupsd_exporter

Prometheus exporter that exposes metrics from apcupsd's NIS. MIT Licensed.
MIT License
153 stars 65 forks source link

Won't build #22

Closed andrewm659 closed 2 years ago

andrewm659 commented 2 years ago

Trying to build it on AlmaLinux with golang and it does nothing. No binary exporter output.

[andrew.meyer@mon03 apcupsd_exporter@v0.3.0]$ go build
[andrew.meyer@mon03 apcupsd_exporter@v0.3.0]$ ls -la
total 100
dr-xr-xr-x. 4 andrew.meyer andrew.meyer  4096 Apr 25 14:48 .
drwxrwxr-x. 4 andrew.meyer andrew.meyer  4096 Apr 25 14:48 ..
-r--r--r--. 1 andrew.meyer andrew.meyer  2571 Apr 25 14:48 apcupsdexporter.go
-r--r--r--. 1 andrew.meyer andrew.meyer   778 Apr 25 14:48 apcupsdexporter_test.go
dr-xr-xr-x. 3 andrew.meyer andrew.meyer  4096 Apr 25 14:48 cmd
dr-xr-xr-x. 3 andrew.meyer andrew.meyer  4096 Apr 25 14:48 .github
-r--r--r--. 1 andrew.meyer andrew.meyer   664 Apr 25 14:48 go.mod
-r--r--r--. 1 andrew.meyer andrew.meyer 46975 Apr 25 14:48 go.sum
-r--r--r--. 1 andrew.meyer andrew.meyer  1075 Apr 25 14:48 LICENSE.md
-r--r--r--. 1 andrew.meyer andrew.meyer   993 Apr 25 14:48 README.md
-r--r--r--. 1 andrew.meyer andrew.meyer  8245 Apr 25 14:48 upscollector.go
-r--r--r--. 1 andrew.meyer andrew.meyer  2943 Apr 25 14:48 upscollector_test.go
[andrew.meyer@mon03 apcupsd_exporter@v0.3.0]$ cd .github/
[andrew.meyer@mon03 .github]$ ls
workflows
[andrew.meyer@mon03 .github]$ cd workflows/
[andrew.meyer@mon03 workflows]$ ls
linux-test.yml  static-analysis.yml
[andrew.meyer@mon03 workflows]$ cd ..
[andrew.meyer@mon03 .github]$ ls
workflows
[andrew.meyer@mon03 .github]$ cd ..
[andrew.meyer@mon03 apcupsd_exporter@v0.3.0]$ ls
apcupsdexporter.go  apcupsdexporter_test.go  cmd  go.mod  go.sum  LICENSE.md  README.md  upscollector.go  upscollector_test.go
[andrew.meyer@mon03 apcupsd_exporter@v0.3.0]$ 
mdlayher commented 2 years ago

See https://github.com/mdlayher/apcupsd_exporter/issues/21#issuecomment-1109033667.