Add diagnostics tools + SENSITIVE_READ_TOOLS category (11 tools) - #199
Closed
celticht32 wants to merge 6 commits into
Closed
Add diagnostics tools + SENSITIVE_READ_TOOLS category (11 tools)#199celticht32 wants to merge 6 commits into
celticht32 wants to merge 6 commits into
Conversation
Move Validation to RestAPI path (couchbase#194)
…/update/get_settings collection)
Collaborator
|
Closing this as the REST API is not supported by Capella. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 6 of the phased admin-tool contribution discussed in #157. Introduces a new
SENSITIVE_READ_TOOLScategory — please see the "Open questions" section below for the design decision behind that.What this adds
Eleven diagnostic tools that surface the same information the cluster manager Web Console shows, structured for programmatic use by an MCP client. Every tool is a GET; nothing here mutates state.
Read-only (9 tools) — always available
get_cluster_info— GET/pools/default. Full cluster info: nodes, quotas, storage totals, running tasks.get_cluster_stats— Synthesized summary:node_count,healthy_nodes,storage_totals,balanced,rebalance_status. A compact view for pollers who don't want to parse the full /pools/default response.get_node_info— GET/nodes/self. Hostname, uptime, memory, services, and OS counters for the current node.get_bucket_stats— GET/pools/default/buckets/{bucket}/stats. Per-bucket ops/sec, disk queues, memory, cache hit ratio.get_index_stats— GET/pools/default/buckets/@index/stats. Index service runtime stats.get_query_stats— GET/pools/default/buckets/@query/stats. Query service runtime stats.get_fts_stats— GET/api/nsstatson FTS ports 8094/18094. Per-index doc counts, query throughput.get_kv_stats— GET/pools/default/buckets/{bucket}/stats/curr_items. KV service current items and related stats (bucket-scoped).get_disk_usage— Extracted from/pools/default'sstorageTotalsblock. Returns{ram, hdd}summaries at cluster level.Sensitive reads (2 tools) — gated behind admin_write_mode
get_slow_queries(min_duration_ms=1000, limit=50)— Readssystem:completed_requestsvia SQL++