Skip to content

Instantly share code, notes, and snippets.

@gianm
Created April 25, 2016 23:28
Show Gist options
  • Save gianm/50817f42f27de5e6cdc50fe44539d0fb to your computer and use it in GitHub Desktop.
Save gianm/50817f42f27de5e6cdc50fe44539d0fb to your computer and use it in GitHub Desktop.
dataSources:
- spec:
dataSchema:
dataSource: 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
tuningConfig:
type: realtime
windowPeriod: PT10M
buildV9Directly: true
properties:
topicPattern: metrics
properties:
zookeeper.connect: 'zk.example.com'
kafka.zookeeper.connect: 'zk.example.com/kafka'
kafka.group.id: 'metrics-druid'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment