On 2023-12-01 01:59, Krinkle wrote:
I would suggest using the Statsd counters that WikimediaEvents exposes
to MediaWiki JavaScript (including Gadgets and user scripts!). This is a
public API, with aggregate data publicly accessible via Grafana.
These require no server-side configurations, schemas, or private data
access. And (on the flipside) also do not record any personal information.
To use it, call mw.track( counter.gadget_<gadgetname>.<metricname> ) in
your gadget.
For example:
mw.track( 'counter.gadget_VariantAlly.storage_empty_dialog' );
To make visualising easier, I've put together a generic dashboard to
plot these:
I wrote this up along with some other advice on a wiki page:
https://www.mediawiki.org/wiki/Gadget_kitchen:_recording_metrics
Please make corrections!
(The dashboard is now found at
https://grafana.wikimedia.org/d/IlK0cZbSk/gadget-stats, I don't know how
that happened.)
--
Bartosz Dziewoński
_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/