-
Notifications
You must be signed in to change notification settings - Fork 332
Central Collector Installation
- Java 11+ for running the central collector v0.14.2 itself (agents can still be running under Java 8+)
- Java 17+ for running the central collector v0.14.3 itself (agents can still be running under Java 8+)
- Cassandra 3.1 or later
You can install the central collector as either a standalone executable jar file, as a war file deployed in your favorite servlet container, or as a docker container.
-
Download and unzip glowroot-central-0.14.7-dist.zip.
-
Configure the Cassandra connection in the
glowroot-central.propertiesfile. -
The first time the central collector connects to Cassandra it will create the keyspace and schema. The keyspace will be created with
replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }. If you are running a Cassandra cluster and wish to change this, either create the keyspace before starting the central collector for the first time, or alter the replication strategy after the central collector creates the keyspace. -
If you want to set a username and password before starting up, run
java -jar glowroot-central.jar setup-admin-user <username> <password>from inside the glowroot-central directory. -
From inside the glowroot-central directory, run
java -jar glowroot-central.jar.The central UI will be available at http://localhost:4000. This port is configurable under Glowroot UI > Configuration > Web.
The central collector will listen for HTTP/2 connections from agents on port 8181 by default (this port is configurable in the
glowroot-central.propertiesfile).
-
Download glowroot-central-0.14.7-dist.war and drop it into your servlet container. The servlet container must be at least Jakarta Servlet 5+ compliant.
-
Create a directory, e.g.
path/to/glowroot-central. -
Copy the
glowroot-central.propertiesfile from inside the war file atMETA-INF/glowroot-central.propertiesto the directory you created above. -
Configure the Cassandra connection in the
glowroot-central.propertiesfile. -
Add the JVM arg
-Dglowroot.central.dir=path/to/glowroot-centralto your servlet container startup. -
The first time glowroot-central connects to Cassandra it will create the keyspace and schema. The keyspace will be created with
replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }. If you are running a Cassandra cluster and wish to change this, either create the keyspace before starting the central collector for the first time, or alter the replication strategy after the central collector creates the keyspace. -
Start your servlet container.
The central UI will be available via your servlet container.
The central collector will listen for HTTP/2 connections from agents on port 8181 by default (this port is configurable in the
glowroot-central.propertiesfile).
-
Run Cassandra, e.g.
docker run --name mycassandra -d cassandra -
Run the central collector, e.g.
docker run --name myglowroot \ --link mycassandra:cassandra \ --publish 0.0.0.0:4000:4000 \ --publish 0.0.0.0:8181:8181 \ glowroot/glowroot-central:0.14.7
-
Set
ui.https=truein theglowroot-central.propertiesfile. -
Place your certificate and private key in the
glowroot-centraldirectory, with filenamesui-cert.pemandui-key.pem, whereui-cert.pemis a PEM encoded X.509 certificate chain, andui-key.pemis a PEM encoded PKCS#8 private key without a passphrase.Note: A private key and self signed certificate can be generated at the command line meeting these requirements using OpenSSL 1.0.0 or later:
openssl req -new -x509 -nodes -days 365 -out ui-cert.pem -keyout ui-key.pem.Note: For tips on converting an existing private key and X.509 certificate chain to the required format, see Private key and X.509 certificate chain tips.
Note: If you want to use the same certificate and private key files for both the UI and agent communication, name them
cert.pemandkey.pem.