ClusterEyeClusterEye
Request DemoStart free trial
Getting started

Adding a database and verifying data arrives

Add a database with the Add Agent wizard or Agentless Connections, then confirm on the Clusters page that the node appears and sends data.

Scope

Engines
All engines
Roles
Admin
ClusterEye
ClusterEye 1.6.50 and laterWritten from the product code
Prerequisites
  • Add Agent and the Settings sections this guide uses (Agentless Connections, Agent Runtime Config) are open to the Admin role only; other roles are redirected.
  • For agent-based engines: root (Linux) or an Administrator PowerShell (SQL Server) session on the target, and outbound access from the target to the ClusterEye API on the gRPC port you choose (443 or 50051).
  • Database privileges for the monitoring user differ per engine; see the product guide: https://www.clustereye.com/en/docs

When this guide helps

  • I want to add a new database, how do I install the agent
  • I installed the agent but it does not show up on the Clusters page
  • how do I connect a PostgreSQL server to ClusterEye
  • agent will not connect, stuck on Waiting for the agent
  • how do I add Redis or Elasticsearch agentless
  • install command token expired

Steps

  1. Step 1: Administration → Add Agent

    Do

    Open 'Add Agent' in the Administration group of the sidebar (next to Settings). In the 'Database platform' panel pick the engine: under 'Agent-based' PostgreSQL, MongoDB, SQL Server, MySQL, Oracle, ClickHouse; under 'Agentless' Redis, Elasticsearch / OpenSearch, Managed SQL Server, Managed PostgreSQL.

    Look for

    The note under each card: 'Agent on the database host …' for agent-based engines, 'Agentless — …' for agentless ones. For agent-based engines a progress bar (Platform, Install, Connect, Database, Done) is shown; agentless engines have none.

    How to read it

    Agent-based engines install a service on the target; for agentless engines nothing is installed and the ClusterEye API server connects to the database directly. SQL Server is installed on Windows with PowerShell, the other agent-based engines are Linux.

    • If you see: The engine is one of the Agentless cards → Step 6
  2. Step 2: Administration → Add Agent

    Do

    In the 'Connection to ClusterEye' panel fill in 'API host' (the ingress / load balancer or API server address the agent will dial) and 'gRPC port', adjust 'Use TLS', 'Skip certificate verification', 'Offline installation' and 'Token validity' if needed, then click 'Generate install command'.

    Look for

    The 'Agent will dial <host:port> over TLS / in plain text' summary in the panel footer and the hint under the port field. 'Token validity' offers 2, 8 and 24 hours (default 2).

    How to read it

    gRPC port: 443 when gRPC is published through an ingress, 50051 to reach the API listener directly. 'Use TLS' defaults to on for 443 and off for other ports; a mismatch (for example plain text to a 443 ingress) is the most common reason an agent never connects. 'Skip certificate verification' is only for self-signed or IP-addressed certificates: the stream stays encrypted but the server is not verified. 'Offline installation' is for air-gapped targets: you download the installer script and the agent package and carry them over. The token is single-use and useless once expired; extend the validity if the install will run later.

  3. Step 3: Administration → Add Agent

    Do

    In the 'Install command' panel click 'Copy command', run the command on the target (root on Linux, Administrator PowerShell for SQL Server), then click "I've started the installation, continue". With offline installation the panel is called 'Offline installation': download the two files and carry them to the target in the same folder.

    Look for

    The 'Verified install' notice (release pinned and checked) or the 'Unverified install' warning; the 'What this command does' box (service name: clustereye-agent on Linux, ClusterEyeAgent on Windows). In offline mode, the SHA256 check command.

    How to read it

    'Unverified install' is not an error: when the release manifest cannot be read the command is generated unpinned; regenerate it if you need the assurance of a verified release. The command installs the service, points it at the address you chose and registers it with the single-use token; nothing else is needed on the target. The offline link is pinned to one version; once a newer release is out the old link stops working, so generate the page again.

  4. Step 4: Administration → Add Agent

    Do

    Wait on the 'Waiting for the agent' screen. It checks every 3 seconds and moves to the 'Database connection' step on its own once the agent has registered and connected.

    Look for

    The 'Listening for a new agent…' or 'Agent registered as <host>; waiting for its stream…' status. If it drags on, the 'Agent not showing up?' box below: Port reachability, TLS mismatch, Firewall, Agent log. The red 'Token expired — generate a new command' warning.

    How to read it

    'Agent registered … waiting for its stream' means the token was redeemed but the stream is not up yet: look for a network or TLS problem. If nothing registers, check from the target with 'nc -vz <host> <port>' (Test-NetConnection on Windows) that the port is reachable, then the TLS match (a 443 ingress expects TLS; a direct 50051 listener expects plain gRPC), the firewall (it must pass HTTP/2) and the 'sudo journalctl -u clustereye-agent -n 50' output (Get-Service ClusterEyeAgent on Windows). If the token expired, use 'Generate a new command'. Reinstalling a host that was registered before reuses its record; if its key was renewed a 'Re-keyed' tag is shown and history is kept.

  5. Step 5: Administration → Add Agent

    Do

    In the 'Database connection' panel enter the connection details (Host, Port, User, Password and so on), click 'Test connection' first and, once it succeeds, 'Send connection details'.

    Look for

    The status tag and message on the 'Connection test' row ('Not tested' / success / failed). Extra fields by engine: SID or Service name and 'Connect as' for Oracle; 'Authentication' for SQL Server; 'SSL mode' for PostgreSQL; 'Cluster name' ('Replica set' for MongoDB). After a successful send, 'Agent setup complete'.

    How to read it

    The test runs on the agent and saves nothing; if you change any field the status returns to 'Not tested' and you must test again. 'Send connection details' stays disabled until the test succeeds. A failed test is usually a wrong user/password or missing privileges; the privileges the monitoring user needs differ per engine and are in the product guide at https://www.clustereye.com/en/docs. After sending, the agent restarts with the new configuration and shows up within a few seconds. To add another node to the same cluster use 'Add another node to <cluster>'; cluster-wide settings carry over and you re-enter the node's own host and password.

    • If you see: Setup finished ('Agent setup complete') → Step 7
  6. Step 6: Administration → Settings

    Do

    For an agentless engine open Administration → Settings → Agentless Connections (or pick the engine in Add Agent). From the 'Add connection' menu at the top right choose the engine: Managed PostgreSQL, Azure SQL, Elasticsearch / OpenSearch, Redis. Fill in the form, click 'Test connection', then for Redis 'Start monitoring' ('Save changes' when editing).

    Look for

    The info box at the top: 'Databases monitored without an installed agent. ClusterEye connects to them directly from the API server.' In the Redis form: 'Cluster name', 'Deployment type', node addresses, 'ACL username (optional — Redis 6+)', 'Password'. The test result and the 'Connection failed' box.

    How to read it

    The connection is made from the ClusterEye API server, so address and firewall rules must be judged from that server (there is no agent on the target). The save button stays disabled until the test succeeds ('Test the connection first — monitoring can only be saved after a successful test.'). After saving, the nodes are expected on the dashboard within seconds.

  7. Step 7: Overview → Clusters

    Do

    Open Overview → Clusters; type the cluster or host name in the search box ('Search clusters, hosts, tags…') and switch to the 'Table' view.

    Look for

    Whether the row is there, its 'Health' and 'Critical / Warn' columns, 'Version' and 'Last Seen'. The 'Offline' tile and the red '… Disconnected' banner at the top. If the row has a problem, the reason list that appears on hover (for example 'Connecting to database...').

    How to read it

    If the row is there and 'Last Seen' is current, data is flowing. On SQL Server and MySQL a brief 'Connecting to database...' warning while the service runs but the role is not yet known is normal; if it persists, check the connection details. An agent-based node whose agent has been disconnected longer than the grace window counts as Offline and is listed with 'Last Seen' in the red banner; for an agentless engine a FAIL status means Offline (the API server cannot reach the service). Last check: the 'Open <engine> analyzer' button on the 'Agent setup complete' screen opens that node's analyzer; charts fill after the first collection cycles. If there is no row at all, revisit steps 2-5 (6 for agentless).

    • If you see: The node shows Offline or the connection details were wrong → Step 8
  8. Step 8: Administration → Settings

    Do

    Open Administration → Settings → Agent Runtime Config. In the 'Agent Connections' panel choose 'Engine' and 'Agent', correct the connection details, try them with 'Test connection' and save.

    Look for

    The list of agents registered for the chosen engine ('No agents found for this engine' marks an empty list); the 'Save and restart the agent?' confirmation; the test result and the 'Connection failed' box.

    How to read it

    The agent's database connection is edited here and saving restarts the agent, while runtime settings apply without a restart. If the connection is right and the test succeeds but the node still does not appear on Clusters, the problem is the agent reaching ClusterEye: go back to the network/TLS checks in step 4. Agentless connections are edited in Agentless Connections, not in this panel.

Outcome

The database should now be added to ClusterEye and visible on Clusters with a current 'Last Seen'. ClusterEye makes real changes here: the agent service is installed on the target (you run the command), the connection details are sent to the agent and it restarts; for an agentless engine only the registration is created. Allow a few collection cycles for Home and alarm data to fill, then read the estate with the 'First 15 minutes with ClusterEye: reading the state of your estate' guide.

Getting started
First 15 minutes with ClusterEye: reading the state of your estate

Go from the Database Estate Health page on Home to Clusters and the AI Database Doctor to read the overall state of your estate, the problems that need attention and the monitoring gaps.