Questions tagged [keen-io]

keen-io refers to the libraries and APIs produced for event analytics by the "Keen IO" company.

Keen IO provides a modern and massively scalable analytics API including libraries for data collection, querying, and visualization.

Keen IO collects arbitrary events in JSON format, automatically ingesting any new events and rich custom properties you send. Keen IO's query APIs make it straightforward to run counts, sums, segmentation, and more.

Keen IO is typically viewed as an alternative to building and maintaining your own in-house analytics backend. It is commonly used to build custom/advanced analytics solutions, embed analytics reports into apps, and white label analytics for customers.

132 questions
3
votes
1 answer

How can I customize when a week starts in a Keen IO query?

Is it possible to define the start and end day of a 'week' in the Keen IO query language? I have a query like: var query = new Keen.Query("count", { eventCollection: "add_to_carts", timeframe: "previous_2_weeks", interval:…
Michelle Wetzler
  • 734
  • 4
  • 16
3
votes
1 answer

How-to install and run keen/dashboards

I forked the keen/dashboards github repo and I am trying to create a Dockerfile for running the dashboard in a Docker container. My fork: https://github.com/adityai/dashboards I am not familiar with node and npm. The Docker image was built…
3
votes
2 answers

"Resource Not Found" message received when sending a query to Keen IO API

I am using Advanced REST Client tool to test a data pull from the Keen IO API, and think getting the request right, but not getting the data. Getting "resource not found" error. This can also be done via CURL. Headers: Authorization: Content-Type:…
jandwiches
  • 487
  • 3
  • 7
3
votes
1 answer

Keen.js Hardcode graph data

I downloaded a sample which users Keen.js to pull data for a pie chart. I just need to hardcode some data into the chart, For example 50% pass, 50% fail. var pageviews_static = new Keen.Query("count", { eventCollection: "pageviews", groupBy:…
user3440639
3
votes
2 answers

Large number of threads under unicorn

I am in the process of debugging some Posgtres connection leaks in our application. Few days back we suddenly crossed 100 connections when we should not be - coz we just have 8 unicorn workers and a sidekiq process (25 threads). I was looking at…
Steve Robinson
  • 3,759
  • 3
  • 36
  • 57
3
votes
1 answer

How should I attack a large GroupBy recordset in a JavaScript heavy stack?

I'm currently using Node.js and Firebase on a project, and I love both. My challenge is that I need to store millions of sales order rows that would look something like this: { companyKey: 'xxx', orderKey : 'xxx', rowKey : 'xxx', itemKey :…
Will Lovett
  • 1,241
  • 3
  • 18
  • 35
3
votes
1 answer

Get top 3 results

I have a query using the analysis type count, I've got it grouped by type and it is returning me 12 different groups with varying values. Would it be possible to get only the 3 groups with the highest count from that query?
3
votes
1 answer

How are scoped keys to be used for writes? (Scoped write keys return 401 unauthorized.)

How are scope keys used for write operations? When I try to use a (scoped) write key, the API responds 401 Unauthorized; the "master write key" works like a charm. Using a scope key for read operations works as well. I assume my selection of filters…
Cornelius
  • 830
  • 11
  • 31
3
votes
1 answer

Can I get to response headers in Loopback afterRemote hook?

I have a Loopback model on which I am logging requests to keen.io using the afterRemote hook. http://docs.strongloop.com/display/public/LB/Remote+hooks#Remotehooks-ctx.result I am also using the response-time package to add the response time header…
duffn
  • 3,690
  • 8
  • 33
  • 68
3
votes
1 answer

Ruby on Rails - Using the Data from JSON (style) Array

Ruby 'NooB' question. I'm using the gem 'keen', to run a query that returns a (JSON style) multi line string: query -@a = Keen.median returns (array) [{"value"=>3, "timeframe"=>{"start"=>"2015-03-01T02:00:00.000Z",…
3
votes
1 answer

Keen IO Junks data with KeenIOClient for Android

Trying to use IO Keen for Android, i'm using Android Sample available here (https://github.com/keenlabs/KeenClient-Android-Sample) the data is being sent, but they are always duplicate and the second always contains junk. The HashMap event is clean…
Nicolas Charpentier
  • 1,088
  • 1
  • 10
  • 21
3
votes
2 answers

How to call multiple collections of Keen IO for a single graph?

Can I call multiple collections of Keen IO for a single visualization graph? Let's say I have a collection named orders: { "order_number": "dfdfd2323", "order_price": 21.00, } And I have another collection named adjustments: { …
ishanbakshi
  • 1,915
  • 3
  • 19
  • 37
3
votes
1 answer

Keen IO Dashboards JSON import/export

Is there anything in Keen IO dashboards that makes it easy to import/export dashboards as JSON? I've looked at example layouts, but I don't see a trace of JSON.
user3148164
  • 113
  • 5
3
votes
2 answers

Sharing objects across routes

Trying out Keen.io and wondering if it's possible to NOT have to call "configure" in each file that will make a call to the Keen API? Their docs from here: https://github.com/keenlabs/KeenClient-node show how to configure an instance which I use in…
tommyd456
  • 10,443
  • 26
  • 89
  • 163
3
votes
1 answer

Class 'KeenIO\Client\KeenIOClient' not found

I am including Keen in my product (code snippet below) require INCLUDE_DIR . '/vendor/autoload.php'; // Autoloader for Composer (https://getcomposer.org/) use KeenIO\Client\KeenIOClient; class Statistics extends Model { …
1
2
3
8 9