mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
85 lines
2.1 KiB
Plaintext
85 lines
2.1 KiB
Plaintext
PUT _template/ks_kafka_zookeeper_metric
|
|
{
|
|
"order" : 10,
|
|
"index_patterns" : [
|
|
"ks_kafka_zookeeper_metric*"
|
|
],
|
|
"settings" : {
|
|
"index" : {
|
|
"number_of_shards" : "10"
|
|
}
|
|
},
|
|
"mappings" : {
|
|
"properties" : {
|
|
"routingValue" : {
|
|
"type" : "text",
|
|
"fields" : {
|
|
"keyword" : {
|
|
"ignore_above" : 256,
|
|
"type" : "keyword"
|
|
}
|
|
}
|
|
},
|
|
"clusterPhyId" : {
|
|
"type" : "long"
|
|
},
|
|
"metrics" : {
|
|
"properties" : {
|
|
"AvgRequestLatency" : {
|
|
"type" : "double"
|
|
},
|
|
"MinRequestLatency" : {
|
|
"type" : "double"
|
|
},
|
|
"MaxRequestLatency" : {
|
|
"type" : "double"
|
|
},
|
|
"OutstandingRequests" : {
|
|
"type" : "double"
|
|
},
|
|
"NodeCount" : {
|
|
"type" : "double"
|
|
},
|
|
"WatchCount" : {
|
|
"type" : "double"
|
|
},
|
|
"NumAliveConnections" : {
|
|
"type" : "double"
|
|
},
|
|
"PacketsReceived" : {
|
|
"type" : "double"
|
|
},
|
|
"PacketsSent" : {
|
|
"type" : "double"
|
|
},
|
|
"EphemeralsCount" : {
|
|
"type" : "double"
|
|
},
|
|
"ApproximateDataSize" : {
|
|
"type" : "double"
|
|
},
|
|
"OpenFileDescriptorCount" : {
|
|
"type" : "double"
|
|
},
|
|
"MaxFileDescriptorCount" : {
|
|
"type" : "double"
|
|
}
|
|
}
|
|
},
|
|
"key" : {
|
|
"type" : "text",
|
|
"fields" : {
|
|
"keyword" : {
|
|
"ignore_above" : 256,
|
|
"type" : "keyword"
|
|
}
|
|
}
|
|
},
|
|
"timestamp" : {
|
|
"format" : "yyyy-MM-dd HH:mm:ss Z||yyyy-MM-dd HH:mm:ss||yyyy-MM-dd HH:mm:ss.SSS Z||yyyy-MM-dd HH:mm:ss.SSS||yyyy-MM-dd HH:mm:ss,SSS||yyyy/MM/dd HH:mm:ss||yyyy-MM-dd HH:mm:ss,SSS Z||yyyy/MM/dd HH:mm:ss,SSS Z||epoch_millis",
|
|
"type" : "date"
|
|
}
|
|
}
|
|
},
|
|
"aliases" : { }
|
|
} |