-
Notifications
You must be signed in to change notification settings - Fork 1.5k
add infra_mode tag to vsphere metric #21730
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
base: master
Are you sure you want to change the base?
Changes from all commits
96a6ea9
942915a
c51deb8
4719c56
055e5a3
3ee9ba1
054e0ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add infra_mode tag to vsphere metrics |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -24,6 +24,7 @@ | |||
| DEFAULT_MAX_QUERY_METRICS, | ||||
| HISTORICAL, | ||||
| HOST_RESOURCES, | ||||
| INFRA_MODE_METRIC, | ||||
| MAX_QUERY_METRICS_OPTION, | ||||
| PROPERTY_COUNT_METRICS, | ||||
| PROPERTY_METRICS_BY_RESOURCE_TYPE, | ||||
|
|
@@ -453,6 +454,11 @@ def submit_metrics_callback(self, query_results): | |||
|
|
||||
| tags.extend(self._config.base_tags) | ||||
|
|
||||
| if metric_name == INFRA_MODE_METRIC: | ||||
| infra_mode = datadog_agent.get_config('infrastructure_mode') | ||||
| if infra_mode is not None and infra_mode != '' and infra_mode != 'full': | ||||
| tags.append('infra_mode:{}'.format(infra_mode)) | ||||
|
|
||||
| value = valid_values[-1] | ||||
| if metric_name in PERCENT_METRICS: | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unsure when the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed this but will doublecheck with the live test that it's working properly |
||||
| # Convert the percentage to a float. | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.