WIP like me.
bitcoin-prometheus-exporter's Introduction
bitcoin-prometheus-exporter's People
bitcoin-prometheus-exporter's Issues
Build fails: cannot find package "github.com/sirupsen/logrus"
go version go1.11.2 linux/arm
uname -a
Linux b1 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l GNU/Linux
monitoring@b1:~/src/bitcoin-prometheus-exporter $ make
go build -o bitcoind_exporter -v
main.go:8:2: cannot find package "github.com/btcsuite/btcd/rpcclient" in any of:
/home/monitoring/src/go/src/github.com/btcsuite/btcd/rpcclient (from $GOROOT)
/home/monitoring/gocode/src/github.com/btcsuite/btcd/rpcclient (from $GOPATH)
main.go:9:2: cannot find package "github.com/prometheus/client_golang/prometheus" in any of:
/home/monitoring/src/go/src/github.com/prometheus/client_golang/prometheus (from $GOROOT)
/home/monitoring/gocode/src/github.com/prometheus/client_golang/prometheus (from $GOPATH)
main.go:10:2: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of:
/home/monitoring/src/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT)
/home/monitoring/gocode/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOPATH)
main.go:11:2: cannot find package "github.com/sirupsen/logrus" in any of:
/home/monitoring/src/go/src/github.com/sirupsen/logrus (from $GOROOT)
/home/monitoring/gocode/src/github.com/sirupsen/logrus (from $GOPATH)
Makefile:18: recipe for target 'build' failed
make: *** [build] Error 1
Panic: Missing environment variable:
OS Ubuntu 18.04
Go version go1.14.3 Linux/amd64
How to reproduce the issue:
compile the binary and run:
./bitcoind_exporter BTC_USER=btcuser BTC_PASS=btcpass BTC_HOST 127.0.0.1:8332
Error message:
goroutine [1] running:
main.getEnv(0x9c84b9, 0x8, 0xc000010018, 0x1b6ac2afb20)
/root/bitcoin-prometheus-exporter/main.go:19 +0xfb
main.main()
/root/bitcoin-prometheus-exporter/main.go:44 +0x90
Not sure what I'm doing wrong. Didn't have any issues with compiling
This happens both when running the binary and running with go run main.go
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.