search
数据采集 采集器 neo4j监控采集

neo4j监控采集

简介

neo4j是一个图数据库,企业版支持监控,该数据收集方案通过neo4j提供的对prometheus监控支持,采集监控数据,上报到DataFlux平台中

注意:该采集方案针对neo4j企业版

前置条件

  • 开启 neo4j prometheus监控
$vim neo4j.conf
# Enable the Prometheus endpoint. Default is 'false'.
metrics.prometheus.enabled=true
# The IP and port the endpoint will bind to in the format <hostname or IP address>:<port number>.
# The default is localhost:2004.
metrics.prometheus.endpoint=localhost:2004
  • 安装 prometheus 修改配置如下:
global:
  scrape_interval: 15s
  external_labels:
    monitor: 'neo4j-monitor'
scrape_configs:
  - job_name: 'neo4j-datakit'
    #metrics_path: "/"
    scrape_interval: 5s
    static_configs:
            - targets: ['127.0.0.1:2004'] # neo4j开启的监控端口
remote_write:
  - url: 'dataway地址'

采集指标

neo4j_bolt

指标 描述 类型 单位 Tag
accumulated_processing_time_total - float - instance,job,monitor
accumulated_queue_time_total - float - instance,job,monitor
connections_closed_total - float - instance,job,monitor
connections_idle - float - instance,job,monitor
connections_opened_total - float - instance,job,monitor
connections_running - float - instance,job,monitor
messages_done_total - float - instance,job,monitor
messages_failed_total - float - instance,job,monitor
messages_received_total - float - instance,job,monitor
messages_started_total - float - instance,job,monitor
sessions_started_total - float - instance,job,monitor

neo4j_db

指标 描述 类型 单位 Tag
operation_count_create_total - float - instance,job,monitor
operation_count_drop_total - float - instance,job,monitor
operation_count_failed_total - float - instance,job,monitor
operation_count_recovered_total - float - instance,job,monitor
operation_count_start_total - float - instance,job,monitor
operation_count_stop_total - float - instance,job,monitor

neo4j_neo4j

指标 描述 类型 单位 Tag
check_point_duration - float - instance,job,monitor
check_point_events_total - float - instance,job,monitor
check_point_total_time_total - float - instance,job,monitor
cypher_replan_events_total - float - instance,job,monitor
cypher_replan_wait_time_total - float - instance,job,monitor
ids_in_use_node - float - instance,job,monitor
ids_in_use_property - float - instance,job,monitor
ids_in_use_relationship - float - instance,job,monitor
ids_in_use_relationship_type - float - instance,job,monitor
log_appended_bytes_total - float - instance,job,monitor
log_rotation_duration - float - instance,job,monitor
log_rotation_events_total - float - instance,job,monitor
log_rotation_total_time_total - float - instance,job,monitor
neo4j_count_node - float - instance,job,monitor
neo4j_count_relationship - float - instance,job,monitor
store_size_total - float - instance,job,monitor
store_size_database - float - instance,job,monitor
transaction_active - float - instance,job,monitor
transaction_active_read - float - instance,job,monitor
transaction_active_write - float - instance,job,monitor
transaction_committed_read_total - float - instance,job,monitor
transaction_committed_total - float - instance,job,monitor
transaction_committed_write_total - float - instance,job,monitor
transaction_last_closed_tx_id_total - float - instance,job,monitor
transaction_last_committed_tx_id_total - float - instance,job,monitor
transaction_peak_concurrent_total - float - instance,job,monitor
transaction_rollbacks_read_total - float - instance,job,monitor
transaction_rollbacks_total - float - instance,job,monitor
transaction_rollbacks_write_total - float - instance,job,monitor
transaction_started_total - float - instance,job,monitor
transaction_terminated_read_total - float - instance,job,monitor
transaction_terminated_total - float - instance,job,monitor
transaction_terminated_write_total - float - instance,job,monitor

neo4j_page

指标 描述 类型 单位 Tag
cache_bytes_read_total - float - instance,job,monitor
cache_bytes_written_total - float - instance,job,monitor
cache_eviction_exceptions_total - float - instance,job,monitor
cache_evictions_total - float - instance,job,monitor
cache_flushes_total - float - instance,job,monitor
cache_hit_ratio - float - instance,job,monitor
cache_hits_total - float - instance,job,monitor
cache_page_faults_total - float - instance,job,monitor
cache_pins_total - float - instance,job,monitor
cache_unpins_total - float - instance,job,monitor
cache_usage_ratio - float - instance,job,monitor

neo4j_server

指标 描述 类型 单位 Tag
threads_jetty_all - float - instance,job,monitor
threads_jetty_idle - float - instance,job,monitor

neo4j_system

指标 描述 类型 单位 Tag
check_point_duration - float - instance,job,monitor
check_point_events_total - float - instance,job,monitor
check_point_total_time_total - float - instance,job,monitor
cypher_replan_events_total - float - instance,job,monitor
cypher_replan_wait_time_total - float - instance,job,monitor
ids_in_use_node - float - instance,job,monitor
ids_in_use_property - float - instance,job,monitor
ids_in_use_relationship - float - instance,job,monitor
ids_in_use_relationship_type - float - instance,job,monitor
log_appended_bytes_total - float - instance,job,monitor
log_rotation_duration - float - instance,job,monitor
log_rotation_events_total - float - instance,job,monitor
log_rotation_total_time_total - float - instance,job,monitor
neo4j_count_node - float - instance,job,monitor
neo4j_count_relationship - float - instance,job,monitor
store_size_total - float - instance,job,monitor
transaction_active - float - instance,job,monitor
transaction_active_read - float - instance,job,monitor
transaction_active_write - float - instance,job,monitor
transaction_committed_read_total - float - instance,job,monitor
transaction_committed_total - float - instance,job,monitor
transaction_committed_write_total - float - instance,job,monitor
transaction_last_closed_tx_id_total - float - instance,job,monitor
transaction_last_committed_tx_id_total - float - instance,job,monitor
transaction_peak_concurrent_total - float - instance,job,monitor
transaction_rollbacks_read_total - float - instance,job,monitor
transaction_rollbacks_total - float - instance,job,monitor
transaction_rollbacks_write_total - float - instance,job,monitor
transaction_started_total - float - instance,job,monitor
transaction_terminated_read_total - float - instance,job,monitor
transaction_terminated_total - float - instance,job,monitor
transaction_terminated_write_total - float - instance,job,monitor

neo4j_vm

指标 描述 类型 单位 Tag
file_descriptors_count - float - instance,job,monitor
file_descriptors_maximum - float - instance,job,monitor
gc_count_g1_old_generation_total - float - instance,job,monitor
gc_count_g1_young_generation_total - float - instance,job,monitor
gc_time_g1_old_generation_total - float - instance,job,monitor
gc_time_g1_young_generation_total - float - instance,job,monitor
heap_committed - float - instance,job,monitor
heap_max - float - instance,job,monitor
heap_used - float - instance,job,monitor
memory_buffer_direct_capacity - float - instance,job,monitor
memory_buffer_direct_count - float - instance,job,monitor
memory_buffer_direct_used - float - instance,job,monitor
memory_buffer_mapped_capacity - float - instance,job,monitor
memory_buffer_mapped_count - float - instance,job,monitor
memory_buffer_mapped_used - float - instance,job,monitor
memory_pool_codeheap__non_nmethods_ - float - instance,job,monitor
memory_pool_codeheap__non_profiled_nmethods_ - float - instance,job,monitor
memory_pool_codeheap__profiled_nmethods_ - float - instance,job,monitor
memory_pool_compressed_class_space - float - instance,job,monitor
memory_pool_g1_eden_space - float - instance,job,monitor
memory_pool_g1_old_gen - float - instance,job,monitor
memory_pool_g1_survivor_space - float - instance,job,monitor
memory_pool_metaspace - float - instance,job,monitor
thread_count - float - instance,job,monitor
thread_total - float - instance,job,monitor

neo4j_dbms

指标 描述 类型 单位 Tag
pool_bolt_total_used - float - instance,job,monitor
pool_bolt_used_heap - float - instance,job,monitor
pool_bolt_used_native - float - instance,job,monitor
pool_other_free - float - instance,job,monitor
pool_other_total_used - float - instance,job,monitor
pool_other_used_heap - float - instance,job,monitor
pool_other_used_native - float - instance,job,monitor
pool_page_cache_free - float - instance,job,monitor
pool_page_cache_total_size - float - instance,job,monitor
pool_page_cache_total_used - float - instance,job,monitor
pool_page_cache_used_heap - float - instance,job,monitor
pool_page_cache_used_native - float - instance,job,monitor
pool_recent_query_buffer_free - float - instance,job,monitor
pool_recent_query_buffer_total_used - float - instance,job,monitor
pool_recent_query_buffer_used_heap - float - instance,job,monitor
pool_recent_query_buffer_used_native - float - instance,job,monitor
pool_transaction_total_used - float - instance,job,monitor
pool_transaction_used_heap - float - instance,job,monitor
pool_transaction_used_native - float - instance,job,monitor