Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-16-2019 11:14 PM
We would like to know how to get the details listed below using any queries or function calls or in some other way in Neo4j for the Purpose of Monitoring. We are planning to periodically retrieve the data from the Neo4j using a Java program. We a using the neo4j-java-driver-1.7.3.jar for collecting the data. Please let us know the methods to collect the below data using Java. We do not want JMX for Monitoring. We would like to make use of Bolt to collect all our required details. Please let us know the method of retrieval for both free and paid versions which will help us.
Data Needed.
1) Java Details
Total Physical Memory Size
Used Physical Memory Size
Commited Virtual Memory Size
Total Swap Space Size
Free Swap Space Size
Total GC Pause Time
Last GC Duration
Daemon Thread Count
Peak Thread Count
Live Thread Count
Total Started Thread Count
Committed Heap Memory
Initial Heap Memory
Used Heap Memory
Committed Non Heap Memory
Initial Non Heap Memory
Used Non Heap Memory
2) Transaction Details
Committed Transactions
Started Transactions
Open Transactions
Peak Concurrent Transactions
3) Clustering Details
04-18-2019 02:08 AM
You can either call the queryJmx
procedure via bolt and get the data.
We also added support to apoc for retrieving CSV metrics files from the server
procedure
apoc.metrics.list
apoc.metrics.list() - get a list of available metrics
procedure
apoc.metrics.storage
apoc.metrics.storage(directorySetting) - retrieve storage metrics about the devices Neo4j uses for data storage. directorySetting may be any valid neo4j directory setting name, such as 'dbms.directories.data'. If null is provided as a directorySetting, you will get back all available directory settings. For a list of available directory settings, see the Neo4j operations manual reference on configuration settings. Directory settings are not paths, they are a neo4j.conf setting key name
procedure
apoc.metrics.get
apoc.metrics.get(metricName, {}) - retrieve a system metric by its metric name. Additional configuration options may be passed matching the options available for apoc.load.csv.
All the sessions of the conference are now available online