-
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
Set reference config as config for docs #6671
Conversation
metricbeat/metricbeat.reference.yml
Outdated
|
||
# Path to server status. Default server-status | ||
#server_status_path: "server-status" | ||
server_status_path: "server-status" | ||
|
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.
I've looked at the configuration, I see sometime we define enabled: false
and sometime we don't, I think we should be explicit and it should be defined all the time.
I am saying this because your changes is removing that option.
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.
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.
Small comment concerning the enabled
usage in the configuration, other than that LGTM, I've checked the keys present in the config.go
.
# If both the `by_cpu` and `by_memory` options are used, the union of the two sets | ||
# is included. | ||
#process.include_top_n: | ||
# |
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 looks out of place.
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.
cleaned it up in our beat.reference.yml
.
079c69f
to
c228ef3
Compare
Cleaned up version pushed. |
This should be rebased and run |
period: 15m | ||
metricsets: | ||
- uptime | ||
# A list of filesystem types to ignore. The filesystem metricset will not |
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.
We decided awhile back ago to strip out most comments from config examples because it meant updating duplicate content and making the docs longer. I think short comments are probably OK, but the comments here seem like that might get out-of-date over time. I worry that we'll forget to update the comments here.
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 is from our reference docs and are the ones that should be most up-to-date. This part is auto generated.
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.
There are some conflicts to resolve, but otherwise LGTM.
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.
LGTM
Will need a rebase :( |
Having the reference file as example config in the docs has the advantage that all config options are shown. The assumption here is that users already know the short version of the config from the config file and come here to learn additional details. * Clean up nginx reference config to be more similar to others
Ready to go. |
Having the reference file as example config in the docs has the advantage that all config options are shown.