GithubHelp home page GithubHelp logo

bitcoin-prometheus-exporter's Introduction

WIP like me.

bitcoin-prometheus-exporter's People

Contributors

arjunrn avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.