-
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
Add Nginx Plus status #2329
Add Nginx Plus status #2329
Conversation
This is a WIP PR. Please let me know if the big chunk of copy-and-paste for reading the JSON from Nginx plus status endpoint is appropriate. |
Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run. |
1 similar comment
Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run. |
} | ||
|
||
// getURL constructs a URL from the rawHost value and path if one was not set in the rawHost value. | ||
func getURL(statusPath, rawHost string) (*url.URL, error) { |
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'm curious if we could move this to the nginx module? Long term we should probably make this even a general helper to be used for all http metricsets.
Thanks for the additional metricsets. There is a new It seems there is quite a bit of duplicated code in the Metricsets. I would hope part of it could be moved to the nginx module and then be reused. |
567b2a3
to
1ce3fc3
Compare
@mrkschan I just saw you pushed some additional commits. Can you ping me when it is ready for a review? |
@ruflin, I'm trying to apply Schema to Nginx plus stream.upstreams. I'm not sure what to do with the
|
Arrays area always tricky. We have similar problems in other metricsets. So far we always tried to build a new metricset out of it that sends for each entry an event. That means in your case, each peer would be an event. If you go this way, you would probably have to add one more field to the peer which is One of the questions that often helps to answer the question is on how this data will be consumed? What metrics is someone going to visualise? Will it be all peers with a specific ip and type? Or is it the number of peers per count? ... |
Closing this ... will create a up-to-date PR later. |
@mrkschan Thanks |
No description provided.