-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
I'm not sure I understand how this works:
export const cacheReloadAvg = pmxProbe.meter({
name: "cache reload",
seconds: 60
});I would assume setting mark() twice over 60 second period should return value = 1 as 2 / 2 = 1
After 60 seconds passed, value should be reset, and counting starts again.
Apparently it's not.
Maybe I'm using wrong probe type.
My target is to calculate average response time, but I don't want to keep calculating average forever, I would like to reset it after 60 seconds.
export const avgResponseTime= pmxProbe.meter({
name: "avg response time",
seconds: 60
});
...
avgResponseTime.mark(duration_ms);Thanks.
Metadata
Metadata
Assignees
Labels
No labels