medic / cht-watchdog

Configuration for deploying a monitoring/alerting stack for CHT
GNU Affero General Public License v3.0
4 stars 7 forks source link

Investigate couchdb prometheus endpoint #87

Open garethbowen opened 1 year ago

garethbowen commented 1 year ago

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 commented 1 year ago

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

jkuester commented 3 weeks ago

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...