fgiunchedi created this task.
fgiunchedi added projects: observability, MediaWiki-General, Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  This is a followup in the context of migrating wikidata alerts to 
AlertManager (T287741 <https://phabricator.wikimedia.org/T287741>). The 
remaining Icinga checks are mostly about wikidata lag, namely fetching 
`https://www.wikidata.org//w/api.php?action=query&meta=siteinfo&format=json&siprop=statistics`
 to compare the lag value to a threshold (in a shell script)
  
  The `siteinfo` statistics are of general interest and I think it makes sense 
to have them in Prometheus. In practical terms we'd teach production Prometheus 
to fetch the siteinfo api call like any other endpoint. A practical but 
fictional example of what I mean is the following:
  
    $ curl -s 
'https://www.wikidata.org/w/api.php?action=query&meta=siteinfo&format=PROMETHEUS&siprop=statistics'
    mediawiki_api_dispatch_median_lag_seconds: 1
    mediawiki_api_dispatch_freshest_lag_seconds: 1
    mediawiki_api_dispatch_stalest_lag_seconds: 1
    ...
  
  The exact metric names and labels are TBD but that's the general idea. This 
isn't full Prometheus support (in place of statsd, see T240685 
<https://phabricator.wikimedia.org/T240685>) but IMHO going in the right 
direction, also in the context of T249164 
<https://phabricator.wikimedia.org/T249164>. What do you think?

TASK DETAIL
  https://phabricator.wikimedia.org/T290080

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: fgiunchedi
Cc: Ladsgroup, fgiunchedi, Aklapper, the0001, Invadibot, Zabe, Selby, 
AndreCstr, maantietaja, XeroS_SkalibuR, lmata, Akuckartz, DannyS712, Nandana, 
Mirahamira, Lahi, Gq86, herron, Markhalsey, GoranSMilovanovic, Jayprakash12345, 
Chicocvenancio, QZanden, LawExplorer, Volans, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to