Stats being reported under different cased versions of a name (e.g. dnsLookups and dnslookups) breaks stat archiving to BigQuery
Nov 02 16:00:10 pure-journey-3547 app/web.1: 2014/11/03 00:00:10 Unable to archive dimension host to BigQuery: Unable to list keys for dimension: host
Nov 02 17:00:16 pure-journey-3547 app/web.1: 2014/11/03 01:00:15 Unable to archive dimension country to BigQuery: googleapi: Error 400: Field dnslookups already exists in schema
Nov 02 18:00:09 pure-journey-3547 app/web.1: 2014/11/03 02:00:09 Unable to archive dimension country to BigQuery: googleapi: Error 400: Field dnslookups already exists in schema
Nov 02 19:00:06 pure-journey-3547 app/web.1: 2014/11/03 03:00:05 Unable to archive dimension country to BigQuery: googleapi: Error 400: Field dnslookups already exists in schema
Nov 02 20:00:09 pure-journey-3547 app/web.1: 2014/11/03 04:00:09 Unable to archive dimension country to BigQuery: googleapi: Error 400: Field dnslookups already exists in schema
So there were two problems:
- Case sensitivity issue with dimension keys. We had both dnsLookups and dnslookups, which statshub is treating as two different fields but which BigQuery can't tell apart.
- The host dimension has gotten out of hand. We have almost 700,000 different hosts, which is just too much to archive. We need to figure out a better way of tracking per-host statistics (if we even want to continue doing so at all, as I don't think we're using them much).
As a quick fix, I removed the stats for dnsLookups and dnslookups, since these were just from old test versions of the software anyway. And, I disabled archiving of the hosts dimension for now.
Ox, what is your recommendation for the longer-term course of action here, and when (e.g., which milestone) do you think we should target it to be done?
The case sensitivity issue needs to be addressed, but is not urgent.
I think we should actually just stop archiving the host dimension. We can always query up-to-date stats directly from statshub. So on this, I think there's no action required.
FYI - we actually have stopped archiving the host dimension. Renaming ticket to reflect that it's now just about addressing case sensitivity.
I don't think we need this anymore, feel free to reopen.