You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/11/01 16:35:22 UTC

[GitHub] [couchdb-helm] sag opened a new pull request #57: Update default CouchDB tag to 3.2.0 and expose Prometheus support.

sag opened a new pull request #57:
URL: https://github.com/apache/couchdb-helm/pull/57


   #### What this PR does / why we need it:
   
   Bump CouchDB version to 3.2.0
   
   CouchDB 3.2.0 adds built-in prometheus style metrics[^1].  These metrics are exposed at `/_node/_local/_prometheus`.  Since this is part of the main http server, this endpoint is authenticated.  CouchDB 3.2.0 Also adds configuration to expose the new metrics on another unauthenticated port.  This PR also adds extra support for that new configuration.
   
   ##### New Variables
   
   New variables that match the new CouchDB configuration [^2] have been added.
   `prometheusPort.enabled` - when true the new feature will be enabled
   `prometheusPort.port` - the new unauthenticated port
   `prometheusPort.bind_address` - the address to listen on
   
   When `prometheusPort.enabled` is true:
   - A new prometheus.ini is added to the /defaults.d directory
   - A metrics port is added to the headless service
   - The new metrics port is opened up in the NetworkSecurityPolicy
   - The new metrics port is exposed on the CouchDB container
   
   This makes it possible to have prometheus scrape CouchDB metrics using a ServiceMonitor such as
   ```yaml
   apiVersion: monitoring.coreos.com/v1
   kind: ServiceMonitor
   metadata:
     name: couchdb
     labels:
       release: prometheus-stack
   spec:
     selector:
       matchLabels:
         app:  couchdb
     endpoints:
     - port: metrics 
       path: /_node/_local/_prometheus
   ```
   
   [^1] :  https://docs.couchdb.org/en/latest/api/server/common.html#api-server-prometheus
   [^2] : https://docs.couchdb.org/en/latest/config/misc.html#configuration-of-prometheus-endpoint
   
   #### Special notes for your reviewer:
   
   #### Checklist
   [Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.
   - [x] Chart Version bumped
   - [x] e2e tests pass
   - [x] Variables are documented in the README.md
   - [x] Chart tgz added to /docs and index updated
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-helm] kocolosk commented on pull request #57: Update default CouchDB tag to 3.2.0 and expose Prometheus support.

Posted by GitBox <gi...@apache.org>.
kocolosk commented on pull request #57:
URL: https://github.com/apache/couchdb-helm/pull/57#issuecomment-966522420


   Thanks for this contribution! It looks quite nice, happy to merge it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb-helm] kocolosk merged pull request #57: Update default CouchDB tag to 3.2.0 and expose Prometheus support.

Posted by GitBox <gi...@apache.org>.
kocolosk merged pull request #57:
URL: https://github.com/apache/couchdb-helm/pull/57


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org