You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Monitor a Neo4j instance in standalone Docker container
2
2
3
-
Running additional processes that are not tied to the lifecycle of the container process is not a best practice for containerized applications.
4
-
Nevertheless, it is possible to transparently monitor a containerized Neo4j instance in following ways:
3
+
A Neo4j instance running in a Docker container can be monitored by a NOM agent in two ways:
4
+
5
+
- The NOM agent can be run as an additional (daemon) process in the Neo4j container
6
+
- The NOM agent can be run on the Docker host to externally monitor the Neo4j container
5
7
6
8
[NOTE]
7
9
====
8
-
Both methods below use a bundled NOM agent inside the Neo4j image instead of downloaded agent packages.
9
-
Replacing `products/neo4j-ops-manager-agent-*-linux-amd64.tar.gz` with path to NOM agent package downloaded should give the same results.
10
+
Running additional processes that are not tied to the lifecycle of the container process is not a best practice for containerized applications.
10
11
====
11
12
12
-
. Monitoring a Neo4j instance Running inside a Docker container:
13
+
== In-container Monitoring
14
+
The following steps describe running a NOM agent in Neo4j container as an additional (daemon) process to monitor the instance:
15
+
16
+
* Run the Neo4j docker container.
17
+
** For more information, see link:https://neo4j.com/docs/operations-manual/current/docker/[Operations Manual -> Docker].
18
+
** A custom entrypoint script can be mounted to the Neo4j container to run the NOM agent at DBMS startup which is described <<entrypoint, further on>>.
19
+
20
+
* Install the NOM agent to make the `agent` command available to run.
21
+
** Bundled
22
+
*** NOM agent binaries are bundled in the Neo4j package and reside in the `products` folder of the Neo4j installation directory.
23
+
*** It can be extracted from the package and installed into a system binaries directory for access to the `agent` command.
tar -xzf $NEO4J_HOME/products/neo4j-ops-manager-agent-<NOM_VERSION>-linux-amd64.tar.gz --strip-components 1 && mv bin/agent-<NOM_VERSION>-linux-amd64 /bin/agent
28
+
----
29
+
30
+
** Mounted
31
+
*** NOM agent binaries can be mounted into the container as a volume mount and installed into a system binaries directory for access to `agent` command.
0 commit comments