{"id":10230,"date":"2023-06-23T01:43:43","date_gmt":"2023-06-23T08:43:43","guid":{"rendered":"https:\/\/www.couchbase.com\/developers\/tutorials\/monitoring-index-service\/"},"modified":"2023-06-23T01:43:43","modified_gmt":"2023-06-23T08:43:43","slug":"monitoring-index-service","status":"publish","type":"tutorials","link":"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/","title":{"rendered":"Monitoring Index Service"},"content":{"rendered":"\n<h3 id=\"h-index-status\" class=\"wp-block-heading\">Index Status<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The index status API displays all index definitions, node placement and status within the cluster.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insecure: <code>http:\/\/localhost:8091\/indexStatus<\/code><\/li>\n\n\n<li>Secure: <code>https:\/\/localhost:18091\/indexStatus<\/code><\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Response:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code language-json\"><code>{\n  &quot;indexes&quot;: [\n    {\n      &quot;storageMode&quot;: &quot;plasma&quot;,\n      &quot;partitioned&quot;: false,\n      &quot;instId&quot;: 4607548507687231469,\n      &quot;hosts&quot;: [&quot;127.0.0.1:8091&quot;],\n      &quot;progress&quot;: 100,\n      &quot;definition&quot;: &quot;CREATE INDEX `def_airportname` ON `travel-sample`(`airportname`) WITH {  &quot;defer_build&quot;:true }&quot;,\n      &quot;status&quot;: &quot;Ready&quot;,\n      &quot;bucket&quot;: &quot;travel-sample&quot;,\n      &quot;index&quot;: &quot;def_airportname&quot;,\n      &quot;id&quot;: 15764219156300962421\n    },\n    {\n      &quot;storageMode&quot;: &quot;plasma&quot;,\n      &quot;partitioned&quot;: false,\n      &quot;instId&quot;: 11862384293590784556,\n      &quot;hosts&quot;: [&quot;127.0.0.1:8091&quot;],\n      &quot;progress&quot;: 100,\n      &quot;definition&quot;: &quot;CREATE INDEX `def_city` ON `travel-sample`(`city`) WITH {  &quot;defer_build&quot;:true }&quot;,\n      &quot;status&quot;: &quot;Ready&quot;,\n      &quot;bucket&quot;: &quot;travel-sample&quot;,\n      &quot;index&quot;: &quot;def_city&quot;,\n      &quot;id&quot;: 2037567312091921182\n    }\n  ],\n  &quot;version&quot;: 45110879,\n  &quot;warnings&quot;: []\n}\n<\/code><\/pre>\n\n\n\n<h4 id=\"h-key-metrics-to-monitor\" class=\"wp-block-heading\">Key Metrics to Monitor<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th align=\"left\"><strong>Couchbase Metric<\/strong><\/th>\n<th align=\"left\"><strong>Description<\/strong><\/th>\n<th align=\"left\"><strong>Response<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">status<\/td>\n<td align=\"left\">Indicates whether a index is in a &#8220;Ready&#8221; or &#8220;Building&#8221; state.<\/td>\n<td align=\"left\">Alert if the value is not &#8220;Ready&#8221; or &#8220;Building&#8221;.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<h4 id=\"h-example\" class=\"wp-block-heading\">Example<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The following example illustrates outputting each Index Name and Status.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>curl \n  --user Administrator:password \n  --silent \n  --request GET \n  http:\/\/localhost:8091\/indexStatus | \n  jq -r &#039;.indexes | sort_by(.bucket) | .[] | .bucket + &quot;: &quot; + .index + &quot; (&quot; +.status + &quot;)&quot;&#039;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This example shows outputting all indexes whose status is not &#8220;Ready&#8221; or &#8220;Building&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>curl \n  --user Administrator:password \n  --silent \n  --request GET \n  http:\/\/localhost:8091\/indexStatus | \n  jq -r &#039;.indexes | map(select(\n    (.status != &quot;Ready&quot; and .status != &quot;Building&quot;)\n  )) | .[] | .bucket + &quot;: &quot; + .index + &quot; (&quot; +.status + &quot;)&quot;&#039;\n<\/code><\/pre>\n\n\n\n<h3 id=\"h-index-servicelevel-stats\" class=\"wp-block-heading\">Index Service-Level Stats<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The following Index service stats are available via the Cluster-Wide or Per-Node Endpoints listed below.<\/p>\n\n\n\n<h4 id=\"h-available-stats\" class=\"wp-block-heading\">Available Stats<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th align=\"left\"><strong>Stat name<\/strong><\/th>\n<th align=\"left\"><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">index_memory_quota<\/td>\n<td align=\"left\">The cluster wide memory quota.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index_memory_used<\/td>\n<td align=\"left\">The amount of memory currently used by the indexing service.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index_ram_percent<\/td>\n<td align=\"left\">The percentage of index entries in ram.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index_remaining_ram<\/td>\n<td align=\"left\">The amount of memory remaining.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 id=\"h-codegetcode-cluster-index-service-stats\" class=\"wp-block-heading\"><code>GET<\/code> Cluster Index Service Stats<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">These endpoints are informational and should not be used for monitoring as they are an aggregate for the entire and cluster and the best practice is to monitor each node individually.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insecure: <a href=\"http:\/\/localhost:8091\/pools\/default\/buckets\/@index\/stats\">http:\/\/localhost:8091\/pools\/default\/buckets\/@index\/stats<\/a><\/li>\n\n\n<li>Secure: <a href=\"https:\/\/localhost:8091\/pools\/default\/buckets\/@index\/stats\">https:\/\/localhost:18091\/pools\/default\/buckets\/@index\/stats<\/a><\/li>\n\n<\/ul>\n\n\n\n<h5 id=\"h-example\" class=\"wp-block-heading\">Example<\/h5>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>curl \n  --user Administrator:password \n  --silent \n  --request GET \n  --data zoom=minute \n  http:\/\/localhost:8091\/pools\/default\/buckets\/@index\/stats | \n  jq -r &#039;.op.samples | to_entries[] | select(.key != &quot;timestamp&quot;) |\n    .key + &quot;: &quot; + (.value | add \/ length | tostring)&#039;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 id=\"h-codegetcode-nodelevel-index-service-stats\" class=\"wp-block-heading\"><code>GET<\/code> Node-Level Index Service Stats<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Each node in the cluster running the index service should be monitoring individually using the endpoint listed below.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insecure: <a href=\"http:\/\/localhost:8091\/pools\/default\/buckets\/@index\/nodes\/%7BNODE%7D\/stats\">http:\/\/localhost:8091\/pools\/default\/buckets\/@index\/nodes\/{NODE}\/stats<\/a><\/li>\n\n\n<li>Secure: <a href=\"https:\/\/localhost:8091\/pools\/default\/buckets\/@index\/nodes\/%7BNODE%7D\/stats\">https:\/\/localhost:18091\/pools\/default\/buckets\/@index\/nodes\/{NODE}\/stats<\/a><\/li>\n\n<\/ul>\n\n\n\n<h5 id=\"h-example-stats-for-individual-node\" class=\"wp-block-heading\">Example: Stats for Individual Node<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The following example demonstrates how to retrieve the index service stats for a specific node.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>NODE=&quot;172.17.0.2:8091&quot;\n\ncurl \n  --user Administrator:password \n  --silent \n  --request GET \n  --data zoom=minute \n  http:\/\/localhost:8091\/pools\/default\/buckets\/@index\/nodes\/$NODE\/stats | \n  jq -r -c &#039;.op.samples |\n  &quot;  index_memory_quota: &quot; + (.index_memory_quota | add \/ length | tostring) +\n  &quot;n  index_memory_used: &quot; + (.index_memory_used | add \/ length | tostring) +\n  &quot;n  index_ram_percent: &quot; + (.index_ram_percent | add \/ length | tostring) +\n  &quot;n  index_remaining_ram: &quot; + (.index_remaining_ram | add \/ length | tostring)&#039;\n<\/code><\/pre>\n\n\n\n<h5 id=\"h-example-stats-for-each-node-separately\" class=\"wp-block-heading\">Example: Stats for Each Node Separately<\/h5>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code># loop over each of the buckets\nfor node in $(curl \n  --user Administrator:password \n  --silent \n  --request GET \n  http:\/\/localhost:8091\/pools\/nodes | \n  jq -r &#039;.nodes[] |\n    select(.services | contains([&quot;index&quot;]) == true) |\n    .hostname&#039;\n  )\ndo\n  echo &quot;$node Index Stats&quot;\n  echo &quot;-------------------------------------------------------&quot;\n  # get the index stats for the specific node\n  curl \n    --user Administrator:password \n    --silent \n    --request GET \n    --data zoom=minute \n    http:\/\/localhost:8091\/pools\/default\/buckets\/@index\/nodes\/$node\/stats | \n    jq -r &#039;.op.samples | to_entries[] | select(.key != &quot;timestamp&quot;) |\n      .key + &quot;: &quot; + (.value | add \/ length | tostring)&#039;\ndone\n<\/code><\/pre>\n\n\n\n<h4 id=\"h-key-metrics-to-monitor\" class=\"wp-block-heading\">Key Metrics to Monitor<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th align=\"left\"><strong>Couchbase Metric<\/strong><\/th>\n<th align=\"left\"><strong>Description<\/strong><\/th>\n<th align=\"left\"><strong>Response<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">index_remaining_ram<\/td>\n<td align=\"left\">The amount of memory remaining.<\/td>\n<td align=\"left\">Alert if this value is 20% or less, as it is an indicative of index growth and new index nodes will need to be expanded.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<h3 id=\"h-individual-indexlevel-stats\" class=\"wp-block-heading\">Individual Index-Level Stats<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Index stats for a specific indexes are available only under the bucket that the index is created on. The same stats that are available for the service as a whole are also available on a per-index basis and can be retrieved for the entire cluster or a specific node in the cluster.<\/p>\n\n\n\n<h4 id=\"h-available-stats\" class=\"wp-block-heading\">Available Stats<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th align=\"left\"><strong>Stat name<\/strong><\/th>\n<th align=\"left\"><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">index\/{indexName}\/avg_item_size<\/td>\n<td align=\"left\">The average index entry size<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/avg_scan_latency<\/td>\n<td align=\"left\">The average latency when scanning the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/cache_hits<\/td>\n<td align=\"left\">The number of in-memory hits to the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/cache_miss_ratio<\/td>\n<td align=\"left\">The ratio of misses to hits<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/cache_misses<\/td>\n<td align=\"left\">The number of in-memory misses to the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/data_size<\/td>\n<td align=\"left\">The total data size of the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/data_size_on_disk<\/td>\n<td align=\"left\">The total size of the index data on disk<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/disk_overhead_estimate<\/td>\n<td align=\"left\">The size of stale data on disk due to fragmentation<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/disk_size<\/td>\n<td align=\"left\">The size of the index on disk<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/frag_percent<\/td>\n<td align=\"left\">The index fragmentation percentage<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/index_frag_percent<\/td>\n<td align=\"left\">The index fragmentation percentage<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/index_resident_percent<\/td>\n<td align=\"left\">The percentage of the index that is memory resident<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/items_count<\/td>\n<td align=\"left\">The number of items in the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/log_space_on_disk<\/td>\n<td align=\"left\">The size of the log files on disk<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/memory_used<\/td>\n<td align=\"left\">The amount of memory used by the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/num_docs_indexed<\/td>\n<td align=\"left\">The number of items indexed since the last restart<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/num_docs_pending<\/td>\n<td align=\"left\">The number of items pending indexing<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/num_docs_pending+queued<\/td>\n<td align=\"left\">The number of documents that are pending or queued for indexing<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/num_docs_queued<\/td>\n<td align=\"left\">The number of documents that are queued for indexing<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/num_requests<\/td>\n<td align=\"left\">The number of requests to the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/num_rows_returned<\/td>\n<td align=\"left\">The average number of rows returned by a scan<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/raw_data_size<\/td>\n<td align=\"left\">The raw uncompressed data size<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/recs_in_mem<\/td>\n<td align=\"left\">The number of records in the index that are in memory<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/recs_on_disk<\/td>\n<td align=\"left\">The number of records not in memory<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/scan_bytes_read<\/td>\n<td align=\"left\">The average number of bytes read per scan<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/{indexName}\/total_scan_duration<\/td>\n<td align=\"left\">The total time spent scanning<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 id=\"h-codegetcode-cluster-individual-index-stats\" class=\"wp-block-heading\"><code>GET<\/code> Cluster Individual Index Stats<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">These endpoints are informational and should not be used for monitoring as they are an aggregate for the entire and cluster and the best practice is to monitor each node individually.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insecure: <a href=\"http:\/\/localhost:8091\/pools\/default\/buckets\/@index-%7BBUCKET%7D\/stats\">http:\/\/localhost:8091\/pools\/default\/buckets\/@index-{BUCKET}\/stats<\/a><\/li>\n\n\n<li>Secure: <a href=\"https:\/\/localhost:8091\/pools\/default\/buckets\/@index-%7BBUCKET%7D\/stats\">https:\/\/localhost:18091\/pools\/default\/buckets\/@index-{BUCKET}\/stats<\/a><\/li>\n\n<\/ul>\n\n\n\n<h5 id=\"h-example\" class=\"wp-block-heading\">Example<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The following example demonstrates how to retrieve the eventing service stats for the cluster.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>BUCKET=&quot;travel-sample&quot;\n\ncurl \n  --user Administrator:password \n  --silent \n  --request GET \n  --data zoom=minute \n  http:\/\/localhost:8091\/pools\/default\/buckets\/@index-$BUCKET\/stats | \n  jq -r &#039;.op.samples | to_entries | sort_by(.key) | .[] |\n    select(.key | split(&quot;\/&quot;) | length == 3) |\n    &quot;  &quot; + (.key) + &quot;: &quot; +\n      (.value | add \/ length | tostring)&#039;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 id=\"h-codegetcode-individual-index-stats-per-node\" class=\"wp-block-heading\"><code>GET<\/code> Individual Index Stats per Node<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Each node in the cluster running the index service should be monitoring individually.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insecure: <a href=\"http:\/\/localhost:8091\/pools\/default\/buckets\/@index-%7BBUCKET%7D\/nodes\/%7BNODE%7D\/stats\">http:\/\/localhost:8091\/pools\/default\/buckets\/@index-{BUCKET}\/nodes\/{NODE}\/stats<\/a><\/li>\n\n\n<li>Secure: <a href=\"https:\/\/localhost:8091\/pools\/default\/buckets\/@index-%7BBUCKET%7D\/nodes\/%7BNODE%7D\/stats\">https:\/\/localhost:18091\/pools\/default\/buckets\/@index-{BUCKET}\/nodes\/{NODE}\/stats<\/a><\/li>\n\n<\/ul>\n\n\n\n<h5 id=\"h-example-stats-for-individual-node\" class=\"wp-block-heading\">Example: Stats for Individual Node<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The following example demonstrates how to retrieve all of the index stats for a specific index in a bucket for a specific node.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>NODE=&quot;172.17.0.2:8091&quot;\nBUCKET=&quot;travel-sample&quot;\nINDEX=&quot;def_faa&quot;\n\n# get the index stats for the bucket\ncurl \n  --user Administrator:password \n  --silent \n  --request GET \n  --data zoom=minute \n  http:\/\/localhost:8091\/pools\/default\/buckets\/@index-$BUCKET\/nodes\/$NODE\/stats | \n  jq -r --arg index &quot;$INDEX&quot; &#039;.op.samples |\n  &quot;  avg_item_size: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/avg_item_size&quot;] | add \/ length | tostring) +\n  &quot;n  avg_scan_latency: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/avg_scan_latency&quot;] | add \/ length | tostring) +\n  &quot;n  cache_hits: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/cache_hits&quot;] | add | tostring) +\n  &quot;n  cache_miss_ratio: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/cache_miss_ratio&quot;] | add \/ length | tostring) +\n  &quot;n  cache_misses: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/cache_misses&quot;] | add | tostring) +\n  &quot;n  data_size: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/data_size&quot;] | add \/ length | tostring) +\n  &quot;n  disk_overhead_estimate: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/disk_overhead_estimate&quot;] | add \/ length | tostring) +\n  &quot;n  disk_size: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/disk_size&quot;] | add \/ length | tostring) +\n  &quot;n  frag_percent: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/frag_percent&quot;] | add \/ length | tostring) +\n  &quot;n  index_frag_percent: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/index_frag_percent&quot;] | add \/ length | tostring) +\n  &quot;n  index_resident_percent: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/index_resident_percent&quot;] | add \/ length | tostring) +\n  &quot;n  items_count: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/items_count&quot;] | add \/ length | tostring) +\n  &quot;n  memory_used: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/memory_used&quot;] | add \/ length | tostring) +\n  &quot;n  num_docs_indexed: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/num_docs_indexed&quot;] | add | tostring) +\n  &quot;n  num_docs_pending+queued: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/num_docs_pending+queued&quot;] | add | tostring) +\n  &quot;n  num_docs_queued: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/num_docs_queued&quot;] | add | tostring) +\n  &quot;n  num_requests: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/num_requests&quot;] | add | tostring) +\n  &quot;n  num_rows_returned: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/num_rows_returned&quot;] | add | tostring) +\n  &quot;n  recs_in_mem: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/recs_in_mem&quot;] | add \/ length | tostring) +\n  &quot;n  recs_on_disk: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/recs_on_disk&quot;] | add \/ length | tostring) +\n  &quot;n  scan_bytes_read: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/scan_bytes_read&quot;] | add | tostring) +\n  &quot;n  total_scan_duration: &quot; + (.[&quot;index\/&quot; + $index + &quot;\/total_scan_duration&quot;] | add | tostring)\n  &#039;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h5 id=\"h-example-stats-for-individual-node\" class=\"wp-block-heading\">Example: Stats for Individual Node<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The following example demonstrates how to retrieve all of the index stats, for every bucket in the cluster for a single node.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>NODE=&quot;172.17.0.2:8091&quot;\n\n# loop over each of the buckets that has indexes\nfor bucket in $(curl \n  --user Administrator:password \n  --silent \n  --request GET \n  http:\/\/localhost:8091\/indexStatus | \n  jq -r &#039;[ .indexes[] | .bucket ] | sort | unique | .[]&#039;)\ndo\n  echo &quot;&quot;\n  echo &quot;Bucket: $bucket&quot;\n  echo &quot;================================================================&quot;\n  # get the index stats for the bucket\n  curl \n    --user Administrator:password \n    --silent \n    --request GET \n    --data zoom=minute \n    http:\/\/localhost:8091\/pools\/default\/buckets\/@index-$bucket\/nodes\/$NODE\/stats | \n    # 1. reduce the samples object, by looping over each property, only work with properties\n    # who are index specific stat properties and either sum or average samples\n    # 2. get all of the unique index keys\n    # 3. loop over each index and output the stats\n    jq -r &#039;reduce (.op.samples | to_entries[]) as {$key, $value} (\n        {};\n        if (\n          $key | split(&quot;\/&quot;) | length == 3\n          and ($key | contains(&quot;replica &quot;) | not)\n        ) then\n          if ([\n            &quot;cache_hits&quot;,&quot;cache_misses&quot;,&quot;num_docs_indexed&quot;,&quot;num_docs_pending&quot;,\n            &quot;num_docs_pending+queued&quot;,&quot;num_docs_queued&quot;,&quot;num_requests&quot;,\n            &quot;num_rows_returned&quot;,&quot;scan_bytes_read&quot;,&quot;total_scan_duration&quot;\n          ] | .[] | contains($key | split(&quot;\/&quot;) | .[2]) == true) then\n            .[$key] += ($value | add)\n          else\n            .[$key] += ($value | add \/ length | roundit\/100.0)\n          end\n        else\n          .\n        end\n      ) | . as $stats |\n      $stats | keys | map(split(&quot;\/&quot;)[1]) | sort | unique as $indexes |\n      $indexes | .[] |\n      &quot;Index: &quot; + . +\n      &quot;n----------------------------------------------------------------&quot; +\n      &quot;n  avg_item_size: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/avg_item_size&quot;] | tostring ) +\n      &quot;n  avg_scan_latency: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/avg_scan_latency&quot;] | tostring) +\n      &quot;n  cache_hits: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/cache_hits&quot;] | tostring) +\n      &quot;n  cache_miss_ratio: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/cache_miss_ratio&quot;] | tostring) +\n      &quot;n  cache_misses: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/cache_misses&quot;] | tostring) +\n      &quot;n  data_size: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/data_size&quot;] | tostring) +\n      &quot;n  disk_overhead_estimate: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/disk_overhead_estimate&quot;] | tostring) +\n      &quot;n  disk_size: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/disk_size&quot;] | tostring) +\n      &quot;n  frag_percent: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/frag_percent&quot;] | tostring) +\n      &quot;n  index_frag_percent: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/index_frag_percent&quot;] | tostring) +\n      &quot;n  index_resident_percent: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/index_resident_percent&quot;] | tostring) +\n      &quot;n  items_count: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/items_count&quot;] | tostring) +\n      &quot;n  memory_used: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/memory_used&quot;] | tostring) +\n      &quot;n  num_docs_indexed: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/num_docs_indexed&quot;] | tostring) +\n      &quot;n  num_docs_pending: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/num_docs_pending&quot;] | tostring) +\n      &quot;n  num_docs_pending+queued: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/num_docs_pending+queued&quot;] | tostring) +\n      &quot;n  num_docs_queued: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/num_docs_queued&quot;] | tostring) +\n      &quot;n  num_requests: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/num_requests&quot;] | tostring) +\n      &quot;n  num_rows_returned: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/num_rows_returned&quot;] | tostring) +\n      &quot;n  recs_in_mem: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/recs_in_mem&quot;] | tostring) +\n      &quot;n  recs_on_disk: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/recs_on_disk&quot;] | tostring) +\n      &quot;n  scan_bytes_read: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/scan_bytes_read&quot;] | tostring) +\n      &quot;n  avg_scan_latency: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/avg_scan_latency&quot;] | tostring) +\n      &quot;n  total_scan_duration: &quot; + ($stats[&quot;index\/&quot; + . + &quot;\/total_scan_duration&quot;] | tostring) +\n      &quot;n&quot;\n    &#039;\ndone\n<\/code><\/pre>\n\n\n\n<h4 id=\"h-key-metrics-to-monitor\" class=\"wp-block-heading\">Key Metrics to Monitor<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th align=\"left\"><strong>Couchbase Metric<\/strong><\/th>\n<th align=\"left\"><strong>Description<\/strong><\/th>\n<th align=\"left\"><strong>Response<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">avg_item_size<\/td>\n<td align=\"left\">The average index entry size<\/td>\n<td align=\"left\">Create a baseline for this value, as &#8220;normal&#8221; will depend on the size. Alert at 2x of the baseline. This would indicate a dramatic model change.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">avg_scan_latency<\/td>\n<td align=\"left\">The average scan latency<\/td>\n<td align=\"left\">Create a baseline for this value, as &#8220;normal&#8221; will depend on the size. Alert at 2x of the baseline. This would indicate a slowdown for index scans to the index.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index_resident_percent<\/td>\n<td align=\"left\">The percentage of the index that is memory resident<\/td>\n<td align=\"left\">Create a baseline for this value as &#8220;normal&#8221; will depend on SLAs and hard configuration. Alert at 5-10% deviation of the baseline.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">num_requests<\/td>\n<td align=\"left\">The number of index scan requests to the index<\/td>\n<td align=\"left\">Create a baseline for this value, as &#8220;normal&#8221; will depend on the amount. Alert at 2x of the baseline. This would indicate a dramatic increase in requests.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 id=\"h-index-aggregate-stats\" class=\"wp-block-heading\">Index Aggregate Stats<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Index aggregate stats for a specific bucket are available only under the bucket that the indexes exist on and are a total of all of the indexes for that bucket in the cluster or node.<\/p>\n\n\n\n<h4 id=\"h-available-stats\" class=\"wp-block-heading\">Available Stats<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table>\n<thead>\n<tr>\n<th align=\"left\"><strong>Stat name<\/strong><\/th>\n<th align=\"left\"><strong>Description<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">index\/cache_hits<\/td>\n<td align=\"left\">The number of in-memory hits to the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/cache_misses<\/td>\n<td align=\"left\">The number of in-memory misses to the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/data_size<\/td>\n<td align=\"left\">The total data size of the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/data_size_on_disk<\/td>\n<td align=\"left\">The total data size on disk<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/disk_overhead_estimate<\/td>\n<td align=\"left\">The size of stale data on disk due to fragmentation<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/disk_size<\/td>\n<td align=\"left\">The size of the index on disk<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/frag_percent<\/td>\n<td align=\"left\">The index fragmentation percentage<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/fragmentation<\/td>\n<td align=\"left\">The index fragmentation percentage<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/items_count<\/td>\n<td align=\"left\">The number of items in the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/memory_used<\/td>\n<td align=\"left\">The amount of memory used by the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/num_docs_indexed<\/td>\n<td align=\"left\">The number of items indexed since the last restart<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/num_docs_pending<\/td>\n<td align=\"left\">The number of documents that are pending or queued for indexing<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/num_docs_queued<\/td>\n<td align=\"left\">The number of documents that are queued for indexing<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/num_requests<\/td>\n<td align=\"left\">The number of requests to the index<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/num_rows_returned<\/td>\n<td align=\"left\">The average number of rows returned by a scan<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/raw_data_size<\/td>\n<td align=\"left\">The raw uncompressed data size<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/recs_in_mem<\/td>\n<td align=\"left\">The number of records in the index that are in memory<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/recs_on_disk<\/td>\n<td align=\"left\">The number of records not in memory<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/scan_bytes_read<\/td>\n<td align=\"left\">The average number of bytes read per scan<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">index\/total_scan_duration<\/td>\n<td align=\"left\">The total time spent scanning<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/figure>\n\n\n\n<h4 id=\"h-codegetcode-cluster-index-aggregate-stats\" class=\"wp-block-heading\"><code>GET<\/code> Cluster Index Aggregate Stats<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insecure: <a href=\"http:\/\/localhost:8091\/pools\/default\/buckets\/@index-%7BBUCKET%7D\/stats\">http:\/\/localhost:8091\/pools\/default\/buckets\/@index-{BUCKET}\/stats<\/a><\/li>\n\n\n<li>Secure: <a href=\"https:\/\/localhost:8091\/pools\/default\/buckets\/@index-%7BBUCKET%7D\/stats\">https:\/\/localhost:18091\/pools\/default\/buckets\/@index-{BUCKET}\/stats<\/a><\/li>\n\n<\/ul>\n\n\n\n<h5 id=\"h-example-stats-for-cluster\" class=\"wp-block-heading\">Example: Stats for Cluster<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The following example demonstrates how to retrieve all of the index aggregate stats for a specific bucket in the entire cluster.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>BUCKET=&quot;travel-sample&quot;\n\n# get the index stats for the bucket\ncurl \n  --user Administrator:password \n  --silent \n  --request GET \n  --data zoom=minute \n  http:\/\/localhost:8091\/pools\/default\/buckets\/@index-$BUCKET\/stats | \n  jq -r &#039;.op.samples | to_entries | sort_by(.key) | .[] |\n    select(.key | split(&quot;\/&quot;) | length == 2) |\n    &quot;  &quot; + (.key | split(&quot;\/&quot;)[1]) + &quot;: &quot; +\n      (.value | add \/ length | tostring)&#039;\n<\/code><\/pre>\n\n\n\n<h4 id=\"h-codegetcode-index-aggregate-stats-per-node\" class=\"wp-block-heading\"><code>GET<\/code> Index Aggregate Stats per Node<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insecure: <a href=\"http:\/\/localhost:8091\/pools\/default\/buckets\/@index-%7BBUCKET%7D\/nodes\/%7BNODE%7D\/stats\">http:\/\/localhost:8091\/pools\/default\/buckets\/@index-{BUCKET}\/nodes\/{NODE}\/stats<\/a><\/li>\n\n\n<li>Secure: <a href=\"https:\/\/localhost:8091\/pools\/default\/buckets\/@index-%7BBUCKET%7D\/nodes\/%7BNODE%7D\/stats\">https:\/\/localhost:18091\/pools\/default\/buckets\/@index-{BUCKET}\/nodes\/{NODE}\/stats<\/a><\/li>\n\n<\/ul>\n\n\n\n<h5 id=\"h-example-aggregate-stats-for-individual-node\" class=\"wp-block-heading\">Example: Aggregate Stats for Individual Node<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">The following example demonstrates how to retrieve all of the index aggregate stats for a specific in a bucket for a specific node.<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>BUCKET=&quot;travel-sample&quot;\nNODE=&quot;172.17.0.2:8091&quot;\n\n# get the index stats for the bucket\ncurl \n  --user Administrator:password \n  --silent \n  --request GET \n  --data zoom=minute \n  http:\/\/localhost:8091\/pools\/default\/buckets\/@index-$BUCKET\/nodes\/$NODE\/stats | \n  jq -r &#039;.op.samples |\n  &quot;  cache_hits: &quot; + (.[&quot;index\/cache_hits&quot;] | add | tostring) +\n  &quot;n  cache_misses: &quot; + (.[&quot;index\/cache_misses&quot;] | add | tostring) +\n  &quot;n  data_size: &quot; + (.[&quot;index\/data_size&quot;] | add | tostring) +\n  &quot;n  disk_overhead_estimate: &quot; + (.[&quot;index\/disk_overhead_estimate&quot;] | add \/ length | tostring) +\n  &quot;n  disk_size: &quot; + (.[&quot;index\/disk_size&quot;] | add | tostring) +\n  &quot;n  frag_percent: &quot; + (.[&quot;index\/frag_percent&quot;] | add \/ length | tostring) +\n  &quot;n  fragmentation: &quot; + (.[&quot;index\/fragmentation&quot;] | add \/ length | tostring) +\n  &quot;n  items_count: &quot; + (.[&quot;index\/items_count&quot;] | add \/ length | tostring) +\n  &quot;n  memory_used: &quot; + (.[&quot;index\/memory_used&quot;] | add \/ length | tostring) +\n  &quot;n  num_docs_indexed: &quot; + (.[&quot;index\/num_docs_indexed&quot;] | add | tostring) +\n  &quot;n  num_docs_pending: &quot; + (.[&quot;index\/num_docs_pending&quot;] | add | tostring) +\n  &quot;n  num_docs_queued: &quot; + (.[&quot;index\/num_docs_queued&quot;] | add | tostring) +\n  &quot;n  num_requests: &quot; + (.[&quot;index\/num_requests&quot;] | add | tostring) +\n  &quot;n  num_rows_returned: &quot; + (.[&quot;index\/num_rows_returned&quot;] | add | tostring) +\n  &quot;n  recs_in_mem: &quot; + (.[&quot;index\/recs_in_mem&quot;] | add | tostring) +\n  &quot;n  recs_on_disk: &quot; + (.[&quot;index\/recs_on_disk&quot;] | add | tostring) +\n  &quot;n  scan_bytes_read: &quot; + (.[&quot;index\/scan_bytes_read&quot;] | add | tostring) +\n  &quot;n  total_scan_duration: &quot; + (.[&quot;index\/total_scan_duration&quot;] | add | tostring)\n  &#039;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Index Status The index status API displays all index definitions, node placement and status within the cluster. Response: Key Metrics to Monitor Couchbase Metric Description Response status Indicates whether a index is in a &#8220;Ready&#8221; or &#8220;Building&#8221; state. Alert if the value is not &#8220;Ready&#8221; or &#8220;Building&#8221;. Example The following example illustrates outputting each Index [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"_acf":"","footnotes":""},"tutorial-languages":[551],"tutorial-tags":[564,571,563],"tutorial-technologies":[572,554],"tutorial-types":[555],"class_list":["post-10230","tutorials","type-tutorials","status-publish","hentry","tutorial-languages-any","tutorial-tags-metrics","tutorial-tags-monitoring","tutorial-tags-observability","tutorial-technologies-index","tutorial-technologies-server","tutorial-types-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.8 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Monitoring Index Service - Couchbase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monitoring Index Service\" \/>\n<meta property=\"og:description\" content=\"Index Status The index status API displays all index definitions, node placement and status within the cluster. Response: Key Metrics to Monitor Couchbase Metric Description Response status Indicates whether a index is in a &#8220;Ready&#8221; or &#8220;Building&#8221; state. Alert if the value is not &#8220;Ready&#8221; or &#8220;Building&#8221;. Example The following example illustrates outputting each Index [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/\" \/>\n<meta property=\"og:site_name\" content=\"Couchbase\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Couchbase\/\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/2026\/10\/Cloud-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2548\" \/>\n\t<meta property=\"og:image:height\" content=\"1171\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@couchbase\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"16 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/developers\\\/tutorials\\\/monitoring-index-service\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/developers\\\/tutorials\\\/monitoring-index-service\\\/\",\"name\":\"Monitoring Index Service - Couchbase\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/#website\"},\"datePublished\":\"2023-06-23T08:43:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/developers\\\/tutorials\\\/monitoring-index-service\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/es\\\/developers\\\/tutorials\\\/monitoring-index-service\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/developers\\\/tutorials\\\/monitoring-index-service\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Monitoring Index Service\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/\",\"name\":\"Couchbase\",\"description\":\"The Operational Data Platform for AI\u2122\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/#organization\"},\"alternateName\":\"Couchbase, Inc.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/#organization\",\"name\":\"Couchbase\",\"alternateName\":\"Couchbase, Inc.\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Couchbase_Logo_Couchbase_Token_Red-1.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Couchbase_Logo_Couchbase_Token_Red-1.png\",\"width\":1129,\"height\":1129,\"caption\":\"Couchbase\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/es\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Couchbase\\\/\",\"https:\\\/\\\/x.com\\\/couchbase\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/CouchbaseServer\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/couchbase\\\/\",\"https:\\\/\\\/github.com\\\/couchbase\\\/\",\"https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Couchbase,_Inc.\"],\"description\":\"Couchbase is a database software company headquartered in San Jose, California, providing an operational data platform for AI used by hundreds of global enterprises.\",\"legalName\":\"Couchbase, Inc.\",\"foundingDate\":\"2011-01-01\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Monitoring Index Service - Couchbase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/","og_locale":"es_MX","og_type":"article","og_title":"Monitoring Index Service","og_description":"Index Status The index status API displays all index definitions, node placement and status within the cluster. Response: Key Metrics to Monitor Couchbase Metric Description Response status Indicates whether a index is in a &#8220;Ready&#8221; or &#8220;Building&#8221; state. Alert if the value is not &#8220;Ready&#8221; or &#8220;Building&#8221;. Example The following example illustrates outputting each Index [&hellip;]","og_url":"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/","og_site_name":"Couchbase","article_publisher":"https:\/\/www.facebook.com\/Couchbase\/","og_image":[{"width":2548,"height":1171,"url":"https:\/\/www.couchbase.com\/wp-content\/uploads\/2026\/10\/Cloud-2.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@couchbase","twitter_misc":{"Est. reading time":"16 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/","url":"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/","name":"Monitoring Index Service - Couchbase","isPartOf":{"@id":"https:\/\/www.couchbase.com\/es\/#website"},"datePublished":"2023-06-23T08:43:43+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/es\/developers\/tutorials\/monitoring-index-service\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/"},{"@type":"ListItem","position":2,"name":"Monitoring Index Service"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/es\/#website","url":"https:\/\/www.couchbase.com\/es\/","name":"Couchbase","description":"The Operational Data Platform for AI\u2122","publisher":{"@id":"https:\/\/www.couchbase.com\/es\/#organization"},"alternateName":"Couchbase, Inc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/es\/#organization","name":"Couchbase","alternateName":"Couchbase, Inc.","url":"https:\/\/www.couchbase.com\/es\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.couchbase.com\/es\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/wp-content\/uploads\/2026\/11\/Couchbase_Logo_Couchbase_Token_Red-1.png","contentUrl":"https:\/\/www.couchbase.com\/wp-content\/uploads\/2026\/11\/Couchbase_Logo_Couchbase_Token_Red-1.png","width":1129,"height":1129,"caption":"Couchbase"},"image":{"@id":"https:\/\/www.couchbase.com\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Couchbase\/","https:\/\/x.com\/couchbase","https:\/\/www.youtube.com\/c\/CouchbaseServer","https:\/\/www.linkedin.com\/company\/couchbase\/","https:\/\/github.com\/couchbase\/","https:\/\/en.wikipedia.org\/wiki\/Couchbase,_Inc."],"description":"Couchbase es una empresa de software de bases de datos con sede en San Jos\u00e9, California, que proporciona una plataforma de datos operativa para la inteligencia artificial utilizada por cientos de empresas globales.","legalName":"Couchbase, Inc.","foundingDate":"2011-01-01"}]}},"acf":[],"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/tutorials\/10230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/tutorials"}],"about":[{"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/types\/tutorials"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/tutorials\/10230\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/media?parent=10230"}],"wp:term":[{"taxonomy":"tutorial-languages","embeddable":true,"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/tutorial-languages?post=10230"},{"taxonomy":"tutorial-tags","embeddable":true,"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/tutorial-tags?post=10230"},{"taxonomy":"tutorial-technologies","embeddable":true,"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/tutorial-technologies?post=10230"},{"taxonomy":"tutorial-types","embeddable":true,"href":"https:\/\/www.couchbase.com\/es\/wp-json\/wp\/v2\/tutorial-types?post=10230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}