Comments (5)
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.
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.
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.
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.
Yes a PR would be great.
from prometheusbeat.
Related Issues (19)
- Get remote write version from header
- windows binary? HOT 4
- Fatal error HOT 6
- connection es refused when prometheus beat run in one or two days. HOT 2
- Failed to encode event: unsupported float value: -Inf HOT 1
- make issue HOT 1
- Unable to send data to elasticsearch due to error - 'net/http: request canceled' HOT 7
- Missing metric name HOT 4
- accept4: too many open files HOT 3
- Add support for Elasticsearch 7 HOT 3
- Missing metadata fields in v7.x HOT 1
- the data didn't have time HOT 1
- prometheusbeat can not send data to ES HOT 1
- replicasets resource is now in "apps" apigroup HOT 1
- Make error when installing repository HOT 1
- Add vendoring
- Dockerfile HOT 1
- Do you have support for remote_read ? HOT 2
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 prometheusbeat.