Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

How to get metrics from etcd after migration to etcdmanager? #286

Closed
michalschott opened this issue Dec 18, 2019 · 5 comments
Closed

How to get metrics from etcd after migration to etcdmanager? #286

michalschott opened this issue Dec 18, 2019 · 5 comments

Comments

@michalschott
Copy link

Hi,

I'm using datadog for monitoring solution, but I feel like this is more generic question. Previously (before etcdmanager was introduced) port 4001 and 4002 were accessible, and if I recall correctly these are not exposed on nodes anymore.

Previously, our datadog check was configured like this:

---
init_config:
instances:
  - url: http://etcd-a.internal.CLUSTER_NAME:4001

What's the correct url to use now?

@carpenterbees
Copy link

carpenterbees commented Dec 19, 2019

After upgrade to etcd v3, metrics endpoint is available only on https port which requires auth with TLS certificate.
Your monitoring client has to provide certificate to be able to read from etcd nodes.

Another solution is to configure custom url:
Support listen-metrics-url

Problem with this solution - how to pass argument or environment variable via kops cluster manifest.

@michalschott
Copy link
Author

Hi @carpenterbees, thanks for pointing me to proper PR. I was able to expose the endpoint and scratch the metrics again. Raised a PR in kops to see if we can enable this by default.

@themoah
Copy link

themoah commented Mar 9, 2020

@michalschott can you, please, share how you've exposed metrics ? I'm having same problem with datadog.
thanks !

@michalschott
Copy link
Author

michalschott commented Mar 9, 2020

@themoah kubernetes/kops#8162 Until this is merged, I'm using dummy-etcd pods approach suggested by DD support.

@themoah
Copy link

themoah commented Mar 9, 2020

@michalschott can you share the configuration of the pods ? Appreciate the help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants