enable_minutely_probes config option.
Registering probes
To track custom metrics from your application, you can add your own probes. To register a probe, you must call theprobes.register() method with two arguments: a probe name, and a function to be called once every minute.
Stateful probes
A probe function can keep state in between executions by accepting it as an argument and returning it. This is useful to keep track of how values change over time:None will be passed as the argument. In successive invocations, the value returned by the previous invocation will be passed to it as an argument.