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

Including time_taken in the statsd metrics #324

Merged
merged 2 commits into from
Jul 4, 2021

Conversation

JeffAshton
Copy link
Contributor

@JeffAshton JeffAshton commented Jul 2, 2021

Adding time_taken to the statsd work @eladamitpxi did.

@@ -986,6 +987,27 @@ def run_rule(self, rule, endtime, starttime=None):
'time_taken': time_taken}
self.writeback('elastalert_status', body)

# Write metrics about the run to statsd
if self.statsd:
Copy link
Contributor Author

@JeffAshton JeffAshton Jul 2, 2021

Choose a reason for hiding this comment

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

Moved from below to where time_taken was readily available.

image

This feels aligned with the elastalert_status work that run_rule is already doing above. Would also allow for measuring of elastalert-test-rule.

@jertel jertel merged commit f738252 into jertel:master Jul 4, 2021
@JeffAshton JeffAshton deleted the statsd-time-taken branch July 4, 2021 12:58
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants