Git Product home page Git Product logo

Comments (5)

boernd avatar boernd commented on September 26, 2024

If you want to build the prometheusbeat binary from source just issue make. This should work. make setup is for the intial setup of a community beat (see e.g. https://www.elastic.co/guide/en/beats/devguide/current/setting-up-beat.html)

from prometheusbeat.

bwillcox avatar bwillcox commented on September 26, 2024

Here's what I get...

ubuntu % pwd
/home/bwillcox/go/src/github.com/infonova/prometheusbeat/prometheusbeat
ubuntu % make
go build -i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=2019-01-07T15:32:43Z -X github.com/elastic/beats/libbeat/version.commit=a65c77cf4
4910e4b1385cb63549c8171495a7dae"
main.go:6:2: cannot find package "github.com/infonova/prometheusbeat/cmd" in any of:
/home/bwillcox/go/src/github.com/infonova/prometheusbeat/prometheusbeat/vendor/github.com/infonova/prometheusbeat/cmd (vendor tree)
/usr/lib/go-1.10/src/github.com/infonova/prometheusbeat/cmd (from $GOROOT)
/home/bwillcox/go/src/github.com/infonova/prometheusbeat/cmd (from $GOPATH)
main.go:8:2: cannot find package "github.com/infonova/prometheusbeat/include" in any of:
/home/bwillcox/go/src/github.com/infonova/prometheusbeat/prometheusbeat/vendor/github.com/infonova/prometheusbeat/include (vendor tree)
/usr/lib/go-1.10/src/github.com/infonova/prometheusbeat/include (from $GOROOT)
/home/bwillcox/go/src/github.com/infonova/prometheusbeat/include (from $GOPATH)
vendor/github.com/elastic/beats/libbeat/scripts/Makefile:100: recipe for target 'prometheusbeat' failed
make: *** [prometheusbeat] Error 1
ubuntu % ls
total 228
...
drwxrwxr-x 3 bwillcox bwillcox 4096 Dec 28 16:38 build
drwxrwxr-x 2 bwillcox bwillcox 4096 Dec 28 16:37 cmd
drwxrwxr-x 2 bwillcox bwillcox 4096 Dec 28 16:37 config
...
ubuntu % go get github.com/infonova/prometheusbeat/cmd
package github.com/infonova/prometheusbeat/cmd: /home/bwillcox/go/src/github.com/infonova/prometheusbeat exists but /home/bwillcox/go/src/github.com/infonova
/prometheusbeat/.git does not - stale checkout?
ubuntu % ls .git
total 860
drwxrwxr-x 2 bwillcox bwillcox 4096 Dec 28 16:37 branches
-rw-rw-r-- 1 bwillcox bwillcox 267 Dec 28 16:37 config
-rw-rw-r-- 1 bwillcox bwillcox 73 Dec 28 16:37 description
-rw-rw-r-- 1 bwillcox bwillcox 23 Dec 28 16:37 HEAD
drwxrwxr-x 2 bwillcox bwillcox 4096 Dec 28 16:37 hooks
-rw-rw-r-- 1 bwillcox bwillcox 838375 Dec 28 17:14 index
drwxrwxr-x 2 bwillcox bwillcox 4096 Dec 28 16:37 info
drwxrwxr-x 3 bwillcox bwillcox 4096 Dec 28 16:37 logs
drwxrwxr-x 4 bwillcox bwillcox 4096 Dec 28 16:37 objects
-rw-rw-r-- 1 bwillcox bwillcox 966 Dec 28 16:37 packed-refs
drwxrwxr-x 5 bwillcox bwillcox 4096 Dec 28 16:37 refs
ubuntu % pwd
/home/bwillcox/go/src/github.com/infonova/prometheusbeat/prometheusbeat

from prometheusbeat.

boernd avatar boernd commented on September 26, 2024

Your folder structure should be /home/bwillcox/go/src/github.com/infonova/prometheusbeat and not /home/bwillcox/go/src/github.com/infonova/prometheusbeat/prometheusbeat

from prometheusbeat.

bwillcox avatar bwillcox commented on September 26, 2024

Yep that did it. Looks like there's a minor documentation issue in the README.md in the Clone section that has prometheusbeat appended the end of the path of the mkdir and cd commands. I could submit a pull request if that makes sense... Thank you for the help

from prometheusbeat.

boernd avatar boernd commented on September 26, 2024

Yes a PR would be great.

from prometheusbeat.

Related Issues (19)

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.