The docs for JMX: 
Here are the published numbers: 
http://docs.neo4j.org/chunked/milestone/jmx-mxbeans.html
Remote JMX access to server: 
http://docs.neo4j.org/chunked/milestone/jmx-remote.html

JMX access via HTTP: 
http://www.markhneedham.com/blog/2013/10/20/neo4j-accessing-jmx-beans-via-http/
Access via Java: 
http://blog.armbruster-it.de/2014/02/getting-insight-in-neo4js-jmx-beans-when-running-embedded/

There are some command line tools for JMX
- http://wiki.cyclopsgroup.org/jmxterm/
- 
http://nofluffjuststuff.com/blog/vladimir_vivien/2012/04/jmx_cli_a_command_line_console_to_jmx

Accessing via JConsole
http://docs.neo4j.org/chunked/milestone/jmx-connect-jconsole.html

JMX access via the neo4j-shell: (Note this was for community, the enterprise 
version has more monitoring endpoints)

help dbinfo
USAGE: dbinfo -(g|l) <bean name> [list of attribute names].

Get runtime information about the Graph Database.
This uses the Neo4j management beans to get information about the Graph 
Database.

Available Management Beans
* Store file sizes
* Kernel
* Configuration
* Primitive count

USAGE: dbinfo -(g|l) <bean name> [list of attribute names].
  
  -g     Get the value of the specified attribute(s), or all attributes of the 
specified 
         bean if no attributes are specified.
  -l     List available attributes for the specified bean. Including a 
description about 
         each attribute.
  
neo4j-sh (?)$ dbinfo -l Kernel
ReadOnly - Whether this is a read only instance
StoreId - An identifier that, together with store creation time, uniquely 
identifies this Neo4j graph store.
MBeanQuery - An ObjectName that can be used as a query for getting all 
management beans for this Neo4j instance.
KernelStartTime - The time from which this Neo4j instance was in operational 
mode.
StoreCreationDate - The time when this Neo4j graph store was created.
StoreLogVersion - The current version of the Neo4j store logical log.
KernelVersion - The version of Neo4j
StoreDirectory - The location where the Neo4j store is located
neo4j-sh (?)$ dbinfo -g Kernel KernelVersion
{"KernelVersion": "Neo4j - Graph Database Kernel (neo4j-kernel), version: 
2.1.2"}
neo4j-sh (?)$ dbinfo -g Kernel KernelVersion StoreDirectory
{
  "KernelVersion": "Neo4j - Graph Database Kernel (neo4j-kernel), version: 
2.1.2",
  "StoreDirectory": "/Users/mh/trash/test.db"
}
neo4j-sh (?)$ dbinfo -l "Primitive count"
NumberOfNodeIdsInUse - An estimation of the number of nodes used in this Neo4j 
instance
NumberOfRelationshipIdsInUse - An estimation of the number of relationships 
used in this Neo4j instance
NumberOfPropertyIdsInUse - An estimation of the number of properties used in 
this Neo4j instance
NumberOfRelationshipTypeIdsInUse - The number of relationship types used in 
this Neo4j instance
neo4j-sh (?)$ dbinfo -g "Primitive count" NumberOfNodeIdsInUse 
NumberOfRelationshipIdsInUse
{
  "NumberOfNodeIdsInUse": 0,
  "NumberOfRelationshipIdsInUse": 0
}

you can also script it

bin/neo4j-shell -path trash/test.db -c 'dbinfo -g "Primitive count" 
NumberOfNodeIdsInUse NumberOfRelationshipIdsInUse'

{
  "NumberOfNodeIdsInUse": 1,
  "NumberOfRelationshipIdsInUse": 1
}


Am 06.09.2014 um 21:08 schrieb [email protected]:

> +1 I also would like some kind of rest endpoint to get metrics about the 
> health of the cluster etc... things like vertex count, relationship count, 
> active indexes 
> 
> On Wednesday, September 3, 2014 10:19:15 AM UTC-7, Avindra Goolcharan wrote:
> Hi,
> 
> Are there standard practices for monitoring Neo4j? JMX is quite confusing... 
> perhaps someone can point me to documentation regarding that.
> 
> My goal is to check Neo4j status from a regular linux command line.
> 
> Thanks,
> 
> Avindra.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to