Skip to content

Instantly share code, notes, and snippets.

@gianm
Created March 24, 2017 17:00
Show Gist options
  • Save gianm/2aa5fcaa0372355310da04b5c70d1e3a to your computer and use it in GitHub Desktop.
Save gianm/2aa5fcaa0372355310da04b5c70d1e3a to your computer and use it in GitHub Desktop.
dataSources:
- spec:
dataSchema:
dataSource: druid-metrics
parser:
type: string
parseSpec:
format: json
timestampSpec:
column: timestamp
format: auto
dimensionsSpec:
dimensions: []
metricsSpec:
- { type: count, name: count }
- { type: doubleSum, name: sum, fieldName: value }
- { type: doubleMin, name: min, fieldName: value }
- { type: doubleMax, name: max, fieldName: value }
- { type: approxHistogram, name: histogram, fieldName: value, resolution: 50 }
granularitySpec:
type: uniform
segmentGranularity: hour
queryGranularity: none
ioConfig:
type: realtime
tuningConfig:
type: realtime
maxRowsInMemory: 100000
intermediatePersistPeriod: PT10M
windowPeriod: PT10M
buildV9Directly: true
properties:
http.port: 9999
zookeeper.connect: 'zk.example.com'
zookeeper.timeout: PT30S
task.partitions: 1
task.replicants: 1
topicPattern.priority: 10
serialization.format: smile
druidBeam.taskLocator: overlord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment