access with NDA
echo "metricname:10|c" | nc -w 1 -u statsd.eqiad.wmnet 8125
$statsd = RequestContext::getMain()->getStats();
$service->timing('usageTime', 100);
$service->increment('visitor');
$service->decrement('click');
$service->gauge('gaugor', 333);
$service->set('uniques', 765);
See: github.com/etsy/statsd/blob/master/docs/metric_types.md
Render api graphite.wikimedia.org/render
Other graphy stuff too.... (width etc)
access from stat1002
Web request fields
SELECT
count(*) as count, user_agent
FROM
webrequest
WHERE
year = 2015
AND month = 10
AND day = 12
AND hour = 1
AND uri_host = "www.wikidata.org"
AND http_status = 200
AND http_method = "GET"
AND uri_path LIKE "/wiki/Special:EntityData%"
GROUP BY user_agent
ORDER BY count
LIMIT 999999;
See how many times each user agent accesses Special:EntityData and subpages in a given hour
Structured api logging soon
Generated by mediawiki (rather than from request logs)
2014-08-19 10:12:33 mw1198 wikidatawiki api
INFO:
API GET 2.1.0.0 2.1.0.0 T=52ms
action=opensearch
format=json
search=some%20search%20string
limit=50
namespace=0
suggest=true
Long json strings are truncated with [...]
30 days of archives are kept on the analytics cluster
/a/mw-log/archive/api.log-$dateStamp.gz
access from fluorine or stat1002
analytics-store from stat1002
Name | State | Data From |
---|---|---|
Limn | Dieing | TSV files |
Grafana | Alive | Graphite |
Dashiki | Alive | Who knows? |
Shiny | Own | All of the places? |
The other one.... | Alive | Graphite |
Graphite | Alive | Graphite |