This is a simple example of using OverOps to monitor an external Docker image, in this case Cassandra. Instead of specifying the agentlib
inside the container during as a JVM startup flag, this example uses the JAVA_TOOL_OPTIONS
environment variable to auto attach to any JVM launched inside the container. The docker-compose.yml
contains the following services:
collector
- an OverOps Collector running in a dedicated container (aka Remote Collector)sidecar
- an OverOps Agent running in a dedicated container whose directory is exposed as a Dockervolume
mountcassandra
- an instance of Cassandra monitored by an OverOps Agent mounted in thesidecar
To begin, you must first create a file called overops-key.env
and place it in the same directory as the Dockerfile
. Below is a sample overops-key.env
file.
TAKIPI_SECRET_KEY=your-very-own-overops-secret-key
docker-compose up
docker-compose down
- Remote Collector - timveil/oo-docker-remote-collector
- Agent Sidecar - timveil/oo-docker-agent-sidecar
- Cassandra - cassandra