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

Store units in results #938

Merged

Conversation

danielmitterdorfer
Copy link
Member

With this commit we store units for all operation-related samples and
system metrics also for summary metrics.

With this commit we store units for all operation-related samples and
system metrics also for summary metrics.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Metrics How metrics are stored, calculated or aggregated labels Mar 26, 2020
@danielmitterdorfer danielmitterdorfer added this to the 1.5.0 milestone Mar 26, 2020
@danielmitterdorfer danielmitterdorfer self-assigned this Mar 26, 2020
Copy link
Contributor

@hub-cap hub-cap left a comment

Choose a reason for hiding this comment

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

lgtm, one q

@@ -732,16 +732,17 @@ def get_raw(self, name, task=None, operation_type=None, sample_type=None, node_n
"""
return self._get(name, task, operation_type, sample_type, node_name, mapper)

def get_unit(self, name, task=None):
def get_unit(self, name, task=None, node_name=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont see this used in the PR, was it just added in case we need to use it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! I added it in 11364ad.

@danielmitterdorfer danielmitterdorfer merged commit 745af8e into elastic:master Mar 30, 2020
@danielmitterdorfer danielmitterdorfer deleted the unit-for-latency branch March 30, 2020 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Metrics How metrics are stored, calculated or aggregated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants