mirror of https://github.com/apache/druid.git
77 lines
2.0 KiB
JSON
77 lines
2.0 KiB
JSON
{
|
|
"dataSources" : {
|
|
"metrics-kafka" : {
|
|
"spec" : {
|
|
"dataSchema" : {
|
|
"dataSource" : "metrics-kafka",
|
|
"parser" : {
|
|
"type" : "string",
|
|
"parseSpec" : {
|
|
"timestampSpec" : {
|
|
"column" : "timestamp",
|
|
"format" : "auto"
|
|
},
|
|
"dimensionsSpec" : {
|
|
"dimensions" : [],
|
|
"dimensionExclusions" : [
|
|
"timestamp",
|
|
"value"
|
|
]
|
|
},
|
|
"format" : "json"
|
|
}
|
|
},
|
|
"granularitySpec" : {
|
|
"type" : "uniform",
|
|
"segmentGranularity" : "hour",
|
|
"queryGranularity" : "none"
|
|
},
|
|
"metricsSpec" : [
|
|
{
|
|
"type" : "count",
|
|
"name" : "count"
|
|
},
|
|
{
|
|
"name" : "value_sum",
|
|
"type" : "doubleSum",
|
|
"fieldName" : "value"
|
|
},
|
|
{
|
|
"fieldName" : "value",
|
|
"name" : "value_min",
|
|
"type" : "doubleMin"
|
|
},
|
|
{
|
|
"type" : "doubleMax",
|
|
"name" : "value_max",
|
|
"fieldName" : "value"
|
|
}
|
|
]
|
|
},
|
|
"ioConfig" : {
|
|
"type" : "realtime"
|
|
},
|
|
"tuningConfig" : {
|
|
"type" : "realtime",
|
|
"intermediatePersistPeriod" : "PT10M",
|
|
"windowPeriod" : "PT10M"
|
|
}
|
|
},
|
|
"properties" : {
|
|
"task.partitions" : "1",
|
|
"task.replicants" : "1",
|
|
"topicPattern" : "metrics"
|
|
}
|
|
}
|
|
},
|
|
"properties" : {
|
|
"zookeeper.connect" : "localhost",
|
|
"druid.discovery.curator.path" : "/druid/discovery",
|
|
"druid.selectors.indexing.serviceName" : "druid/overlord",
|
|
"commit.periodMillis" : "15000",
|
|
"consumer.numThreads" : "2",
|
|
"kafka.zookeeper.connect" : "localhost",
|
|
"kafka.group.id" : "tranquility-kafka"
|
|
}
|
|
}
|