Monitoring etcd based k8s cluster deployment prometheus

Monitoring etcd based k8s cluster deployment prometheus

1. Background and Context Overview

Article related to the environment, prometheusmonitoring and grafanabasic environment is deployed. etcdBuilt-in metricsinterfaces for data collection, in etcdthrough the cluster node Renyiyitai ip:2379/metricswhether the data is normal to collect inspection.

curl -L http://localhost:2379/metrics

2, the configuration modification prometheus

Modified prometheusconfiguration, increased etcdmonitoring configuration, cluster configuration specified etcd ip:port, and specify the protocol type and a rear end arranged to skip verification CA

vim prometheus-configmap.yaml
- job_name: "etcd"
      scheme: https
      tls_config:
        insecure_skip_verify: true
      static_configs:
      - targets: ['172.16.1.100:2379','172.16.1.101:2379','172.16.1.110:2379']

3, check whether the entry into force

Open prometheusinterface to see targetif there are etcdrelated records

check queries value

4, a graphical configuration grafana

Import grafana graphic templates that can be from the grafanaofficial dashboardsearch and get the template idrecommended here 3070,9618

view graphs

this point, prometheusthe monitoring etcdis completed.

Guess you like

Origin www.cnblogs.com/ssgeek/p/11286558.html