Page MenuHomePhabricator

[EventGate] Record metrics for instruments and experiments
Open, HighPublic5 Estimated Story Points

Description

Background

As well as the number of events flowing on streams, the Experiment Platform team would like to know whether those events were produced by Test Kitchen instruments or experiments.

AC

  • Increment a counter when an event has the instrument_name field set and label the counter with the value
  • Increment a counter when an event has the experiment.enrolled field set and label the counter with the value

Notes

  1. In order to keep the cardinality of the counters to a minimum, we should validate the instrument and experiment names prior to incrementing the counters

Event Timeline

In order to keep the cardinality of the counters to a minimum, we should validate the instrument and experiment names prior to incrementing the counters

Now captured in T430541: [EventGate] Reject events from inactive instruments and experiments

This would enable TK users to self-serve in answering the question "are events coming in for my experiment/instrument?"

Change #1324725 had a related patch set uploaded (by Phuedx; author: Phuedx):

[operations/mediawiki-config@master] EventStreamConfig: Mark product_metrics.web_base and .web_base_with_ip as Test Kitchen streams

https://gerrit.wikimedia.org/r/1324725

Change #1324728 had a related patch set uploaded (by Phuedx; author: Phuedx):

[operations/deployment-charts@master] eventgate-analytics-external: Enable testKitchen transform

https://gerrit.wikimedia.org/r/1324728

Change #1324725 merged by jenkins-bot:

[operations/mediawiki-config@master] EventStreamConfig: Mark product_metrics.web_base and .web_base_with_ip as Test Kitchen streams

https://gerrit.wikimedia.org/r/1324725

Mentioned in SAL (#wikimedia-operations) [2026-08-17T08:21:15Z] <phuedx@deploy1003> Started scap sync-world: Backport for [[gerrit:1324725|EventStreamConfig: Mark product_metrics.web_base and .web_base_with_ip as Test Kitchen streams (T429898 T430322)]], [[gerrit:1313923|EventStreamConfig: Remove unused web_ui_scroll* streams (T415370)]], [[gerrit:rMW132554684a48|EventStreamConfig: Remove Watchlist click stream (T434790)]]

Mentioned in SAL (#wikimedia-operations) [2026-08-17T08:23:09Z] <phuedx@deploy1003> bearloga, phuedx: Backport for [[gerrit:1324725|EventStreamConfig: Mark product_metrics.web_base and .web_base_with_ip as Test Kitchen streams (T429898 T430322)]], [[gerrit:1313923|EventStreamConfig: Remove unused web_ui_scroll* streams (T415370)]], [[gerrit:rMW132554684a48|EventStreamConfig: Remove Watchlist click stream (T434790)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug

Mentioned in SAL (#wikimedia-operations) [2026-08-17T08:33:57Z] <phuedx@deploy1003> Finished scap sync-world: Backport for [[gerrit:1324725|EventStreamConfig: Mark product_metrics.web_base and .web_base_with_ip as Test Kitchen streams (T429898 T430322)]], [[gerrit:1313923|EventStreamConfig: Remove unused web_ui_scroll* streams (T415370)]], [[gerrit:rMW132554684a48|EventStreamConfig: Remove Watchlist click stream (T434790)]] (duration: 12m 42s)

Change #1324728 merged by jenkins-bot:

[operations/deployment-charts@master] eventgate-analytics-external: Enable testKitchen transform

https://gerrit.wikimedia.org/r/1324728

Change #1326314 had a related patch set uploaded (by Phuedx; author: Phuedx):

[operations/deployment-charts@master] [eventgate] Bump to v1.33.0

https://gerrit.wikimedia.org/r/1326314

Change #1326314 merged by jenkins-bot:

[operations/deployment-charts@master] [eventgate] Bump to v1.33.0

https://gerrit.wikimedia.org/r/1326314