-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation for server metricset in Zookeeper metricbeat module #10692
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Hi @arsalanc-v2 . An absolutely amazing job. Even I'm learning things of Zookeeper I didn't know with this descriptions. You still need to sign the CLA, read https://github.com/elastic/beats/blob/master/CONTRIBUTING.md to see how. Also, a change in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make update
needs to be run
121d372
to
7a4d48f
Compare
Thank you! I have signed the CLA, please let me know if there is anything else I need to do to make the check pass. |
Left you some comments, it seems you need a rebase ensure that you aren't adding anything unrelated to the branch. Then |
CHANGELOG.next.asciidoc
Outdated
@@ -81,7 +81,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d | |||
- The `elasticsearch/deprecation` fileset now indexes the `component` field under `elasticsearch` instead of `elasticsearch.server`. {pull}10445[10445] | |||
- Remove field `kafka.log.trace.full` from kafka.log fielset. {pull}10398[10398] | |||
- Change field `kafka.log.class` for kafka.log fileset from text to keyword. {pull}10398[10398] | |||
- Address add_kubernetes_metadata processor issue where old source field is | |||
- Address add_kubernetes_metadata processor issue where old source field is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't go here. It seems some branching conflict. Try to rebase to master again and running make collect && make update
80fefee
to
bcfc44e
Compare
When running either It seems like a common problem with other projects but I have not found a solution that would be applicable here |
Yeah, it's common because our build system is done with Python 2 and it's tricky to make it work if you also have Python 3 installed. Ensure that you have Python 2 installed, of course :) The workaround there should work, however. Try this way from Metricbeat folder:
To really force |
@arsalanc-v2 It's just a guess but I have seen similar things in the past having both python version and some dependencies for Python 2.7 were taken from Python 3 and that created a mess. Uninstalling Python 3 could definitively help and then remove / install the dependencies again. But not sure if that is a bit too much to ask to change your env. Seeing you are on OS X, do you use brew? Perhaps you could use |
Yes, it's definitely using Python 3 in some moment. It has happened to me in the past too. You probably have a symlink from |
bab6d1a
to
4d30ecc
Compare
@arsalanc-v2 don't forget that you need to sign the CLA https://www.elastic.co/contributor-agreement/ The PR looks done or almost done. Let's see what Jenkins thinks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jenkins is happy. So we are just waiting you to sign the CLA and we are good to go
Awesome, I enjoyed working on this. I signed the CLA on 12/02/2019 and received the pdf by email. Is there anything else I need to do to make the check pass? |
@arsalanc-v2 please check if you signed the CLA with the same email address as the used for your commits, you can see in https://github.com/elastic/beats/pull/10692.patch the email in the commits. |
3976135
to
ba48ca3
Compare
e4a831f
to
4f13e58
Compare
@jsoriano The same email was used but the name was different. I've resolved that and the patch file shows the correct name now (: |
jenkins, test this please |
@arsalanc-v2 sorry, there was some issue with CLA signing last week, could you try to sign it again? 🤞 |
@jsoriano Done! |
Awesome @arsalanc-v2 Let's wait CI to go green before merging :) |
Oh, @arsalanc-v2 I didn't realize until now. Forgive me but we don't add CHANGELOG entries to docs updates. Can you remove it so we can merge the PR 🙂 ? |
c218962
to
ad3c3e1
Compare
libbeat/mock/mockbeat.go
Outdated
@@ -30,6 +31,8 @@ import ( | |||
var Version = "9.9.9" | |||
var Name = "mockbeat" | |||
|
|||
var Settings = instance.Settings{Name: Name, Version: Version} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported var Settings should have comment or be unexported
libbeat/libbeat.go
Outdated
@@ -24,7 +24,7 @@ import ( | |||
"github.com/elastic/beats/libbeat/mock" | |||
) | |||
|
|||
var RootCmd = cmd.GenRootCmd(mock.Name, mock.Version, mock.New) | |||
var RootCmd = cmd.GenRootCmdWithSettings(mock.New, mock.Settings) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported var RootCmd should have comment or be unexported
libbeat/cmd/test/output.go
Outdated
@@ -29,18 +29,18 @@ import ( | |||
"github.com/elastic/beats/libbeat/testing" | |||
) | |||
|
|||
func GenTestOutputCmd(name, beatVersion string) *cobra.Command { | |||
func GenTestOutputCmd(settings instance.Settings) *cobra.Command { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported function GenTestOutputCmd should have comment or be unexported
libbeat/cmd/test/config.go
Outdated
@@ -27,18 +27,18 @@ import ( | |||
"github.com/elastic/beats/libbeat/cmd/instance" | |||
) | |||
|
|||
func GenTestConfigCmd(name, version string, beatCreator beat.Creator) *cobra.Command { | |||
func GenTestConfigCmd(settings instance.Settings, beatCreator beat.Creator) *cobra.Command { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported function GenTestConfigCmd should have comment or be unexported
libbeat/cmd/export/template.go
Outdated
@@ -31,7 +31,7 @@ import ( | |||
"github.com/elastic/beats/libbeat/template" | |||
) | |||
|
|||
func GenTemplateConfigCmd(settings instance.Settings, name, idxPrefix, beatVersion string) *cobra.Command { | |||
func GenTemplateConfigCmd(settings instance.Settings) *cobra.Command { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported function GenTemplateConfigCmd should have comment or be unexported
filebeat/input/log/stdin.go
Outdated
@@ -44,3 +44,4 @@ func (p Pipe) Name() string { return p.File.Name() } | |||
func (p Pipe) Stat() (os.FileInfo, error) { return p.File.Stat() } | |||
func (p Pipe) Continuable() bool { return false } | |||
func (p Pipe) HasState() bool { return false } | |||
func (p Pipe) Removed() bool { return false } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported method Pipe.Removed should have comment or be unexported
filebeat/input/log/file.go
Outdated
|
||
type File struct { | ||
*os.File | ||
} | ||
|
||
func (File) Continuable() bool { return true } | ||
func (File) HasState() bool { return true } | ||
func (f File) Removed() bool { return file.IsRemoved(f.File) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported method File.Removed should have comment or be unexported
ad3c3e1
to
ee67a3d
Compare
@sayden Ah I see, no worries I've removed it. I read that from the contributing guide |
Also, I mistakenly pushed some old code (resolved now) |
jenkins, test this |
Good work @arsalanc-v2 👍 |
@sayden Should we backport this? |
Resolve #10376
Fields to improve: