zoukankan      html  css  js  c++  java
  • elasticSearch2.4与grafana,stagemonitor集成做监控需要执行的mapping

    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" }
    }
    }
    }
    }

  • 相关阅读:
    redis限流器的设计
    使用HystrixCommand封装http请求
    自定义的最简单的可回调的线程任务CallbackableFeatureTask(模仿google的ListenableFutureTask)
    通用的规则匹配算法(原创)(java+.net)
    redis缓存切面实现(支持缓存key的spel表达式)
    使用join和CountDownLatch来等待线程结束
    shell日常实战练习——通过监视用户登陆找到入侵者
    Nginx web服务器
    nginx——防盗链功能
    nginx 隐藏nginx版本号
  • 原文地址:https://www.cnblogs.com/qiumingcheng/p/6360903.html
Copyright © 2011-2022 走看看