mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +08:00
117 lines
2.9 KiB
Plaintext
117 lines
2.9 KiB
Plaintext
PUT _template/ks_kafka_topic_metric
|
|
{
|
|
"order" : 10,
|
|
"index_patterns" : [
|
|
"ks_kafka_topic_metric*"
|
|
],
|
|
"settings" : {
|
|
"index" : {
|
|
"number_of_shards" : "10"
|
|
}
|
|
},
|
|
"mappings" : {
|
|
"properties" : {
|
|
"brokerId" : {
|
|
"type" : "long"
|
|
},
|
|
"routingValue" : {
|
|
"type" : "text",
|
|
"fields" : {
|
|
"keyword" : {
|
|
"ignore_above" : 256,
|
|
"type" : "keyword"
|
|
}
|
|
}
|
|
},
|
|
"topic" : {
|
|
"type" : "keyword"
|
|
},
|
|
"clusterPhyId" : {
|
|
"type" : "long"
|
|
},
|
|
"metrics" : {
|
|
"properties" : {
|
|
"BytesIn_min_15" : {
|
|
"type" : "float"
|
|
},
|
|
"Messages" : {
|
|
"type" : "float"
|
|
},
|
|
"BytesRejected" : {
|
|
"type" : "float"
|
|
},
|
|
"PartitionURP" : {
|
|
"type" : "float"
|
|
},
|
|
"HealthCheckTotal" : {
|
|
"type" : "float"
|
|
},
|
|
"ReplicationCount" : {
|
|
"type" : "float"
|
|
},
|
|
"ReplicationBytesOut" : {
|
|
"type" : "float"
|
|
},
|
|
"ReplicationBytesIn" : {
|
|
"type" : "float"
|
|
},
|
|
"FailedFetchRequests" : {
|
|
"type" : "float"
|
|
},
|
|
"BytesIn_min_5" : {
|
|
"type" : "float"
|
|
},
|
|
"HealthScore" : {
|
|
"type" : "float"
|
|
},
|
|
"LogSize" : {
|
|
"type" : "float"
|
|
},
|
|
"BytesOut" : {
|
|
"type" : "float"
|
|
},
|
|
"BytesOut_min_15" : {
|
|
"type" : "float"
|
|
},
|
|
"FailedProduceRequests" : {
|
|
"type" : "float"
|
|
},
|
|
"BytesIn" : {
|
|
"type" : "float"
|
|
},
|
|
"BytesOut_min_5" : {
|
|
"type" : "float"
|
|
},
|
|
"MessagesIn" : {
|
|
"type" : "float"
|
|
},
|
|
"TotalProduceRequests" : {
|
|
"type" : "float"
|
|
},
|
|
"HealthCheckPassed" : {
|
|
"type" : "float"
|
|
}
|
|
}
|
|
},
|
|
"brokerAgg" : {
|
|
"type" : "keyword"
|
|
},
|
|
"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",
|
|
"index" : true,
|
|
"type" : "date",
|
|
"doc_values" : true
|
|
}
|
|
}
|
|
},
|
|
"aliases" : { }
|
|
} |