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

[api] adding basic tornado-based API for status reporting #18

Merged
merged 8 commits into from
May 28, 2018

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Apr 25, 2018

No description provided.

@@ -517,57 +529,67 @@ def __init__(self, hostname, interval=1.0, expiry_seconds=300,
histogram_percentiles,
utf8_decoding
)
self.sources = defaultdict(set)
Copy link
Member

Choose a reason for hiding this comment

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

If I get it right, sources allow use to group context/metric by checks to have stats on them ?
Wouldn't it be simpler for the AgentCheck class to gather statistics on his run and send them at the end of the run ? It could be done by the collector.

I don't think this should be the job of the aggregator. It extends its API and the data is mainly about checks so checks should be in charge of it.

What do you think ?

Copy link
Member Author

@truthbk truthbk May 10, 2018

Choose a reason for hiding this comment

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

Let me think about it, I kind of wanted a uniform-ish interface for the aggregators so I could do something similar for dogstatsd as well - something that programmatically was consistent with what we may have to do on the bucketed aggregator. But I see your point....

Copy link
Member

Choose a reason for hiding this comment

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

Does is make sens to have stats on the number of context for dogstatsd ?

@truthbk truthbk mentioned this pull request May 28, 2018
@truthbk
Copy link
Member Author

truthbk commented May 28, 2018

Merging after rebase, created issue to track pending discussion regarding stats book-keeping refactor.

@truthbk truthbk merged commit b8ab49e into master May 28, 2018
@truthbk truthbk deleted the jaime/status branch May 28, 2018 14:01
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.

None yet

2 participants