-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add fields for Nginx and Nginx stub metricset #2
Add fields for Nginx and Nginx stub metricset #2
Conversation
@ruflin Could you check if I miss anything here? |
description: > | ||
The total number of dropped client connections. | ||
- name: requests | ||
type: integer |
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.
Could make sense to switch this to "long" as "integer" could overflow 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.
Do you mean we better not to use Atoi()
?
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.
Good point, was not thinking of the implementation itself. The question here is what nginx will report as a max value and if it will exceed int or not. We hit some issues here recently in topbeat and filebeat where we use integer
and switched to long
as the values got too big.
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 think i would keep integer
here until we no longer user Atoi()
:)
LGTM |
@ruflin when I run |
@mrkschan Run |
f346579
to
ed26ba2
Compare
@ruflin did so :) does this still look good? |
Definitively. |
@ruflin Do you know what break CI https://travis-ci.org/mrkschan/beats/jobs/127222650#L404? |
It seems to look for an nginx environment which doesn't exist:
|
@mrkschan We just made a bigger refactoring of metricbeat which probably also affects a few line in the nginx module (elastic#1549). Me and @andrewkroh would be happy to open a PR against your branch to make it compatible again. |
@ruflin thanks :) |
ee4e0cd
to
5d437f5
Compare
Update Makefile and add Travis
* Add Nginx module with stub status metric set * Return error if Nginx stub status cannot be parsed * Add Nginx stub status integration test * Add fields for Nginx and Nginx stub metricset (#2)
No description provided.