亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

kibana使用metricbeat性能監控

發布時間:2020-07-04 15:12:20 來源:網絡 閱讀:1566 作者:hanye韓也 欄目:系統運維
安裝下載
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
sudo apt-get update && sudo apt-get install metricbeat
配置啟動
 cat /etc/metricbeat/metricbeat.yml |grep -vE "^#|^$"
      metricbeat.config.modules:
     # Glob pattern for configuration loading
     path: ${path.config}/modules.d/*.yml
     # Set to true to enable config reloading
     reload.enabled: false
     # Period on which files under path should be checked for changes
     #reload.period: 10s
   setup.template.settings:
     index.number_of_shards: 1
     index.codec: best_compression
     #_source.enabled: false
   setup.kibana:
     # Kibana Host
     # Scheme and port can be left out and will be set to the default (http and 5601)
     # In case you specify and additional path, the scheme is required: http://localhost:5601/path
     # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
     host: "192.168.1.43:5601"
     # Kibana Space ID
     # ID of the Kibana Space into which the dashboards should be loaded. By default,
     # the Default Space will be used.
     #space.id:
   output.elasticsearch:
     # Array of hosts to connect to.
     hosts: ["192.168.1.43:9200"]
     # Enabled ilm (beta) to use index lifecycle management instead daily indices.
     #ilm.enabled: false
     # Optional protocol and basic auth credentials.
     #protocol: "https"
     #username: "elastic"
     #password: "changeme"
     # The Logstash hosts
     #hosts: ["localhost:5044"]
     # Optional SSL. By default is off.
     # List of root certificates for HTTPS server verifications
     #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
     # Certificate for SSL client authentication
     #ssl.certificate: "/etc/pki/client/cert.pem"
     # Client Certificate Key
     #ssl.key: "/etc/pki/client/cert.key"
   processors:
     - add_host_metadata: ~
     - add_cloud_metadata: ~
啟動和啟動
update-rc.d metricbeat defaults 95 10
/etc/init.d/metricbeat restart   #重新啟動
metricbeat setup --dashboards  #啟動dashboards
查看kibana的dashboards

kibana使用metricbeat性能監控

啟動監控服務模塊(nginx,redis,mysql)
metricbeat  modules enable redis
metricbeat  modules enable mysql
metricbeat  modules enable nginx
查看服務性能監控

kibana使用metricbeat性能監控
kibana使用metricbeat性能監控

查看啟動模塊
 metricbeat modules list
     #Enabled模塊為啟用模塊 Disabled模塊為未啟用模塊
.

kibana使用metricbeat性能監控

啟動新模塊
啟用新模塊命令,例如啟用nginx模塊
metricbeat modules enable nginx
設置監控nginx
root@debian43:/etc/metricbeat/modules.d# cat nginx.yml 
# Module: nginx
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/6.8/metricbeat-module-nginx.html
- module: nginx
  metricsets:
    - stubstatus
  enabled: true
  period: 10s
  # Nginx hosts
  hosts: ["http://127.0.0.1"]
  # Path to server status. Default server-status
  server_status_path: "nginx_status"
  #username: "user"
  #password: "secret"
nginx設置
     server {
   server_name _;
   location /nginx_status {
       stub_status on;
       access_log off;
      allow 127.0.0.1;
      deny all;
      }
  }

kibana使用metricbeat性能監控

設置監控mysql
root@debian43:/etc/metricbeat/modules.d# cat mysql.yml 
# Module: mysql
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/6.8/metricbeat-module-mysql.html

- module: mysql
  metricsets:
    - status
  #  - galera_status
  period: 10s

  # Host DSN should be defined as "user:pass@tcp(127.0.0.1:3306)/"
  # The username and password can either be set in the DSN or using the username
  # and password config options. Those specified in the DSN take precedence.
  hosts: ["tcp(192.168.1.39:3306)/"]

  # Username of hosts. Empty by default.
  username: root

  # Password of hosts. Empty by default.
  password: 123456
#- module: 45-mysql
#  metricsets:
#    - status
#  period: 10s
#  hosts: ["tcp(192.168.1.45:3306)/"]
#  username: ops
#  password: ops12300.

kibana使用metricbeat性能監控

設置監控redis
   - module: redis
     hosts: ["192.168.1.43:6379"]
     metricsets: ["info","keyspace"]
     enables: true
     period: 10s
     password: password
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

旅游| 东乡县| 山东省| 张家港市| 正蓝旗| 若羌县| 南充市| 文水县| 尚义县| 吉安市| 台东市| 镇宁| 嵊泗县| 资兴市| 黔西县| 石柱| 同仁县| 富川| 永善县| 阿克陶县| 夏河县| 靖边县| 合山市| 攀枝花市| 万源市| 耒阳市| 沛县| 岳西县| 尚义县| 内江市| 祁阳县| 星座| 庐江县| 健康| 阳东县| 景德镇市| 巫溪县| 苍南县| 北碚区| 山东| 丰县|