热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

elasticSearch2.4与grafana,stagemonitor集成做监控需要执行的mapping

PUT_templatestagemonitor-metrics-{template:stagemonitor-metrics-*,settings:{index:{

PUT /_template/stagemonitor-metrics-
{
"template": "stagemonitor-metrics-*",
"settings": {
"index": {
"refresh_interval": "5s"
}
},
"mappings": {
"_default_": {
"dynamic_templates": [
{
"strings": {
"match": "*",
"match_mapping_type": "string",
"mapping": { "type": "string", "doc_values": true, "index": "not_analyzed" }
}
}
],
"_all": { "enabled": false },
"_source": { "enabled": false },
"properties": {
"@timestamp": { "type": "date", "doc_values": true },
"measurement_start": { "type": "date","doc_values": true },
"count": { "type": "integer", "doc_values": true, "index": "no" },
"m1_rate": { "type": "float", "doc_values": true, "index": "no" },
"m5_rate": { "type": "float", "doc_values": true, "index": "no" },
"m15_rate": { "type": "float", "doc_values": true, "index": "no" },
"max": { "type": "integer", "doc_values": true, "index": "no" },
"mean": { "type": "integer", "doc_values": true, "index": "no" },
"mean_rate": { "type": "float", "doc_values": true, "index": "no" },
"median": { "type": "float", "doc_values": true, "index": "no" },
"min": { "type": "float", "doc_values": true, "index": "no" },
"p25": { "type": "float", "doc_values": true, "index": "no" },
"p75": { "type": "float", "doc_values": true, "index": "no" },
"p95": { "type": "float", "doc_values": true, "index": "no" },
"p98": { "type": "float", "doc_values": true, "index": "no" },
"p99": { "type": "float", "doc_values": true, "index": "no" },
"p999": { "type": "float", "doc_values": true, "index": "no" },
"std": { "type": "float", "doc_values": true, "index": "no" },
"value": { "type": "float", "doc_values": true, "index": "no" },
"value_boolean": { "type": "boolean", "doc_values": true, "index": "no" },
"value_string": { "type": "string", "doc_values": true, "index": "no" }
}
}
}
}


推荐阅读
author-avatar
学海无涯
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有