Skip to content

Add histogram support. #7

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

Merged
merged 1 commit into from
Feb 23, 2015
Merged

Conversation

brian-brazil
Copy link
Contributor

@beorn7

I didn't add linearBuckets/exponentialBuckets as Python has range() and list comprehensions are easy.

class Histogram(object):
_type = 'histogram'
_reserved_labelnames = ['histogram']
def __init__(self, buckets=(.005, .01, .025, .05, .075, .1, .25, .5, .75, 1.0, 2.5, 5.0, 7.5, 10.0, _INF)):
Copy link
Member

Choose a reason for hiding this comment

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

This .75 in there really gives me the creeps... I think the default buckets should have a more regular spacing.

@beorn7
Copy link
Member

beorn7 commented Feb 23, 2015

👍 otherwise.

brian-brazil added a commit that referenced this pull request Feb 23, 2015
@brian-brazil brian-brazil merged commit bf79c0a into prometheus:master Feb 23, 2015
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.

2 participants