forked from growthbook/growthbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.yml
45 lines (45 loc) · 1.12 KB
/
config.sample.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
datasources:
warehouse:
type: postgres
name: Main Warehouse
params:
host: localhost
port: 5432
user: root
password: ${POSTGRES_PW} # use env for secrets
database: growthbook
settings:
userIdTypes:
- userIdType: user_id
description: Logged-in user id
queries:
exposure:
- id: user_id
name: Logged-in user experiments
userIdType: user_id
query: >
SELECT
user_id,
received_at as timestamp,
experiment_id,
variation_id,
context_location_country as country
FROM
experiment_viewed
dimensions:
- country
metrics:
signups:
type: binomial
name: Sign Ups
datasource: warehouse
userIdTypes:
- user_id
queryFormat: sql
sql: SELECT user_id, received_at as timestamp FROM signups
dimensions:
subscription_plan:
name: Subscription Plan
datasource: warehouse
userIdType: user_id
sql: SELECT user_id, plan as value from subscriptions