metric 监控cpu 内存 部署

  • metric 安装

下载metricbeat-5.6.4-linux-x86_64.tar.gz,上传到服务器解压。

修改metricbeat.yml 文件,

主要是metricsets 选择自己要采集的选项,然后是es地址

#------------------------------- System Module -------------------------------
- module: system
  metricsets:
    # CPU stats
    - cpu

    # System Load stats
    - load

    # Per CPU core stats
    #- core

    # IO stats
    - diskio

    # Per filesystem stats
    #- filesystem

    # File system summary stats
    #- fsstat

    # Memory stats
    - memory

    # Network stats
    - network

    # Per process stats
    - process

    # Sockets (linux only)
    #- socket
  enabled: true
  period: 10s
  processes: ['.*']



#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["10.0.0.0:9200"]

 

修改 metricbeat.template.json 文件(该步骤可选做)

最下面几行添加分片数和副本数设置

  "settings": {
    "index.mapping.total_fields.limit": 10000,
    "index.refresh_interval": "15s",
    "index.number_of_shards": "3",
    "index.number_of_replicas": "0"
  },

运行metricbeat

nohup ./metricbeat -c metricbeat.yml &

导入dashboard

./scripts/import_dashboards -es http://10.0.0.0:9200

 去kibana创建 index pattern

 

去kibana dashboard 查看

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值