Skip to content
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 HTTP metrics and TCP #635

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toufreach5
Copy link

Hello,
This PR is inspired from #314 never respond to question)

It will add following metrics:

  • elasticsearch_transport_tcp_connections_open_current
  • elasticsearch_transport_outbound_connections_total
  • elasticsearch_http_connections_opened_current
  • elasticsearch_http_connections_opened_total

Thanks.

Signed-off-by: Alexandre Le Madec <alexandre.lemadec@reach5.co>
@@ -37,7 +37,7 @@ type NodeStatsNodeResponse struct {
ThreadPool map[string]NodeStatsThreadPoolPoolResponse `json:"thread_pool"`
JVM NodeStatsJVMResponse `json:"jvm"`
Breakers map[string]NodeStatsBreakersResponse `json:"breakers"`
HTTP map[string]interface{} `json:"http"`
HTTP *NodeStatsHTTPResponse `json:"http"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a pointer?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to change this condition:
if len(node.HTTP) == 0 {
to if node.HTTP == nil {

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, @sysadmind, any update/concern on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants