sentinel-golang icon indicating copy to clipboard operation
sentinel-golang copied to clipboard

[RFC] Support monitoring (dry-run) mode

Open sczyh30 opened this issue 4 years ago • 3 comments

Issue Description

Type: feature request

Describe what feature you want

RFC: Support monitoring (dry-run) mode. In monitoring mode, Sentinel won't actually block the requests, but only record the relevant metrics (for observation). This could be useful when users need to verify whether the rules are appropriate.

sczyh30 avatar Dec 28 '20 06:12 sczyh30

From my perspective, maybe a global config for monitoring mode is enough?

louyuting avatar Dec 28 '20 06:12 louyuting

Maybe two levels are needed: global level and rule level. A new kind of metric (like "should block") is required for monitoring mode. More discussions are needed for details (e.g. event propagation, metric logs).

sczyh30 avatar Dec 28 '20 06:12 sczyh30

I think monitoring mode is necessary. For production safety, we usually want to configure a monitoring mode rule first

ansiz avatar Sep 03 '21 07:09 ansiz