Skip to content

Monitoring improvements#3739

Merged
ruflin merged 2 commits intoelastic:masterfrom
urso:enh/monitoring-missing
Mar 15, 2017
Merged

Monitoring improvements#3739
ruflin merged 2 commits intoelastic:masterfrom
urso:enh/monitoring-missing

Conversation

@urso
Copy link
Copy Markdown

@urso urso commented Mar 12, 2017

  • move CollectStructSnapshot to monitoring package for reuse
  • have XPack endpoint report all metrics for now
  • convert some more missing metrics from expvar to monitoring package

- move CollectStructSnapshot to monitoring package for reuse
- have XPack endpoint report all metrics for now
- convert some more missing metrics from expvar to monitoring package
@urso urso added the review label Mar 12, 2017
@ruflin ruflin self-requested a review March 12, 2017 22:25
harvesterStarted = monitoring.NewInt(harvesterMetrics, "started")
harvesterClosed = monitoring.NewInt(harvesterMetrics, "closed")
harvesterRunning = monitoring.NewInt(harvesterMetrics, "running")
harvesterOpenFiles = monitoring.NewInt(harvesterMetrics, "open_files")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should probably be files.open?

Copy link
Copy Markdown
Contributor

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

LGTM. Left a minor comment.

statesCleanup = expvar.NewInt("registrar.states.cleanup")
statesCurrent = expvar.NewInt("registrar.states.current")
registryWrites = expvar.NewInt("registrar.writes")
statesUpdate = monitoring.NewInt(nil, "registrar.states.update")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looking at all the implementations now it seems like the name of the entry should probably be the first param (nothing to fix in this PR).

@urso
Copy link
Copy Markdown
Author

urso commented Mar 15, 2017

Yeah, naming schema is not perfect. I just exposed all variables, but did not attempt to rename any variable. In some follow-up PR we should have a look at all variables exposed in ES (haven't had time yet) and clean up the variables namings.

@ruflin ruflin merged commit cd5d8c1 into elastic:master Mar 15, 2017
@urso urso deleted the enh/monitoring-missing branch February 19, 2019 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants