Elastic Search

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

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

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

性能指标

Cloud Insight 采集 Elastic Search 以下性能指标:

  • elasticsearch.active_primary_shards
  • elasticsearch.active_shards
  • elasticsearch.cache.filter.evictions
  • elasticsearch.cache.filter.size
  • elasticsearch.cluster_status
  • elasticsearch.docs.count
  • elasticsearch.docs.deleted
  • elasticsearch.fielddata.evictions
  • elasticsearch.fielddata.size
  • elasticsearch.flush.total
  • elasticsearch.flush.total.time
  • elasticsearch.get.current
  • elasticsearch.get.exists.time
  • elasticsearch.get.exists.total
  • elasticsearch.get.missing.time
  • elasticsearch.get.missing.total
  • elasticsearch.get.time
  • elasticsearch.get.total
  • elasticsearch.http.current_open
  • elasticsearch.http.total_opened
  • elasticsearch.id_cache.size
  • elasticsearch.indexing.delete.current
  • elasticsearch.indexing.delete.time
  • elasticsearch.indexing.delete.total
  • elasticsearch.indexing.index.current
  • elasticsearch.indexing.index.time
  • elasticsearch.indexing.index.total
  • elasticsearch.initializing_shards
  • elasticsearch.merges.current
  • elasticsearch.merges.current.docs
  • elasticsearch.merges.current.size
  • elasticsearch.merges.total
  • elasticsearch.merges.total.docs
  • elasticsearch.merges.total.size
  • elasticsearch.merges.total.size
  • elasticsearch.number_of_nodes
  • elasticsearch.pending_tasks_priority_high
  • elasticsearch.pending_tasks_priority_urgent
  • elasticsearch.pending_tasks_total
  • elasticsearch.process.open_fd
  • elasticsearch.refresh.total
  • elasticsearch.refresh.total.time
  • elasticsearch.relocating_shards
  • elasticsearch.search.fetch.current
  • elasticsearch.search.fetch.open_contexts
  • elasticsearch.search.fetch.time
  • elasticsearch.search.fetch.total
  • elasticsearch.search.query.current
  • elasticsearch.search.query.time
  • elasticsearch.search.query.total
  • elasticsearch.store.size
  • elasticsearch.thread_pool.bulk.active
  • elasticsearch.thread_pool.bulk.queue
  • elasticsearch.thread_pool.bulk.threads
  • elasticsearch.thread_pool.flush.active
  • elasticsearch.thread_pool.flush.queue
  • elasticsearch.thread_pool.flush.threads
  • elasticsearch.thread_pool.generic.active
  • elasticsearch.thread_pool.generic.queue
  • elasticsearch.thread_pool.generic.threads
  • elasticsearch.thread_pool.get.active
  • elasticsearch.thread_pool.get.queue
  • elasticsearch.thread_pool.get.threads
  • elasticsearch.thread_pool.index.active
  • elasticsearch.thread_pool.index.queue
  • elasticsearch.thread_pool.index.threads
  • elasticsearch.thread_pool.management.active
  • elasticsearch.thread_pool.management.queue
  • elasticsearch.thread_pool.management.threads
  • elasticsearch.thread_pool.merge.active
  • elasticsearch.thread_pool.merge.queue
  • elasticsearch.thread_pool.merge.threads
  • elasticsearch.thread_pool.percolate.active
  • elasticsearch.thread_pool.percolate.queue
  • elasticsearch.thread_pool.percolate.threads
  • elasticsearch.thread_pool.refresh.active
  • elasticsearch.thread_pool.refresh.queue
  • elasticsearch.thread_pool.refresh.threads
  • elasticsearch.thread_pool.search.active
  • elasticsearch.thread_pool.search.queue
  • elasticsearch.thread_pool.search.threads
  • elasticsearch.thread_pool.snapshot.active
  • elasticsearch.thread_pool.snapshot.queue
  • elasticsearch.thread_pool.snapshot.threads
  • elasticsearch.transport.rx_count
  • elasticsearch.transport.rx_size
  • elasticsearch.transport.server_open
  • elasticsearch.transport.tx_count
  • elasticsearch.transport.tx_size
  • elasticsearch.unassigned_shards

配置 Elastic Search 监控

编辑配置文件

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

init_config:

instances:
  - url: http://localhost:9200

重启 Agent

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

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

Checks
======

[...]

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

有关 Agent Info 信息的查看,请访问帮助中心,查看 Cloud Insight Agent 常用操作

常见问题