smithsz opened a new pull request, #6065:
URL: https://github.com/apache/couchdb/pull/6065

   ## Overview
   
   Expose new Prometheus metrics for monitoring:
   - Clouseau search connectivity status
   - Total database count in cluster
   - IOQ active channels and request counts
   - Smoosh compaction job statistics (active/starting/waiting)
   
   Improves observability of core CouchDB subsystems.
   
   ## Testing recommendations
   
   ```
   $ curl -u foo:bar http://127.0.0.1:25984/_node/_local/_prometheus | grep -E 
'^couchdb_(clouseau_connected|database_count|ioq_active|smoosh_)'
   ```
   
   ## Example
   
   ```
   # HELP couchdb_clouseau_connected clouseau connectivity status
   # TYPE couchdb_clouseau_connected gauge
   couchdb_clouseau_connected 0
   
   # HELP couchdb_database_count total database count
   # TYPE couchdb_database_count gauge
   couchdb_database_count 2
   
   # HELP couchdb_ioq_active_channels IOQ active channels
   # TYPE couchdb_ioq_active_channels gauge
   couchdb_ioq_active_channels 0
   
   # HELP couchdb_ioq_compaction_requests IOQ compaction queue requests
   # TYPE couchdb_ioq_compaction_requests gauge
   couchdb_ioq_compaction_requests 0
   
   # HELP couchdb_ioq_low_requests IOQ low priority queue requests
   # TYPE couchdb_ioq_low_requests gauge
   couchdb_ioq_low_requests 0
   
   # HELP couchdb_ioq_replication_requests IOQ replication queue requests
   # TYPE couchdb_ioq_replication_requests gauge
   couchdb_ioq_replication_requests 0
   
   # HELP couchdb_ioq_channel_requests IOQ channel requests
   # TYPE couchdb_ioq_channel_requests gauge
   couchdb_ioq_channel_requests 0
   
   # HELP couchdb_ioq_total_requests IOQ total active requests
   # TYPE couchdb_ioq_total_requests gauge
   couchdb_ioq_total_requests 0
   
   # HELP couchdb_smoosh_channel_count total active smoosh channels
   # TYPE couchdb_smoosh_channel_count gauge
   couchdb_smoosh_channel_count 7
   
   # HELP couchdb_smoosh_active_jobs global total active compaction jobs
   # TYPE couchdb_smoosh_active_jobs gauge
   couchdb_smoosh_active_jobs 0
   
   # HELP couchdb_smoosh_starting_jobs global total starting compaction jobs
   # TYPE couchdb_smoosh_starting_jobs gauge
   couchdb_smoosh_starting_jobs 0
   
   # HELP couchdb_smoosh_waiting_jobs global total waiting compaction jobs
   # TYPE couchdb_smoosh_waiting_jobs gauge
   couchdb_smoosh_waiting_jobs 0
   ```
   
   ## Checklist
   
   - [x] This is my own work, I did not use AI, LLM's or similar technology
   - [x] Code is written and works correctly
   - [x] Changes are covered by tests
   - [ ] Any new configurable parameters are documented in 
`rel/overlay/etc/default.ini`
   - [ ] Documentation changes were made in the `src/docs` folder
   - [ ] Documentation changes were backported (separated PR) to affected 
branches
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to