Lucas_Werkmeister_WMDE added a comment.
In T221774#5297123 <https://phabricator.wikimedia.org/T221774#5297123>, @hoo wrote: > >> If yes, where should WikimediaPrometheusSparqlEndpointReplicationStatus live? Here or in the Wikidata.org extension? > > > > That thing is definitely better to live outside of Wikibase codebase, if possible, in an extension/external library that is more Wikidata. is there such place? what is "Wikidata.org extension"? and did you want to name it `WikidataPrometheusSparqlEndpointReplicationStatus` (Wikidata instead of Wikimedia), or why Wikimedia? > > > > I'm also wondering if the whole thing (interface and other implmenetation `SparqlEndpointReplicationStatusStateHandler` etc) can as well live outside Wikibase Repo? (I'm assuming Wikibase Repo has no code related to WDQS but I can certainly be off here, haven't checked yet). > > We could create a small hook in Wikibase that lets us inject arbitrary things into max lag… and then in Wikidata.org <https://github.com/wikimedia/mediawiki-extensions-Wikidata.org> do all the interaction with Prometheus and inject the lag. There already is a hook <https://www.mediawiki.org/wiki/Manual:Hooks/ApiMaxLagInfo> for it, that’s how Wikibase does it :) maxlag is managed by core, after all. TASK DETAIL https://phabricator.wikimedia.org/T221774 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: hoo, Lucas_Werkmeister_WMDE Cc: alaa_wmde, Andrawaag, Multichill, Ladsgroup, Smalyshev, fgiunchedi, hoo, Daniel_Mietchen, MisterSynergy, Addshore, Sjoerddebruin, Aklapper, Lucas_Werkmeister_WMDE, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, darthmon_wmde, joker88john, CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Chicocvenancio, Th3d3v1ls, Ramalepe, Liugev6, QZanden, EBjune, merbst, LawExplorer, WSH1906, Lewizho99, Volans, Maathavan, _jensen, rosalieper, Jonas, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs