Comments (4)
If I had to guess, you probably did a git clone
instead of a go get
?
Try go get -d -u -v github.com/mdlayher/unifi_exporter
and then build. This will show you that it's fetching and updating all dependencies as well.
from unifi_exporter.
Even given that, this does not compile currently.
/opt/unifi_exporter_unifi_exporter # GOPATH=/opt/unifi_exporter/unifi_exporter/ make
go build ./cmd/unifi_exporter
# github.com/mdlayher/unifi
../unifi/client.go:102: undefined: http.MethodPost
../unifi/client.go:126: undefined: http.MethodPost
# github.com/prometheus/client_golang/prometheus
../../prometheus/client_golang/prometheus/registry.go:399: syntax error: unexpected range, expecting {
../../prometheus/client_golang/prometheus/registry.go:513: non-declaration statement outside function body
../../prometheus/client_golang/prometheus/registry.go:514: non-declaration statement outside function body
../../prometheus/client_golang/prometheus/registry.go:515: syntax error: unexpected }
Makefile:4: recipe for target 'build' failed
make: *** [build] Error 2
/opt/unifi_exporter_unifi_exporter # go version
go version go1.3.3 linux/amd64
from unifi_exporter.
The current stable release of Go is 1.8.1. I don't support any versions of Go that are older than that.
Closing this issue due to lack of response from the original author.
from unifi_exporter.
@mdlayher Please add a min version of Go to the readme to ensure this does not happen to others. Go 1.3.3 is the latest release that is part of the Debian 8 repo.
from unifi_exporter.
Related Issues (20)
- stationscollector: expose connection={wired,wireless} label or similar
- Collecting device metric fails HOT 6
- Invalid MAC Address on IP:3190 load. HOT 11
- [feature request] Number of Clients per SSID HOT 3
- Better metrics for specific Unifi devices HOT 1
- Error with Unifi 5.5.8 HOT 2
- disconnected APs metric HOT 1
- error 400 upon connect HOT 1
- [bug] exporter doesn't scrape all sites
- Don't crash if Unifi controller is down
- Automated build on Docker Hub HOT 4
- interference metrics
- Unable to scrape metrics HOT 2
- Could you export the grafana dashboard in the README? HOT 1
- Link in DockerHub
- Grafana Dashboard Example HOT 2
- Detailed installation guide HOT 1
- information about client signal strengths HOT 7
- retries, tx errors, etc. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifi_exporter.