Skip to content

Commit

Permalink
fix: forward rule and match_body
Browse files Browse the repository at this point in the history
Signed-off-by: Yoan Blanc <[email protected]>
  • Loading branch information
greut committed Jun 9, 2021
1 parent 2639e10 commit ff28bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastalert/prometheus_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def metrics_run_rule(self, rule, endtime, starttime=None):
def metrics_writeback(self, doc_type, body, rule=None, match_body=None):
""" Update various prometheus metrics accoording to the doc_type """

res = self.writeback(doc_type, body)
res = self.writeback(doc_type, body, rule, match_body)
try:
if doc_type == 'elastalert_status':
self.prom_hits.labels(body['rule_name']).inc(int(body['hits']))
Expand Down

0 comments on commit ff28bac

Please sign in to comment.