You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Damian Meden <dm...@apache.org> on 2024/07/16 10:12:25 UTC
ATS 10 Metrics clear|reset at runtime.
Hello.
With the latest inclusion of the new Metric machinery in ATS 10 you are no
longer able to reset|zero a counter at runtime, this used to make sense as
the old metrics were persistent, this is no longer the case for ATS 10. All
counters are reset on every restart, so this would be the way to clear them
all.
Q: Do you guys have any good arguments to (re)implement this "feature"? It
does not make sense to implement a feature just to keep backward
compatibility when there is no real need.
Keep in mind that there are other ways to monitor
<https://docs.trafficserver.apache.org/en/latest/appendices/command-line/traffic_ctl.en.html#cmdoption-traffic_ctl-metric-arg-monitor>
a metric in case you want to know how this metric performs without the need
to reset it.
To keep this consistent, in case we do not implement it we would need to
remove this(metric clear|zero) API from traffic_ctl for ATS 10.
Regards,
Damian
Re: ATS 10 Metrics clear|reset at runtime.
Posted by Leif Hedstrom <zw...@apache.org>.
I’m +1 on removing the “clear|zero” operations from traffic_ctl in 10.0.0.
— Leif
> On Jul 16, 2024, at 4:12 AM, Damian Meden <dm...@apache.org> wrote:
>
> Hello.
>
> With the latest inclusion of the new Metric machinery in ATS 10 you are no
> longer able to reset|zero a counter at runtime, this used to make sense as
> the old metrics were persistent, this is no longer the case for ATS 10. All
> counters are reset on every restart, so this would be the way to clear them
> all.
>
>
> Q: Do you guys have any good arguments to (re)implement this "feature"? It
> does not make sense to implement a feature just to keep backward
> compatibility when there is no real need.
>
> Keep in mind that there are other ways to monitor
> <https://docs.trafficserver.apache.org/en/latest/appendices/command-line/traffic_ctl.en.html#cmdoption-traffic_ctl-metric-arg-monitor>
> a metric in case you want to know how this metric performs without the need
> to reset it.
>
> To keep this consistent, in case we do not implement it we would need to
> remove this(metric clear|zero) API from traffic_ctl for ATS 10.
>
> Regards,
> Damian
Re: ATS 10 Metrics clear|reset at runtime.
Posted by Leif Hedstrom <zw...@apache.org>.
I’m +1 on removing the “clear|zero” operations from traffic_ctl in 10.0.0.
— Leif
> On Jul 16, 2024, at 4:12 AM, Damian Meden <dm...@apache.org> wrote:
>
> Hello.
>
> With the latest inclusion of the new Metric machinery in ATS 10 you are no
> longer able to reset|zero a counter at runtime, this used to make sense as
> the old metrics were persistent, this is no longer the case for ATS 10. All
> counters are reset on every restart, so this would be the way to clear them
> all.
>
>
> Q: Do you guys have any good arguments to (re)implement this "feature"? It
> does not make sense to implement a feature just to keep backward
> compatibility when there is no real need.
>
> Keep in mind that there are other ways to monitor
> <https://docs.trafficserver.apache.org/en/latest/appendices/command-line/traffic_ctl.en.html#cmdoption-traffic_ctl-metric-arg-monitor>
> a metric in case you want to know how this metric performs without the need
> to reset it.
>
> To keep this consistent, in case we do not implement it we would need to
> remove this(metric clear|zero) API from traffic_ctl for ATS 10.
>
> Regards,
> Damian