table of Contents
Monitoring etcd based k8s cluster deployment prometheus
1. Background and Context Overview
Article related to the environment, prometheus
monitoring and grafana
basic environment is deployed. etcd
Built-in metrics
interfaces for data collection, in etcd
through the cluster node Renyiyitai ip:2379/metrics
whether the data is normal to collect inspection.
curl -L http://localhost:2379/metrics
2, the configuration modification prometheus
Modified prometheus
configuration, increased etcd
monitoring 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 prometheus
interface to see target
if there are etcd
related records
check queries value
4, a graphical configuration grafana
Import grafana graphic templates that can be from the grafana
official dashboard
search and get the template id
recommended here 3070,9618
view graphs
this point, prometheus
the monitoring etcd
is completed.