axon-agent connects securely to the following AxonOps Cloud service endpoint:
Terminal window
https://agents.axonops.cloud
The TLS HTTPS connection initiated by the agent is upgraded to a WebSocket connection and thus requires WebSocket support in your corporate infrastructure, such as a secure web proxy service.
If you have a DNS-based security policy, you must allow outbound access to the following domain.
Terminal window
agents.axonops.cloud
If you have an IP address-based security policy, you must open access to the IP address ranges provided in the following links.
Terminal window
https://agents.axonops.cloud/ips-v4
https://agents.axonops.cloud/ips-v6
To test connectivity, execute the following command:
Terminal window
curlhttps://agents.axonops.cloud/test.html
You should expect the following response:
AxonOps Agent Test Page
Set up the AxonOps repository and install axon-agent
The AxonOps Cassandra Agent is the jar that is directly loaded by Cassandra.
The AxonOps Cassandra Agent then reaches out directly to the AxonOps Agent binary
which contacts the AxonOps Server directly.
The axon-agent is a dependency of the AxonOps Cassandra Agent. This binary
contacts the AxonOps Server directly while minimizing the memory footprint
and CPU utilization of the Cassandra process.
Update the following highlighted lines from /etc/axonops/axon-agent.yml:
Please update the key and org values, they can be viewed by logging into console.axonops.cloud
Organization (org) name is next to the logo in the console
Agent Keys (key) found in Agent Setup
If there is a Dedicated NTP server in your Organization please uncomment and update the NTP section.
axon-server:
hosts: "agents.axonops.cloud"
axon-agent:
key: <THIS_IS_A_DUMMY_KEY_PLEASE_UPDATE>
org: <THIS_IS_A_DUMMY_ORG_NAME_PLEASE_UPDATE>
# Specify the NTP server IP addresses or hostnames configured for your Cassandra hosts
# if using Cassandra deployed in Kubernetes or if auto-detection fails.
# The port defaults to 123 if not specified.
# NTP:
# hosts:
# - "x.x.x.x:123"
# Optionally restrict which commands can be executed by axon-agent.
# If "true", only scripts placed in scripts_location can be executed by axon-agent.
# disable_command_exec: false
# If disable_command_exec is true then axon-agent is only allowed to execute scripts
# under this path
# scripts_location: /var/lib/axonops/scripts/
Set file permissions on /etc/axonops/axon-agent.yml file by executing the following command
sudo chmod 0640 /etc/axonops/axon-agent.yml
Configure Cassandra
Add the following at the end of /etc/cassandra/cassandra-env.sh, replacing any existing line that loads
the AxonOps agent, so the agent is not loaded twice:
# Please note the period (.) at the beginning of the line.
. /usr/share/axonops/axonops-jvm.options
# Please note the period (.) at the beginning of the line.
. /usr/share/axonops/axonops-jvm.options
# Please note the period (.) at the beginning of the line.
. /usr/share/axonops/axonops-jvm.options
# Please note the period (.) at the beginning of the line.
. /usr/share/axonops/axonops-jvm.options
If Cassandra was installed using a tarball, the correct path for the cassandra-env.sh
will be <Cassandra Installation Directory>/conf/cassandra-env.sh.
NB. On Cassandra 4.1, 4.0 and 3.11, axonops-jvm.options is included in the AxonOps Cassandra Agent
package from version 1.1.0. If the file is missing, Cassandra does not start and nodetool commands fail.
On a node that already runs the agent, upgrade the agent package to 1.1.0 or later before replacing its
JVM_OPTS="$JVM_OPTS -javaagent:..." line, and restore that line before downgrading the agent package
below 1.1.0.
NB. Make sure this configuration is not overridden by automation tools.
Adding the axonops user to the cassandra user group.
Adding the cassandra user to the axonops user group.
Terminal window
CASSANDRA_GROUP=cassandra
CASSANDRA_USER=cassandra
sudousermod-aG"$CASSANDRA_GROUP"axonops
sudousermod-aGaxonops"$CASSANDRA_USER"
If Cassandra was setup to use a non-default user or group,
CASSANDRA_GROUP and/or CASSANDRA_USER
will need be updated accordingly for the above commands to work properly.
The AxonOps Kafka Agent is the jar that is directly loaded by Kafka.
The AxonOps Kafka Agent then reaches out directly to the AxonOps Agent binary
which contacts the AxonOps Server directly.
The AxonOps Agent is a dependency of the AxonOps Kafka Agent. This binary
contacts the AxonOps Server directly while minimizing the memory footprint
and CPU utilization of the Kafka process.
NB. Make sure that this configuration will not get overridden by an automation tool.
Add axonops user to Kafka user group and Kafka user to axonops group
Terminal window
sudousermod-aG"$KAFKA_GROUP"axonops
sudousermod-aGaxonops"$KAFKA_USER"
Start/Restart Kafka
To load the AxonOps Java Agent and Kafka config changes please either start the Kafka service if stopped restart the Kafka service if already running.
Terminal window
<Kafka_Home>/bin/kafka-server-stop.sh
<Kafka_Home>/bin/kafka-server-start.sh
Add axonops user to Zookeeper user group and Zookeeper user to axonops group
Terminal window
sudousermod-aG"$ZOOKEEPER_GROUP"axonops
sudousermod-aGaxonops"$ZOOKEEPER_USER"
Start/Restart Zookeeper
To load the AxonOps Java Agent and Zookeeper config changes please either start the Zookeeper service if stopped or restart the Zookeeper service if already running.
Terminal window
<Zookeeper_Home>/bin/zookeeper-server-stop.sh
<Zookeeper_Home>/bin/zookeeper-server-start.sh
Add axonops user to KRaft Broker user group and KRaft Broker user to axonops group
Terminal window
sudousermod-aG"$KRAFT_GROUP"axonops
sudousermod-aGaxonops"$KRAFT_USER"
Start/Restart KRaft Broker
To load the AxonOps Java Agent and Kafka KRaft config changes please either start the Kafka KRaft service if stopped or restart the Kafka KRaft service if already running.
Terminal window
<Kafka_Home>/bin/kafka-server-stop.sh
<Kafka_Home>/bin/kafka-server-start.sh
Add axonops user to KRaft Controller user group and KRaft Controller user to axonops group
Terminal window
sudousermod-aG"$KRAFT_GROUP"axonops
sudousermod-aGaxonops"$KRAFT_USER"
Start/Restart KRaft Controller
To load the AxonOps Java Agent and Kafka KRaft config changes please either start the Kafka KRaft service if stopped or restart the Kafka KRaft service if already running.
Terminal window
<Kafka_Home>/bin/kafka-server-stop.sh
<Kafka_Home>/bin/kafka-server-start.sh
Add axonops user to Kafka Connect user group and Kafka Connect user to axonops group
Terminal window
sudousermod-aG"$CONNECT_GROUP"axonops
sudousermod-aGaxonops"$CONNECT_USER"
Start/Restart Kafka Connect
To load the AxonOps Java Agent and Kafka Connect config changes please either:
Start the Kafka Connect service if stopped.
Restart the Kafka Connect service if already running.