I’m wondering, if is there any way I can access the timer statistics such as:
- Active timer count
- Average timer run time
- Failed timer count etc.
If there are no such statistics kept in the Couchbase, then is there any way I can list all timers from some page, n1ql, or even from SDK?
Thanks in advance
The statistics available for Eventing timers are accessible via:
These don’t include duration of call-back functions; I expect you’d have to code and log such statistics explicitly.
For example, the “execution_stats” element includes:
You can use - where “default.eventing.eventing” is the storage location you have defined for your eventing functions:
SELECT e1.*, millis_to_str(e2.due*1000) due
FROM default.eventing.eventing e1 LEFT OUTER JOIN default.eventing.eventing e2 ON e1.alr = meta(e2).id
WHERE e1.alr IS VALUED;
to list timers waiting to fire.
(Obviously a suitable indices are needed for such querying.)
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.