lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Stats being reported under different cased versions of a name (e.g. dnsLookups and dnslookups) breaks stat archiving to BigQuery

Open oxtoacart opened this issue 12 years ago • 5 comments

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 

oxtoacart avatar Nov 03 '14 20:11 oxtoacart

So there were two problems:

  1. 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.
  2. 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.

oxtoacart avatar Nov 03 '14 22:11 oxtoacart

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?

scouttle avatar Nov 12 '14 18:11 scouttle

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.

oxtoacart avatar Nov 12 '14 18:11 oxtoacart

FYI - we actually have stopped archiving the host dimension. Renaming ticket to reflect that it's now just about addressing case sensitivity.

oxtoacart avatar Dec 15 '14 18:12 oxtoacart

I don't think we need this anymore, feel free to reopen.

xiam avatar Apr 25 '16 16:04 xiam