forked from nagyistge/plywood-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml.sample
35 lines (25 loc) · 1.36 KB
/
config.yaml.sample
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
# This is am example configuration file for Pivot, here you can add data sources as well as configure Pivot settings
# You can start by using this sample config by running `cp config_sample.yaml config.yaml`
# The port on which the Pivot server will listen on
port: 9091
# Run in verbose mode and print the querries sent to the server
#verbose: true
# A Druid broker node that can serve data (only used if you have Druid based data source)
druidHost: localhost:8082
useSegmentMetadata: true
# The data sources that you have configured, these will appear, in order, inside the navigation menu of Pivot
# In general there can be two types of 'engine':
# - native: a JSON file that is crunched within plywood itself (useful for small datasets and testing)
# - druid: a Druid dataSource
dataSources:
# Here is an example of a Druid data source, this one is taken from the Druid wikipedia demo
# It will work for you if you have setup the demo Wikipedia Editstream scraper
- name: wiki
title: Wikipedia Edits
engine: druid # Set the engine to druid
source: wikipedia # The druid dataSource
timeAttribute: time # The time attribute (this needs to be set for Druid, but could be anything. You should leave it as 'time')
# This is a real time data source so always assume it is up to date
refreshRule:
rule: realtime
#subsetFilter: $language == 'de'