Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

AxonOps Server Installation

Select the OS Family

Execute the following commands to setup the AxonOps repository and install AxonOps Server:

Terminal window
sudo apt-get update
sudo apt-get install -y curl gnupg ca-certificates
curl -L https://packages.axonops.com/apt/repo-signing-key.gpg \
| sudo gpg --dearmor -o /usr/share/keyrings/axonops.gpg
echo "deb [signed-by=/usr/share/keyrings/axonops.gpg]\
https://packages.axonops.com/apt axonops-apt main" \
| sudo tee /etc/apt/sources.list.d/axonops-apt.list
sudo apt-get update
sudo apt-get install axon-server

The following files are installed into the local file system:

  • Configuration File: /etc/axonops/axon-server.yml
  • Binary: /usr/share/axonops/axon-server
  • Logs: /var/log/axonops/axon-server.log
  • Systemd service: /usr/lib/systemd/system/axon-server.service
  • Copyright : /usr/share/doc/axonops/axon-server/copyright
  • Licenses : /usr/share/axonops/licenses/axon-server/

Confirm the network.host and http.port values within /etc/elasticsearch/elasticsearch.yml for the dedicated Elasticsearch instance correspond to the values for search_db within /etc/axonops/axon-server.yml.

The following example works for the default Single-Server configuration:

search_db:
hosts:
- http://localhost:9200

If using Basic Auth with the default Single-Server configuration, ensure search_db values are setup using the following format:

search_db:
hosts:
- http://localhost:9200
username: elastic
password: my-strong-password

Update the above username and password with the dedicated service account/user created in Elasticsearch.

AxonOps Server establishes a TLS connection to the search database only when the first entry of search_db.hosts declares the https:// scheme. Hosts declared with http:// connect in plaintext, and the options below have no effect. All entries in search_db.hosts should therefore use the same scheme.

The following options control certificate verification and client authentication:

OptionEnvironment variableDescription
ca_fileSEARCH_DB_CA_FILEPath to a PEM-encoded CA certificate used to verify the search database server certificate. When omitted, the system trust store is used.
cert_fileSEARCH_DB_CERT_FILEPath to a PEM-encoded client certificate, presented for mutual TLS authentication.
key_fileSEARCH_DB_KEY_FILEPath to the PEM-encoded private key matching cert_file.
skip_verifySEARCH_DB_SKIP_VERIFYDisables CA and hostname verification. Defaults to false.

To verify a search database certificate issued by a private or self-signed CA, set ca_file to the CA bundle:

search_db:
hosts:
- https://elasticsearch.example.com:9200
username: elastic
password: my-strong-password
ca_file: /etc/axonops/certs/ca.pem

Where the search database requires client certificate authentication, set cert_file and key_file in addition:

search_db:
hosts:
- https://elasticsearch.example.com:9200
ca_file: /etc/axonops/certs/ca.pem
cert_file: /etc/axonops/certs/client.pem
key_file: /etc/axonops/certs/client.key

Note

cert_file and key_file must both be set for mutual TLS. If only one of the two is specified, no client certificate is presented and the connection proceeds without client authentication.

Warning

skip_verify: true disables certificate verification entirely, including any CA supplied through ca_file. The two options must not be combined; use ca_file alone to trust a private CA while retaining verification.

The certificate and key files must be readable by the user account that runs axon-server. If ca_file cannot be read, or if cert_file and key_file do not form a valid key pair, axon-server does not complete startup: it logs the error and retries the connection every 5 seconds.

Note

ca_file, cert_file, and key_file were introduced in axon-server 2.0.28. Earlier versions expose skip_verify only.

By default, AxonOps Server will only connect to the Elasticsearch nodes listed in its configuration and will not automatically discover other nodes in the cluster. To enable AxonOps' node discovery, set search_db.discover_nodes: true which will utilize the full list of discovered nodes to round-robin requests sent to Elasticsearch.

When setting up load balancing nodes or infrastructure in front of Elasticsearch, the load balancer has smart load balancing capabilities and AxonOps' node discovery is not required.

This section is for Enterprise plan clients and is not needed on the Free Forever plan.

Ensure the following values are set to unlock the Enterprise features of AxonOps:

license_key: license-key
org_name: my-company

Note: Both values need to match the information provided during the Enterprise onboarding process and are case-sensitive. These values cannot be found on console.axonops.com.

To use Cassandra as AxonOps' metrics store, specify at least one CQL host within the cql_hosts key within /etc/axonops/axon-server.yml.

For better performance on larger clusters (10+ nodes), it is recommended to use Cassandra as a Metrics Storage engine.

The tls block in /etc/axonops/axon-server.yml controls how axon-server accepts connections from axon-agent on agents_port. The tls block under axon-agent in /etc/axonops/axon-agent.yml controls how each agent connects. Both blocks appear in full in the sample configuration file and in the agent configuration. On both sides, the mode setting in the tls block accepts three values:

ModeBehaviour
disabledNo encryption. The agent and the server communicate in plaintext.
TLSOne-way Transport Layer Security (TLS). The agent verifies the server certificate and does not present a client certificate.
mTLSMutual TLS. The agent verifies the server certificate and must present a client certificate.

When mode is set to mTLS on axon-server, the server enforces that every axon-agent presents a client certificate. An agent that does not present one cannot connect, so switching a server to mTLS disconnects every agent that has not yet been configured with a client certificate. In TLS mode, agents validate the server certificate and need no client certificate.

The server and every agent that connects to it should be set to the same mode. The outcome of other mismatched combinations, such as an agent in mTLS mode connecting to a server in TLS mode, is not specified here and must not be relied upon.

The three modes apply to self-hosted AxonOps Server. Agents that connect to AxonOps Cloud must use TLS mode with an agent key; mTLS is not available for AxonOps Cloud connections.

The certificate settings required on each side depend on the mode:

Modeaxon-server (tls block)axon-agent (tls block under axon-agent)
disabledNone.None.
TLScertFile and keyFile: the server certificate and its private key.caFile: the certificate authority (CA) certificate used to verify the server certificate, required when skipVerify is not set and the server certificate is self-signed. certFile and keyFile are not needed.
mTLScertFile and keyFile: the server certificate and its private key. caFile: the certificate of the CA that signed the server and agent certificates.caFile, as for TLS. certFile and keyFile: the client certificate and its private key.

Server and agent certificates must share a CA

The axon-server certificate and the axon-agent certificates must be signed by the same certificate authority.

Setting skipVerify: true on the agent disables CA and hostname verification, so the agent no longer confirms that it is connected to the intended server. It should not be used in production.

The following example configures mTLS on axon-server. The file paths are placeholders:

tls:
mode: "mTLS"
caFile: "/etc/axonops/certs/ca.crt"
certFile: "/etc/axonops/certs/axon-server.crt"
keyFile: "/etc/axonops/certs/axon-server.key"

The matching configuration on each axon-agent host:

axon-agent:
tls:
mode: "mTLS"
caFile: "/etc/axonops/certs/ca.crt"
certFile: "/etc/axonops/certs/axon-agent.crt"
keyFile: "/etc/axonops/certs/axon-agent.key"

For TLS mode, set mode: "TLS" on both sides. The server keeps certFile and keyFile. The agent keeps caFile where it is needed to verify the server certificate, and omits certFile and keyFile.

The following is a sample configuration file that can be used as a quick reference:

# axon-server listening address (used by axon-agent for connections)
# (env variable: AXONSERVER_HOST)
host: 0.0.0.0
# axon-server listening port for agent connections
agents_port: 1888
# axon-server listening address
# (env variable: used by axon-dash for connections)
api_host: 127.0.0.1
# axon-server HTTP API listening port (used by axon-dash)
# (AXONSERVER_PORT)
api_port: 8080
search_db:
# Elasticsearch endpoint
# (env variable:SEARCH_DB_HOSTS, comma separated list)
hosts:
- http://localhost:9200
username: elastic
password: my-strong-password
# SSL/TLS config for Elasticsearch
skip_verify: false # Disables CA and Hostname verification
#ca_file: /path/to/ca.pem # (SEARCH_DB_CA_FILE) CA used to verify the server certificate
#cert_file: /path/to/client.pem # (SEARCH_DB_CERT_FILE) Client certificate for mutual TLS
#key_file: /path/to/client.key # (SEARCH_DB_KEY_FILE) Client private key for mutual TLS
# Configure the number of replicas per shard. Defaults to 0 if not specified.
replicas: 0
# Configure the number of shards per index.
# The default value of 1 is recommended for most use cases
shards: 1
# Enable/disable Elasticsearch cluster discovery (sniffing).
# Defaults to false, set to true to enable
# Allows more nodes to be added to Elasticsearch for Metrics storage
# without having to restart Axon-Server
# and update search_db.hosts with all the ELK node values.
discover_nodes: false
# How often to perform cluster discovery.
# Default is every 1 minute if this is omitted
discover_nodes_interval: 1m
max_results: 1000
#integrations_proxy: # proxy endpoint for integrations. (INTEGRATIONS_PROXY)
# AxonOps licensing
license_key: license-key
org_name: my-company
# SSL/TLS Settings for axon-agent connections
tls:
mode: "disabled" # disabled, TLS, mTLS
# Only set below if mode is TLS or mTLS
skipVerify: false # Disables CA and Hostname verification
caFile: "path_to_certs_on_axonops_server.crt" # required if skipVerify is not set and you are using a self-signed cert
certFile: "path_to_certs_on_axonops_server.crt"
keyFile: "path_to_key_file_on_axonops_server.key"
# For better performance on large clusters, you can use a CQL store for the metrics.
# To opt-in for CQL metrics storage, just specify at least one CQL host.
# We do recommend to specify a NetworkTopologyStrategy for cql_keyspace_replication
#cql_hosts: # (CQL_HOSTS, comma separated list)
# - 192.168.0.10:9042
# - 192.168.0.11:9042
#cql_username: "cassandra" # (CQL_USERNAME)
#cql_password: "cassandra" # (CQL_PASSWORD)
#cql_local_dc: datacenter1 # (CQL_LOCAL_DC)
#cql_ssl: false # (CQL_SSL)
#cql_skip_verify: false # (CQL_SSL_SKIP_VERIFY)
#cql_ca_file: /path/to/ca_file # (CQL_CA_FILE)
#cql_cert_file: /path/to/cert_file # (CQL_CERT_FILE)
#cql_key_file: /path/to/key_file # (CQL_KEY_FILE)
#cql_autocreate_tables: true # (CQL_AUTO_CREATE_TABLES) this will tell axon-server to automatically create the metrics tables (true is recommended)
#cql_keyspace_replication: "{ 'class' : 'SimpleStrategy', 'replication_factor' : 1 }" # (CQL_KS_REPLICATION) keyspace replication for the metrics tables
#cql_read_consistency: "LOCAL_ONE" # (CQL_READ_CONSISTENCY) #One of the following: ANY, ONE, TWO, THREE, QUORUM, ALL, LOCAL_QUORUM, EACH_QUORUM, LOCAL_ONE
#cql_write_consistency: "LOCAL_ONE" # (CQL_WRITE_CONSISTENCY) #One of the following: ANY, ONE, TWO, THREE, QUORUM, ALL, LOCAL_QUORUM, EACH_QUORUM, LOCAL_ONE
axon-dash: # This must point to the axon-dash address accessible from axon-server
host: 127.0.0.1
port: 3000
https: false
alerting:
# How long to wait before sending a notification again if it has already
# been sent successfully for an alert. (Usually ~3h or more).
notification_interval: 3h
# Default retention settings, most can be overridden from the frontend
retention:
events: 8w # logs and events retention. Must be expressed in weeks (w)
metrics:
high_resolution: 14d # High frequency metrics. Must be expressed in days (d)
med_resolution: 12w # Must be expressed in weeks (w)
low_resolution: 12M # Must be expressed in months (M)
super_low_resolution: 2y # Must be expressed in years (y)
backups: # Those are use as defaults but can be overridden from the UI
local: 10d
remote: 30d

This following will start the axon-server process as the axonops user, which was created during the package installation. The default listening address is 0.0.0.0:8080.

Terminal window
sudo systemctl daemon-reload
sudo systemctl start axon-server
sudo systemctl status axon-server

Now that AxonOps Server (axon-server) is installed, you can start installing the GUI for it: AxonOps Dashboard (axon-dash).