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 elasticsearch_jvm_uptime gauge #537

Merged

Conversation

perlun
Copy link
Contributor

@perlun perlun commented Mar 1, 2022

I discovered that the the JVM uptime (readily available in the http://localhost:9200/_nodes/stats output) wasn't included in the output returned by the exporter. This PR adds it.

Tested locally with an ES 7.10.2 instance.

@perlun perlun force-pushed the feature/add-jvm-uptime branch from 26c9ace to f38e7ac Compare March 1, 2022 09:35
@perlun
Copy link
Contributor Author

perlun commented Mar 15, 2022

Ping @sysadmind, would you mind reviewing this? (unsure about what the process is in this repo, it seems to have a number of open PRs at the moment)

{
Type: prometheus.GaugeValue,
Desc: prometheus.NewDesc(
prometheus.BuildFQName(namespace, "jvm", "uptime"),
Copy link
Contributor

Choose a reason for hiding this comment

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

This should have the _seconds suffix to match prometheus naming standards https://prometheus.io/docs/practices/naming/

@perlun perlun force-pushed the feature/add-jvm-uptime branch from f38e7ac to b12d946 Compare April 13, 2022 06:12
@sysadmind sysadmind merged commit e5fb0a3 into prometheus-community:master Apr 13, 2022
@perlun perlun deleted the feature/add-jvm-uptime branch April 14, 2022 06:49
@perlun
Copy link
Contributor Author

perlun commented Apr 14, 2022

Thanks for the merge @sysadmind. 🙏 I intended to ping you that I had fixed & rebased this, but you seem to have noticed it anyway. 🙂 👍

iishabakaev pushed a commit to iishabakaev/elasticsearch_exporter that referenced this pull request Jun 8, 2022
jnadler pushed a commit to jnadler/elasticsearch_exporter that referenced this pull request Oct 27, 2022
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.

2 participants