Collect website request stats into InfluxDB
The Grafana dashboards should have statistics on HTTP requests to our different websites. Apart from the usefulness of such graphs on their own, we could for example correlate peaks in CPU use to which particular website had a peak in requests.
We can feed the complete access logs to InfluxDB and then do aggregate queries on that. I experimented with this a few weeks ago.
- Enable the Telegraf 'logparser' input plugin to parse access logs.
- Add continuous queries to aggregate the data into another retention policy. This will let us keep longer-term statistics on request count per $time (minute I guess?), per website, per status code. but not individual requests.
- Add graphs to Grafana dashboards.
- If possible, backfill the database with existing logs.
(moved from https://phabricator.kde.org/T13070)