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

[vmware] Adding network.received and network.transmitted to basic_metrics.py #1824

Merged
merged 1 commit into from
Jan 8, 2016

Conversation

JohnLZeller
Copy link
Contributor

The vsphere dashboard is currently attempting to use these two metrics, but they are not included in the basic metrics collected. This should add those metrics, without the need to enable all metrics (read: a TON of metrics).

The vsphere dashboard is also trying to display disk.usage and mem.usage, which are also not basic metrics, but those are not being added at this time, because their compatibility is unknown as shown here and here

@LeoCavaille LeoCavaille changed the title [vmware] Adding network.received and network.trasnmitted to basic_metrics.py [vmware] Adding network.received and network.transmitted to basic_metrics.py Aug 10, 2015
@LeoCavaille LeoCavaille added this to the 5.5.0 milestone Aug 10, 2015
@LeoCavaille
Copy link
Member

LGTM. The only thing that bothers me is that we'll report these as gauges, might not be ideal because we cannot switch from the rate value to a count because it won't show the proper type.
But that's also true if someone enables all_metrics so it would need a deeper refactoring I guess, can you assess if that's true and file an issue if needed?

@JohnLZeller
Copy link
Contributor Author

Will do

@JohnLZeller
Copy link
Contributor Author

@LeoCavaille: So, it looks like we do currently report these as gauges:

What's the ideal way to report these, in your opinion?
And, do you think that this PR could be merged before changing the vsphere check to use something other than gauge?

@LeoCavaille
Copy link
Member

I'd advise to report it correctly from the beginning, we know that this
change will be backwards incompatible and hard to make if people are using
the metric.
@remh can weigh in maybe.

Also it might already be the case, some rates/counters might be wrongly
reported. It does not seem too hard to read the metric type from the VMware
metrics module and call self.gauge or self.rate, etc. accordingly.

Léo

On Tue, Sep 1, 2015 at 7:12 PM, John Zeller [email protected]
wrote:

@LeoCavaille https://github.com/LeoCavaille: So, it looks like we do
currently report these as gauges:
https://github.com/DataDog/dd-agent/blob/master/checks.d/vsphere.py#L751-L756

What's the ideal way to report these, in your opinion?
And, do you think that this PR could be merged before changing the vsphere
check to use something other than gauge?


Reply to this email directly or view it on GitHub
#1824 (comment).

@JohnLZeller
Copy link
Contributor Author

Upon looking even further at this, it's definitely a candidate for its' own ticket in my opinion, since it not only affects these 2 metrics, but also the rest listed in all_metrics.

@JohnLZeller
Copy link
Contributor Author

(internal) Here is the corresponding ticket on dogweb: https://github.com/DataDog/dogweb/pull/9194

@JohnLZeller
Copy link
Contributor Author

@remh could you weigh in?

@JohnLZeller
Copy link
Contributor Author

I think that this is the right way to handle the different metric types, but I will need to test it on a vsphere setup.

https://github.com/DataDog/dd-agent/compare/zeller/vsphere-metrics

@LeoCavaille Am I right in thinking that types absolute and delta are okay to be reported as a gauge, leaving rate to be reported as... rate? :)

@JohnLZeller
Copy link
Contributor Author

Blocked by #2115

@remh remh modified the milestones: 5.8.0, 5.7.0 Dec 22, 2015
JohnLZeller added a commit that referenced this pull request Jan 8, 2016
[vmware] Adding network.received and network.transmitted to basic_metrics.py
@JohnLZeller JohnLZeller merged commit 44ff306 into master Jan 8, 2016
@JohnLZeller JohnLZeller deleted the zeller/vsphere-basic branch January 8, 2016 04:12
@olivielpeau olivielpeau modified the milestones: 5.7.0, 5.8.0 Feb 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants