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 instance_name config option for perfmon metricset #4655

Merged
merged 3 commits into from
Jul 24, 2017

Conversation

martinscholz83
Copy link
Contributor

I have stumbled about this while testing some counters. In #4502 we add some new config options instance_label and measurement_label. The value for instance_label is computed by extracting the instance name from the query. This works fine as long as you define a wildcard query or your query contains a instance. For example \Processor Information(_Total)\% Processor Time. But if you define a query like this \TCPIP Performance Diagnostics\IPv4 NBLs/sec indicated without prevalidation there is no instance name. So we need an extra option to set the instance name. This has the side effect that we can change the instance name for normal queries. \Processor Information(_Total)\% Processor Time we can name the instance Total or total or whatever we want. I have changed the docs. Can you please check the grammar. Thanks!

@elasticmachine
Copy link
Collaborator

Can one of the admins verify this patch?

@elasticmachine
Copy link
Collaborator

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically on build-eu-00. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@martinscholz83 martinscholz83 changed the title Add instance_name config option for perfmon metricbeat Add instance_name config option for perfmon metricset Jul 12, 2017
@martinscholz83 martinscholz83 force-pushed the perfmon-instance-name branch from b6dd5fc to ee0b3ce Compare July 12, 2017 11:47
@@ -10,6 +10,10 @@ You must configure queries for the Windows performance counters that you wish
to collect. The example below collects processor time and disk writes.
With `format` you can set the output format for a specific counter. Possible values are
`float` and `long`. If nothing is selected the default value is `float`.
There is also an optional/required option `instance_name`.
Copy link
Contributor

@dedemorton dedemorton Jul 12, 2017

Choose a reason for hiding this comment

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

Saying " optional/required option" seems like a contradiction. I'd reword this section to say something like the following (I've fixed a few grammatical issues):

With instance_name, you can specify the name of the instance. Use this setting when:

  • You want to use an instance name that is different from the computed name. For example, Total instead of _Total.
  • You specify a counter that has no instance. For example, \TCPIP Performance Diagnostics\IPv4 NBLs/sec indicated without prevalidation.

I'm not sure what you mean by "For wildcard queries this option is needles." Do you mean that the setting has no effect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks @dedemorton for the text. Yes, for wildcard queries this setting has no effect.

@tsg
Copy link
Contributor

tsg commented Jul 24, 2017

Many thanks @maddin2016 for the contribution!

@tsg tsg merged commit 4a927b4 into elastic:master Jul 24, 2017
martinscholz83 added a commit to martinscholz83/beats that referenced this pull request Aug 11, 2017
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.

5 participants