数据采集 采集源配置 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
- 已安装 DataKit(DataKit 安装文档)
配置
进入 DataKit 安装目录下的 conf.d/neo4j 目录,复制 neo4j.conf.sample 并命名为 neo4j.conf。示例如下:
[[inputs.prom]]
# neo4j metrics from http(https)://HOST:PORT/metrics
# usually modify host and port
# required
url = "http://127.0.0.1:2004/metrics"
# valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h"
# required
interval = "10s"
## Optional TLS Config
tls_open = false
# tls_ca = "/tmp/ca.crt"
# tls_cert = "/tmp/peer.crt"
# tls_key = "/tmp/peer.key"
# [inputs.prom.tags]
# from = "127.0.0.1:2004"
# tags1 = "value1"
说明:
- 如果 指标 接口需要使用 HTTPS 访问,需要在配置文件中将
tls_open
设置为true
,且配置3个证书和私钥文件路径 - 使用命令例如
curl 127.0.0.1:2004/metrics
根据返回内容判断是否需要使用 HTTPS - 使用命令例如
curl --cacert ca.crt --cert peer.crt --key peer.key -L https://127.0.0.1:2004/metrics
验证 tls 证书和私钥是否可用 - 证书和私钥码只支持 PEM 编码
采集指标
neo4j
指标 | 描述 | 类型 |
---|---|---|
neo4j_bolt_accumulated_processing_time_total | - | float |
neo4j_bolt_accumulated_queue_time_total | - | float |
neo4j_bolt_connections_closed_total | - | float |
neo4j_bolt_connections_idle | - | float |
neo4j_bolt_connections_opened_total | - | float |
neo4j_bolt_connections_running | - | float |
neo4j_bolt_messages_done_total | - | float |
neo4j_bolt_messages_failed_total | - | float |
neo4j_bolt_messages_received_total | - | float |
neo4j_bolt_messages_started_total | - | float |
neo4j_bolt_sessions_started_total | - | float |
neo4j_db_operation_count_create_total | - | float |
neo4j_db_operation_count_drop_total | - | float |
neo4j_db_operation_count_failed_total | - | float |
neo4j_db_operation_count_recovered_total | - | float |
neo4j_db_operation_count_start_total | - | float |
neo4j_db_operation_count_stop_total | - | float |
neo4j_dbms_pool_bolt_free | - | float |
neo4j_dbms_pool_bolt_total_size | - | float |
neo4j_dbms_pool_bolt_total_used | - | float |
neo4j_dbms_pool_bolt_used_heap | - | float |
neo4j_dbms_pool_bolt_used_native | - | float |
neo4j_dbms_pool_other_free | - | float |
neo4j_dbms_pool_other_total_size | - | float |
neo4j_dbms_pool_other_total_used | - | float |
neo4j_dbms_pool_other_used_heap | - | float |
neo4j_dbms_pool_other_used_native | - | float |
neo4j_dbms_pool_page_cache_free | - | float |
neo4j_dbms_pool_page_cache_total_size | - | float |
neo4j_dbms_pool_page_cache_total_used | - | float |
neo4j_dbms_pool_page_cache_used_heap | - | float |
neo4j_dbms_pool_page_cache_used_native | - | float |
neo4j_dbms_pool_recent_query_buffer_free | - | float |
neo4j_dbms_pool_recent_query_buffer_total_size | - | float |
neo4j_dbms_pool_recent_query_buffer_total_used | - | float |
neo4j_dbms_pool_recent_query_buffer_used_heap | - | float |
neo4j_dbms_pool_recent_query_buffer_used_native | - | float |
neo4j_dbms_pool_transaction_free | - | float |
neo4j_dbms_pool_transaction_total_size | - | float |
neo4j_dbms_pool_transaction_total_used | - | float |
neo4j_dbms_pool_transaction_used_heap | - | float |
neo4j_dbms_pool_transaction_used_native | - | float |
neo4j_neo4j_check_point_duration | - | float |
neo4j_neo4j_check_point_events_total | - | float |
neo4j_neo4j_check_point_total_time_total | - | float |
neo4j_neo4j_cypher_replan_events_total | - | float |
neo4j_neo4j_cypher_replan_wait_time_total | - | float |
neo4j_neo4j_ids_in_use_node | - | float |
neo4j_neo4j_ids_in_use_property | - | float |
neo4j_neo4j_ids_in_use_relationship | - | float |
neo4j_neo4j_ids_in_use_relationship_type | - | float |
neo4j_neo4j_log_appended_bytes_total | - | float |
neo4j_neo4j_log_rotation_duration | - | float |
neo4j_neo4j_log_rotation_events_total | - | float |
neo4j_neo4j_log_rotation_total_time_total | - | float |
neo4j_neo4j_neo4j_count_node | - | float |
neo4j_neo4j_neo4j_count_relationship | - | float |
neo4j_neo4j_pool_other_neo4j_free | - | float |
neo4j_neo4j_pool_other_neo4j_total_size | - | float |
neo4j_neo4j_pool_other_neo4j_total_used | - | float |
neo4j_neo4j_pool_other_neo4j_used_heap | - | float |
neo4j_neo4j_pool_other_neo4j_used_native | - | float |
neo4j_neo4j_pool_transaction_neo4j_free | - | float |
neo4j_neo4j_pool_transaction_neo4j_total_size | - | float |
neo4j_neo4j_pool_transaction_neo4j_total_used | - | float |
neo4j_neo4j_pool_transaction_neo4j_used_heap | - | float |
neo4j_neo4j_pool_transaction_neo4j_used_native | - | float |
neo4j_neo4j_store_size_database | - | float |
neo4j_neo4j_store_size_total | - | float |
neo4j_neo4j_transaction_active | - | float |
neo4j_neo4j_transaction_active_read | - | float |
neo4j_neo4j_transaction_active_write | - | float |
neo4j_neo4j_transaction_committed_read_total | - | float |
neo4j_neo4j_transaction_committed_total | - | float |
neo4j_neo4j_transaction_committed_write_total | - | float |
neo4j_neo4j_transaction_last_closed_tx_id_total | - | float |
neo4j_neo4j_transaction_last_committed_tx_id_total | - | float |
neo4j_neo4j_transaction_peak_concurrent_total | - | float |
neo4j_neo4j_transaction_rollbacks_read_total | - | float |
neo4j_neo4j_transaction_rollbacks_total | - | float |
neo4j_neo4j_transaction_rollbacks_write_total | - | float |
neo4j_neo4j_transaction_started_total | - | float |
neo4j_neo4j_transaction_terminated_read_total | - | float |
neo4j_neo4j_transaction_terminated_total | - | float |
neo4j_neo4j_transaction_terminated_write_total | - | float |
neo4j_page_cache_bytes_read_total | - | float |
neo4j_page_cache_bytes_written_total | - | float |
neo4j_page_cache_eviction_exceptions_total | - | float |
neo4j_page_cache_evictions_total | - | float |
neo4j_page_cache_flushes_total | - | float |
neo4j_page_cache_hit_ratio | - | float |
neo4j_page_cache_hits_total | - | float |
neo4j_page_cache_page_faults_total | - | float |
neo4j_page_cache_pins_total | - | float |
neo4j_page_cache_unpins_total | - | float |
neo4j_page_cache_usage_ratio | - | float |
neo4j_server_threads_jetty_all | - | float |
neo4j_server_threads_jetty_idle | - | float |
neo4j_system_check_point_duration | - | float |
neo4j_system_check_point_events_total | - | float |
neo4j_system_check_point_total_time_total | - | float |
neo4j_system_cypher_replan_events_total | - | float |
neo4j_system_cypher_replan_wait_time_total | - | float |
neo4j_system_ids_in_use_node | - | float |
neo4j_system_ids_in_use_property | - | float |
neo4j_system_ids_in_use_relationship | - | float |
neo4j_system_ids_in_use_relationship_type | - | float |
neo4j_system_log_appended_bytes_total | - | float |
neo4j_system_log_rotation_duration | - | float |
neo4j_system_log_rotation_events_total | - | float |
neo4j_system_log_rotation_total_time_total | - | float |
neo4j_system_neo4j_count_node | - | float |
neo4j_system_neo4j_count_relationship | - | float |
neo4j_system_pool_other_system_free | - | float |
neo4j_system_pool_other_system_total_size | - | float |
neo4j_system_pool_other_system_total_used | - | float |
neo4j_system_pool_other_system_used_heap | - | float |
neo4j_system_pool_other_system_used_native | - | float |
neo4j_system_pool_transaction_system_free | - | float |
neo4j_system_pool_transaction_system_total_size | - | float |
neo4j_system_pool_transaction_system_total_used | - | float |
neo4j_system_pool_transaction_system_used_heap | - | float |
neo4j_system_pool_transaction_system_used_native | - | float |
neo4j_system_store_size_database | - | float |
neo4j_system_store_size_total | - | float |
neo4j_system_transaction_active | - | float |
neo4j_system_transaction_active_read | - | float |
neo4j_system_transaction_active_write | - | float |
neo4j_system_transaction_committed_read_total | - | float |
neo4j_system_transaction_committed_total | - | float |
neo4j_system_transaction_committed_write_total | - | float |
neo4j_system_transaction_last_closed_tx_id_total | - | float |
neo4j_system_transaction_last_committed_tx_id_total | - | float |
neo4j_system_transaction_peak_concurrent_total | - | float |
neo4j_system_transaction_rollbacks_read_total | - | float |
neo4j_system_transaction_rollbacks_total | - | float |
neo4j_system_transaction_rollbacks_write_total | - | float |
neo4j_system_transaction_started_total | - | float |
neo4j_system_transaction_terminated_read_total | - | float |
neo4j_system_transaction_terminated_total | - | float |
neo4j_system_transaction_terminated_write_total | - | float |
neo4j_vm_file_descriptors_count | - | float |
neo4j_vm_file_descriptors_maximum | - | float |
neo4j_vm_gc_count_g1_old_generation_total | - | float |
neo4j_vm_gc_count_g1_young_generation_total | - | float |
neo4j_vm_gc_time_g1_old_generation_total | - | float |
neo4j_vm_gc_time_g1_young_generation_total | - | float |
neo4j_vm_heap_committed | - | float |
neo4j_vm_heap_max | - | float |
neo4j_vm_heap_used | - | float |
neo4j_vm_memory_buffer_direct_capacity | - | float |
neo4j_vm_memory_buffer_direct_count | - | float |
neo4j_vm_memory_buffer_direct_used | - | float |
neo4j_vm_memory_buffer_mapped_capacity | - | float |
neo4j_vm_memory_buffer_mapped_count | - | float |
neo4j_vm_memory_buffer_mapped_used | - | float |
neo4j_vm_memory_pool_codeheap__non_nmethods_ | - | float |
neo4j_vm_memory_pool_codeheap__non_profiled_nmethods_ | - | float |
neo4j_vm_memory_pool_codeheap__profiled_nmethods_ | - | float |
neo4j_vm_memory_pool_compressed_class_space | - | float |
neo4j_vm_memory_pool_g1_eden_space | - | float |
neo4j_vm_memory_pool_g1_old_gen | - | float |
neo4j_vm_memory_pool_g1_survivor_space | - | float |
neo4j_vm_memory_pool_metaspace | - | float |
neo4j_vm_pause_time | - | float |
neo4j_vm_thread_count | - | float |
neo4j_vm_thread_tota | - | float |