Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate couchdb prometheus endpoint #87

Open
garethbowen opened this issue Sep 13, 2023 · 2 comments
Open

Investigate couchdb prometheus endpoint #87

garethbowen opened this issue Sep 13, 2023 · 2 comments

Comments

@garethbowen
Copy link
Member

Now that we're on CouchDB 3.3 we can choose to use their prometheus endpoint: https://docs.couchdb.org/en/stable/api/server/common.html#get--_node-node-name-_prometheus

There are some configuration options we may need to tweak to enable it properly: https://docs.couchdb.org/en/stable/config/misc.html#configuration-of-prometheus-endpoint

I had a quick scan of the metrics and there are heaps of them but they don't look very useful.

@mrjones-plip
Copy link
Contributor

@garethbowen - part of the investigation, aside from if it's worth while to enable, should also be if we want to expose this:

  • on a public API endpoint
  • without a password per the config you cited
  • how we'll support multi-node deployments given the couch nodes don't/won't have public IPs (reverse proxy?)

@jkuester
Copy link
Collaborator

IMHO we should consider adding a new API endpoint similar to /api/v1/express-metrics that will just proxy directly to the Couch /prometheus endpoint. That way, when Couch adds new metrics, we do not have to make a code change to cht-core to expose them.

The main complexity is going to be figuring out how to deal with multi-node clusters...

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

No branches or pull requests

3 participants