<p>I've got prometheus running ontop of kubernetes with the following scrape config, as described by the documentation. Where the .pem files are located on disk within the prometheus container.</p>

<p><a href="https://prometheus.io/docs/prometheus/latest/configuration/configuration/#" rel="nofollow noreferrer">https://prometheus.io/docs/prometheus/latest/configuration/configuration/#</a></p>

<pre><code>scrape_configs:
- job_name: etcd
  static_configs:
  - targets: ['10.0.0.222:2379','10.0.0.221:2379','10.0.0.220:2379']
  tls_config:
  # CA certificate to validate API server certificate with.
    ca_file: /prometheus/ca.pem
    cert_file: /prometheus/cert.pem
    key_file: /prometheus/key.pem
</code></pre>

<p>I see that etcd as a target in prometheus, however its returning garbage.</p>

<p><a href="https://i.imgur.com/rdRI4V7.png" rel="nofollow noreferrer">https://i.imgur.com/rdRI4V7.png</a></p>

<p>I am able to hit the metrics endpoint doing a local curl by passing in the client certificate information like so.</p>

<p>What am I doing wrong?</p>

<pre><code>sudo curl --cacert /etc/ssl/etcd/ssl/ca.pem https://127.0.0.1:2379/metrics -L --cert /etc/ssl/etcd/ssl/node-kubemaster-rwva1-prod-2.pem --key /etc/ssl/etcd/ssl/node-kubemaster-rwva1-prod-2-key.pem^C
</code></pre>

<p>You need to add <code>scheme: https</code> for HTTPS scraping.</p>
