Couchbase

本章节为 Cloud Insight 支持的平台服务的文档的示例。

目前能够想到的章节分为以下几个部分:

  • 支持的性能指标
  • 如何配置 CouchBase 监控
  • 常见的问题

性能指标

Cloud Insight 采集 Couchbase 以下性能指标:

by_bucket.avg_bg_wait_time by_bucket.avg_disk_commit_time by_bucket.avg_disk_update_time by_bucket.bg_wait_count by_bucket.bg_wait_total by_bucket.bytes_read by_bucket.bytes_written by_bucket.cas_badval by_bucket.cas_hits by_bucket.cas_misses by_bucket.cmd_get by_bucket.cmd_set by_bucket.couch_docs_actual_disk_size by_bucket.couch_docs_data_size by_bucket.couch_docs_disk_size by_bucket.couch_docs_fragmentation by_bucket.couch_total_disk_size by_bucket.couch_views_actual_disk_size by_bucket.couch_views_data_size by_bucket.couch_views_disk_size by_bucket.couch_views_fragmentation by_bucket.couch_views_ops by_bucket.curr_connections by_bucket.curr_items by_bucket.curr_items_tot by_bucket.decr_hits by_bucket.decr_misses by_bucket.delete_hits by_bucket.delete_misses by_bucket.disk_commit_count by_bucket.disk_commit_total by_bucket.disk_update_count by_bucket.disk_update_total by_bucket.disk_write_queue by_bucket.ep_bg_fetched by_bucket.ep_cache_miss_rate by_bucket.ep_diskqueue_drain by_bucket.ep_diskqueue_fill by_bucket.ep_diskqueue_items by_bucket.ep_flusher_todo by_bucket.ep_ht_memory by_bucket.ep_item_commit_failed by_bucket.ep_kv_size by_bucket.ep_max_data_size by_bucket.ep_mem_high_wat by_bucket.ep_mem_low_wat by_bucket.ep_num_non_resident by_bucket.ep_num_ops_del_meta by_bucket.ep_num_ops_get_meta by_bucket.ep_num_ops_set_meta by_bucket.ep_num_value_ejects by_bucket.ep_oom_errors by_bucket.ep_ops_create by_bucket.ep_ops_update by_bucket.ep_overhead by_bucket.ep_queue_size by_bucket.ep_resident_items_rate by_bucket.ep_tap_rebalance_count by_bucket.ep_tap_rebalance_qlen by_bucket.ep_tap_rebalance_queue_backfillremain by_bucket.ep_tap_rebalance_queue_itemondisk by_bucket.ep_tap_rebalance_queue_fill by_bucket.ep_tap_rebalance_queue_drain by_bucket.ep_tap_rebalance_queue_backoff by_bucket.ep_tap_rebalance_total_backlog_size by_bucket.ep_tap_replica_count by_bucket.ep_tap_replica_qlen by_bucket.ep_tap_replica_queue_backfillremaining by_bucket.ep_tap_replica_queue_backoff by_bucket.ep_tap_replica_queue_drain by_bucket.ep_tap_replica_queue_fill by_bucket.ep_tap_replica_queue_itemondisk by_bucket.ep_tap_replica_total_backlog_size by_bucket.ep_tap_total_count by_bucket.ep_tap_total_qlen by_bucket.ep_tap_total_queue_backfillremaining by_bucket.ep_tap_total_queue_backoff by_bucket.ep_tap_total_queue_drain by_bucket.ep_tap_total_queue_fill by_bucket.ep_tap_total_queue_itemondisk by_bucket.ep_tap_user_queue_backfillremaining by_bucket.ep_tap_user_qlen by_bucket.ep_tap_user_count by_bucket.ep_tap_total_total_backlog_size by_bucket.ep_tap_user_queue_backoff by_bucket.ep_tap_user_queue_drain by_bucket.ep_tap_user_queue_fill by_bucket.ep_tap_user_queue_itemondisk by_bucket.evictions by_bucket.ep_vb_total by_bucket.ep_tmp_oom_errors by_bucket.ep_tap_user_total_backlog_size by_bucket.get_hits by_bucket.get_misses by_bucket.hit_ratio by_bucket.incr_hits by_bucket.ops by_bucket.misses by_bucket.mem_used by_bucket.incr_misses by_bucket.replication_active_vbreps by_bucket.replication_changes_left by_bucket.replication_commit_time by_bucket.replication_data_replicated by_bucket.replication_num_checkpoints by_bucket.replication_docs_written by_bucket.replication_docs_rep_queue by_bucket.replication_docs_checked by_bucket.replication_num_failedckpts by_bucket.replication_size_rep_queue by_bucket.replication_waiting_vbreps by_bucket.replication_work_time by_bucket.vb_active_meta_data_memory by_bucket.vb_active_itm_memory by_bucket.vb_active_eject by_bucket.timestamp by_bucket.vb_active_num by_bucket.vb_active_num_non_resident by_bucket.vb_active_ops_create by_bucket.vb_active_ops_update by_bucket.vb_active_queue_size by_bucket.vb_active_queue_fill by_bucket.vb_active_queue_drain by_bucket.vb_active_queue_age by_bucket.vb_active_resident_items_ratio by_bucket.vb_avg_active_queue_age by_bucket.vb_avg_pending_queue_age by_bucket.vb_avg_replica_queue_age by_bucket.vb_pending_itm_memory by_bucket.vb_pending_eject by_bucket.vb_pending_curr_items by_bucket.vb_avg_total_queue_age by_bucket.vb_pending_meta_data_memory by_bucket.vb_pending_num by_bucket.vb_pending_num_non_resident by_bucket.vb_pending_ops_create by_bucket.vb_pending_queue_fill by_bucket.vb_pending_queue_drain by_bucket.vb_pending_queue_age by_bucket.vb_pending_ops_update by_bucket.vb_pending_queue_size by_bucket.vb_pending_resident_items_ratio by_bucket.vb_replica_curr_items by_bucket.vb_replica_eject by_bucket.vb_replica_num_non_resident by_bucket.vb_replica_num by_bucket.vb_replica_meta_data_memory by_bucket.vb_replica_itm_memory by_bucket.vb_replica_ops_create by_bucket.vb_replica_ops_update by_bucket.vb_replica_queue_age by_bucket.vb_replica_queue_drain by_bucket.vb_total_queue_age by_bucket.vb_replica_resident_items_ratio by_bucket.vb_replica_queue_size by_bucket.vb_replica_queue_fill by_bucket.xdc_ops by_node.couch_docs_actual_disk_size by_node.couch_docs_data_size by_node.couch_views_actual_disk_size by_node.mem_used by_node.curr_items_tot by_node.curr_items by_node.couch_views_data_size by_node.vb_replica_curr_items hdd.free hdd.quota_total hdd.total ram.quota_used hdd.used_by_data hdd.used ram.total ram.used ram.used_by_data

配置 Couchbase 监控

编辑配置文件

编辑配置文件 conf.d/couchbase.yaml,使 Cloud Insight Agent 可以与 Couchbase 通信。

init_config:

instances:
  - server: http://localhost:8091
    user: Administrator
    password: password
    tags:
      - tag_key:tag_value

重启 Agent

重启 OneAPM Cloud Insight Agent,使配置生效。

您也可以通过查看 Agent Info 信息,来验证配置是否成功。当出现以下信息,则代表安装成功。

Checks
======

[...]

couchbase
------
  - instance #0 [OK]
  - Collected 8 metrics & 0 events

常见问题