About pipeline rules and metrics (`metric_counter_inc` etc.)

Hi
I’m using a pipeline rule to delete some messages, but i want to kinda keep track of those messages occurrences. Is there any way to sum up occurrences and generate a message with something like “there was X occurrences of Y message in past Z minutes”? i found a metric_counter_inc function i could place in the rule, it increments a simple metric counter, what about resetting it periodically? i mean i could check the metric each rule invocation, generate a message if it passes a given threshold and reset it, is there any way to do it?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.