# WIP Local prometheus to graph etcd

Ability to graph etcd metrics locally to identify issues

## Prometheus

```
scrape_configs:
- job_name: etcd
  static_configs:
  - targets: ['ETCD_LISTENING_IP:2379']
  scheme: https
  tls_config:
  # CA certificate to validate API server certificate with.
    ca_file: /etc/kubernetes/ssl/kube-ca.pem
    cert_file: /etc/kubernetes/ssl/kube-etcd-x-x-x-x.pem
    key_file: /etc/kubernetes/ssl/kube-etcd-x-x-x-x-key.pem

```

```
docker run -d --user=0 --net=host -v /etc/kubernetes:/etc/kubernetes:ro -v /etc/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
```