Problem:
In T331405: [WD-ORG] Query service maxlag calculation should exclude datacenters that don't receive traffic and where the updater is turned off it was concluded that utilizing a new Prometheus query in the updateQueryServiceLag.php maintenance script (in the Wikidata.org extension) will help mitigate potential false positive alerts while switching datacenters. The new query as crafted by @dcausse in T331405#8806909 is:
max(time() - label_replace(blazegraph_lastupdated, "host", "$1", "instance", "^([^:]+):.*") and on(host) label_replace(rate(org_wikidata_query_rdf_blazegraph_filters_QueryEventSenderFilter_event_sender_filter_StartedQueries{}[5m]) > 1, "host", "$1", "instance", "^([^:]+):.*"))
To ensure this query is taken into account while running the maxlag updater maintenance script, the Prometheus URLs in the script should be updated.
Acceptance Criteria:
- The updateQueryServiceLag.php is updated to take into account the new Prometheus query for maxlag calculation.