mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 03:42:07 +08:00
1、订正不同地方索引模版的shard数存在不一致的问题; 2、删除多余的template.sh,统一使用init_es_template.sh; 3、init_es_template.sh中,增加connect相关索引模版的初始化脚本,删除replica 和 zookeper索引模版的初始化脚本;
74 lines
1.7 KiB
Plaintext
74 lines
1.7 KiB
Plaintext
{
|
|
"order" : 10,
|
|
"index_patterns" : [
|
|
"ks_kafka_group_metric*"
|
|
],
|
|
"settings" : {
|
|
"index" : {
|
|
"number_of_shards" : "6"
|
|
}
|
|
},
|
|
"mappings" : {
|
|
"properties" : {
|
|
"group" : {
|
|
"type" : "keyword"
|
|
},
|
|
"partitionId" : {
|
|
"type" : "long"
|
|
},
|
|
"routingValue" : {
|
|
"type" : "text",
|
|
"fields" : {
|
|
"keyword" : {
|
|
"ignore_above" : 256,
|
|
"type" : "keyword"
|
|
}
|
|
}
|
|
},
|
|
"clusterPhyId" : {
|
|
"type" : "long"
|
|
},
|
|
"topic" : {
|
|
"type" : "keyword"
|
|
},
|
|
"metrics" : {
|
|
"properties" : {
|
|
"HealthScore" : {
|
|
"type" : "float"
|
|
},
|
|
"Lag" : {
|
|
"type" : "float"
|
|
},
|
|
"OffsetConsumed" : {
|
|
"type" : "float"
|
|
},
|
|
"HealthCheckTotal" : {
|
|
"type" : "float"
|
|
},
|
|
"HealthCheckPassed" : {
|
|
"type" : "float"
|
|
}
|
|
}
|
|
},
|
|
"groupMetric" : {
|
|
"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" : { }
|
|
} |