Pierre-Lannoy / wp-decalog

Capture and log events, metrics and traces on your site. Make WordPress observable - finally!
https://perfops.one/
GNU General Public License v3.0
64 stars 8 forks source link

Make Metrics to collect configurable #27

Closed JanThiel closed 2 years ago

JanThiel commented 2 years ago

Is your feature request related to a problem? Please describe. Metrics are an amazing tool to get insight into an application. But with the major analytics platforms charging by the number of metrics collected, it is a matter of cost to decide which metrics to actually trace. There are several metrics which create an exponential growth in the number of traced metrics.

Describe the solution you'd like Within admin.php?page=decalog-settings&tab=metrics allow to enable / disable the single metric. This will allow one to limit the metrics to those really required and thus controlling the created costs by the metrics.

Describe alternatives you've considered Select the metrics to submit within the configured metrics provider. As it might be different for each provider / connection.

Additional context We use Datadog. With the Decalog default enabled and metrics submitted on a Multisite Environment we very quickly had several hundred metrics billed there. We then disabled the metrics collection for cost reason.

Pierre-Lannoy commented 2 years ago

Hi @JanThiel !

That's definitely a really good suggestion. And a must-have feature I will implement in the next version. I'm currently trying some ways to do that, because unfortunately having checkboxes for all metrics is neither practical nor feasible:

JanThiel commented 2 years ago

Thank you :-) Groups by source would be a possible way to reduce the amount of required config... But I am sure you will come up with a smart and handy solution as always ;-)

Pierre-Lannoy commented 2 years ago

Ahaha. Thanks. Note for now, the best way I found is to allow regex for including/excluding metrics (on a per-logger basis) 🤣 (and it's not even a joke )

Pierre-Lannoy commented 2 years ago

Hello @JanThiel ! This feature is implemented and will be available in 3.5.0. Hope you like regex ;)

Pierre-Lannoy commented 2 years ago

3.5.0 is out! Can you tell me if it's ok for you now?

Pierre-Lannoy commented 2 years ago

Hello @JanThiel ! Do you have some news on this? Is it usable from your point of view? Thanks ;)

JanThiel commented 2 years ago

@Pierre-Lannoy So sorry for not getting back to you! :-/ Simply slipped my todo list... Feature looks good and is very usable 🚀❤️

Thank you very much!