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 AxonOps 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 lines within /etc/axonops/axon-agent.yml.
The highlighted lines should match the host and org keys found within
/etc/axonops/axon-server.yml.
axon-server:hosts:"axon-server_endpoint"# Your axon-server IP or hostname, e.g. axonops.mycompany.comport:1888# The default axon-server port is 1888axon-agent:org:"my-company"# Your organisation name# SSL/TLS Settings from AxonOps Agent to AxonOps Servertls:mode:"disabled"# disabled, TLS# Only set below if mode is TLSskipVerify:false# Disables CA and Hostname verificationcaFile:"path_to_certs_on_axon_agent_node.crt"# required if skipVerify is not set and you are using a self-signed certcertFile:"path_to_certs_on_axon_agent_node.crt"keyFile:"path_to_key_file_on_axon_agent_node.key"NTP:host:"ntp.mycompany.com"# Your NTP server IP address or hostname
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. Make sure this configuration is not overridden by automation tools.
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.
Update the highlighted lines in /etc/axonops/axon-agent.yml.
These need to match the config that you have in your axon-server.yml setup.
axon-server:hosts:"agents.axonops.cloud"# AxonOps SaaS# hosts: "${AXONOPS_SERVER_HOSTS}" # AxonOps Server On-Premise Endpoint# port: 1888 # AxonOps Server On-Premise Port (Default is 1888)axon-agent:key:"<THIS_IS_A_DUMMY_KEY_PLEASE_UPDATE>"org:"<THIS_IS_A_DUMMY_ORG_NAME_PLEASE_UPDATE>"cluster_name:"<THIS_IS_A_DUMMY_CLUSTER_NAME_PLEASE_UPDATE>"tls:mode:"TLS"# disabled, TLS#skipVerify: false # Disables CA and Hostname verification#caFile: "path_to_certs_on_axon_agent_node.crt" # required if skipVerify is not set and you are using a self-signed cert#certFile: "path_to_certs_on_axon_agent_node.crt"#keyFile: "path_to_key_file_on_axon_agent_node.key"# Specify the NTP server IP addresses or hostnames configured for your hosts# 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/kafka:node_type:"broker"# broker, kraft-broker, kraft-controller, zookeeper, connect# rack: "testrack" # Auto-detected from Kafka config, optionally override the rack to group nodes in AxonOpskafka_client:brokers:["<host_listener_ip_address_or_fqdn>:<port>>"]# 10.0.0.2:9092 or 10.20.30.40:9094 or this_is_my_server.domain.com:9093# Authentication Settingssasl:username:<THIS_IS_A_DUMMY_USERNAME_PLEASE_UPDATE>password:<THIS_IS_A_DUMMY_PASSWORD_PLEASE_UPDATE>mechanism:PLAIN# SCRAM-SHA-256, SCRAM-SHA-512, OAUTHBEARER, GSSAPI# For oauth support# oauth:# token:# clientId:# clientSecret:# tokenEndpoint:# scope:# For gssapi support# gssapi:# authType:# keyTabPath:# kerberosConfigPath:# serviceName:# username:# password:# realm:# enableFast: true# SSL settings for connection to Kafkatls:enabled:truecaFilepath:<THIS_IS_A_DUMMY_CA_PATH_PLEASE_UPDATE>insecureSkipTlsVerify:false
axon-server:hosts:"agents.axonops.cloud"# AxonOps SaaS# hosts: "${AXONOPS_SERVER_HOSTS}" # AxonOps Server On-Premise Endpoint# port: 1888 # AxonOps Server On-Premise Port (Default is 1888)axon-agent:key:"<THIS_IS_A_DUMMY_KEY_PLEASE_UPDATE>"org:"<THIS_IS_A_DUMMY_ORG_NAME_PLEASE_UPDATE>"cluster_name:"<THIS_IS_A_DUMMY_CLUSTER_NAME_PLEASE_UPDATE>"tls:mode:"TLS"# disabled, TLS#skipVerify: false # Disables CA and Hostname verification#caFile: "path_to_certs_on_axon_agent_node.crt" # required if skipVerify is not set and you are using a self-signed cert#certFile: "path_to_certs_on_axon_agent_node.crt"#keyFile: "path_to_key_file_on_axon_agent_node.key"# Specify the NTP server IP addresses or hostnames configured for your hosts# 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/kafka:node_type:"zookeeper"# broker, kraft-broker, kraft-controller, zookeeper, connect# rack: "testrack" # Optionally specify a rack to group nodes in AxonOps
axon-server:hosts:"agents.axonops.cloud"# AxonOps SaaS# hosts: "${AXONOPS_SERVER_HOSTS}" # AxonOps Server On-Premise Endpoint# port: 1888 # AxonOps Server On-Premise Port (Default is 1888)axon-agent:key:"<THIS_IS_A_DUMMY_KEY_PLEASE_UPDATE>"org:"<THIS_IS_A_DUMMY_ORG_NAME_PLEASE_UPDATE>"cluster_name:"<THIS_IS_A_DUMMY_CLUSTER_NAME_PLEASE_UPDATE>"tls:mode:"TLS"# disabled, TLS#skipVerify: false # Disables CA and Hostname verification#caFile: "path_to_certs_on_axon_agent_node.crt" # required if skipVerify is not set and you are using a self-signed cert#certFile: "path_to_certs_on_axon_agent_node.crt"#keyFile: "path_to_key_file_on_axon_agent_node.key"# Specify the NTP server IP addresses or hostnames configured for your hosts# 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/kafka:node_type:"kraft-broker"# broker, kraft-broker, kraft-controller, zookeeper, connect# rack: "testrack" # Auto-detected from Kafka config, optionally override the rack to group nodes in AxonOpskafka_client:brokers:["<host_listener_ip_address_or_fqdn>:<port>>"]# 10.0.0.2:9092 or 10.20.30.40:9094 or this_is_my_server.domain.com:9093# Authentication Settingssasl:username:<THIS_IS_A_DUMMY_USERNAME_PLEASE_UPDATE>password:<THIS_IS_A_DUMMY_PASSWORD_PLEASE_UPDATE>mechanism:PLAIN# SCRAM-SHA-256, SCRAM-SHA-512, OAUTHBEARER, GSSAPI# For oauth support# oauth:# token:# clientId:# clientSecret:# tokenEndpoint:# scope:# For gssapi support# gssapi:# authType:# keyTabPath:# kerberosConfigPath:# serviceName:# username:# password:# realm:# enableFast: true# SSL settings for connection to Kafkatls:enabled:truecaFilepath:<THIS_IS_A_DUMMY_CA_PATH_PLEASE_UPDATE>insecureSkipTlsVerify:false
axon-server:hosts:"agents.axonops.cloud"# AxonOps SaaS# hosts: "${AXONOPS_SERVER_HOSTS}" # AxonOps Server On-Premise Endpoint# port: 1888 # AxonOps Server On-Premise Port (Default is 1888)axon-agent:key:"<THIS_IS_A_DUMMY_KEY_PLEASE_UPDATE>"org:"<THIS_IS_A_DUMMY_ORG_NAME_PLEASE_UPDATE>"cluster_name:"<THIS_IS_A_DUMMY_CLUSTER_NAME_PLEASE_UPDATE>"tls:mode:"TLS"# disabled, TLS#skipVerify: false # Disables CA and Hostname verification#caFile: "path_to_certs_on_axon_agent_node.crt" # required if skipVerify is not set and you are using a self-signed cert#certFile: "path_to_certs_on_axon_agent_node.crt"#keyFile: "path_to_key_file_on_axon_agent_node.key"# Specify the NTP server IP addresses or hostnames configured for your hosts# 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/kafka:node_type:"kraft-controller"# broker, kraft-broker, kraft-controller, zookeeper, connect# rack: "testrack" # Auto-detected from Kafka config, optionally override the rack to group nodes in AxonOpskafka_client:brokers:["<host_listener_ip_address_or_fqdn>:<port>>"]# 10.0.0.2:9092 or 10.20.30.40:9094 or this_is_my_server.domain.com:9093# Authentication Settingssasl:username:<THIS_IS_A_DUMMY_USERNAME_PLEASE_UPDATE>password:<THIS_IS_A_DUMMY_PASSWORD_PLEASE_UPDATE>mechanism:PLAIN# SCRAM-SHA-256, SCRAM-SHA-512, OAUTHBEARER, GSSAPI# For oauth support# oauth:# token:# clientId:# clientSecret:# tokenEndpoint:# scope:# For gssapi support# gssapi:# authType:# keyTabPath:# kerberosConfigPath:# serviceName:# username:# password:# realm:# enableFast: true# SSL settings for connection to Kafkatls:enabled:truecaFilepath:<THIS_IS_A_DUMMY_CA_PATH_PLEASE_UPDATE>insecureSkipTlsVerify:false
axon-server:hosts:"agents.axonops.cloud"# AxonOps SaaS# hosts: "${AXONOPS_SERVER_HOSTS}" # AxonOps Server On-Premise Endpoint# port: 1888 # AxonOps Server On-Premise Port (Default is 1888)axon-agent:key:"<THIS_IS_A_DUMMY_KEY_PLEASE_UPDATE>"org:"<THIS_IS_A_DUMMY_ORG_NAME_PLEASE_UPDATE>"cluster_name:"<THIS_IS_A_DUMMY_CLUSTER_NAME_PLEASE_UPDATE>"tls:mode:"TLS"# disabled, TLS#skipVerify: false # Disables CA and Hostname verification#caFile: "path_to_certs_on_axon_agent_node.crt" # required if skipVerify is not set and you are using a self-signed cert#certFile: "path_to_certs_on_axon_agent_node.crt"#keyFile: "path_to_key_file_on_axon_agent_node.key"# Specify the NTP server IP addresses or hostnames configured for your hosts# 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/kafka:node_type:"connect"# broker, kraft-broker, kraft-controller, zookeeper, connect# rack: "testrack" # Optionally specify a rack to group nodes in AxonOps
Set file permissions on /etc/axonops/axon-agent.yml file by executing the following command
Edit connect-distributed.sh, usually located in your Kafka install path such as:
/<Kafka_Home>/bin/connect-distributed.sh
Insert the line . /usr/share/axonops/axonops-jvm.options right before the final line in your config file. Look for the last line that starts with exec, as demonstrated in the example below.
NB. Please note the period(.) at the beginning of the config line.
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.
Add axonops user to KRaft Broker user group and KRaft Broker user to axonops group¶
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.
Add axonops user to KRaft Controller user group and KRaft Controller user to axonops group¶
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.
Add axonops user to Kafka Connect user group and Kafka Connect user to axonops group¶
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.