Page MenuHomePhabricator

[Story] Statistics for Wikidata API usage
Closed, ResolvedPublic

Description

The API is super important for Wikidata and I'd like to see usage statistics for it. Ideally it'd be split by API module.

See also: https://wikimedia.mingle.thoughtworks.com/projects/analytics/cards/1490

Details

Reference
bz62873

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:06 AM
bzimport set Reference to bz62873.
bzimport added a subscriber: Unknown Object (MLST).

Erik and I will discuss/prioritize.

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/analytics/cards/cards/1490

(Btw, mingle updated it's urls without keeping backwards compat, apparently. The new url of the mingle card for this is: https://wikimedia.mingle.thoughtworks.com/projects/analytics/cards/1490 *grumbles at mingle*)

What does that Mingle link actually tell us? All i see is a link back into Bugzilla and a lot of fields with "not set" value.

Well, I recently started adding some apifeature logging to certain areas of the wikibase api.
The question is should I bother doing this?

Hoo mentioned to me that all api calls are logged anyway and he and others can just grep through said logs.
(of course this requires a level of cluster access, whereas apifeature logs can be see by anyone in the NDA group through logstash)..

If noone has any further comments I may start adding more api feature logging to out api modules! :)

Nemo_bis renamed this task from statistics for Wikidata API usage to Statistics for Wikidata API usage.Jul 31 2015, 7:24 AM

So I am a bit at a loss wrt the current state after these patches. Is there now a place where we can see stats for Wikidata's API usage? If so where? If not what is still needed?

thiemowmde renamed this task from Statistics for Wikidata API usage to [Story] Statistics for Wikidata API usage.Aug 13 2015, 5:10 PM
thiemowmde updated the task description. (Show Details)
thiemowmde removed subscribers: Denny, wikibugs-l-list.

@Addshore yes except it is broken.

Ahhh, I was unaware of this!

PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'File does not exist: /a/mw-log/archive/api/api.log-20170317.gz' in /a/analytics-wmde/src/scripts/src/wikidata/apiLogScanner.php:117
Stack trace:
#0 /a/analytics-wmde/src/scripts/src/wikidata/apiLogScanner.php(52): WikidataApiLogScanner->dieIfFilesDoNotExist()
#1 /a/analytics-wmde/src/scripts/src/wikidata/apiLogScanner.php(22): WikidataApiLogScanner->execute()
#2 {main}
  thrown in /a/analytics-wmde/src/scripts/src/wikidata/apiLogScanner.php on line 117

I have created a task that should fix this dashboard @ T160888

Addshore claimed this task.
Addshore moved this task from Incoming to Done on the WMDE-Analytics-Engineering board.
Addshore moved this task from Unsorted 💣 to Closing ✔️ on the User-Addshore board.