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

Expose server string information #123

Merged
merged 1 commit into from
Oct 2, 2020
Merged

Expose server string information #123

merged 1 commit into from
Oct 2, 2020

Conversation

variadico
Copy link
Contributor

@variadico variadico commented Oct 1, 2020

This change exposes 3 string value gauges.

  • gnatsd_varz_server_name
  • gnatsd_varz_server_id
  • gnatsd_varz_version

These can be displayed in Grafana like so.

image

Configuration

First, pull in the desired metric and read the contents of the value label with {{value}}.

image

Next, under Panel / Visualization, choose Stat.

image

Finally, select the name of the field and choose to display only the name.

image

Fixes #122

This change exposes 3 string value gauges.
* gnatsd_varz_server_name
* gnatsd_varz_server_id
* gnatsd_varz_version
@variadico variadico requested a review from wallyqs October 1, 2020 23:00
Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM!

@wallyqs wallyqs merged commit e6f74ee into master Oct 2, 2020
@wallyqs wallyqs deleted the info-metric branch October 2, 2020 03:10
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.

Please provide a gnatsd_varz_server_info metric
3 participants