Installing the Agent
To start the QMonitor agent installation, download the setup kit for your operating system (Windows or Linux), copy it to the target machine, and run it. Running the agent in a container uses the same portal-approved enrollment but stores its credentials in a volume instead of installing a host service. See “Running the QMonitor agent in a container”. The installation copies files to the chosen installation directory and requires no user input except for that directory. Additional configuration is required to authenticate the agent to your organization and to run it as a background service.
Enrolling and installing the agent
Use ConfigWizardCmd on Windows or Linux to enroll and install an agent. Run ConfigWizardCmd.exe enroll on Windows or ConfigWizardCmd enroll
on Linux. The CLI starts an enrollment request and opens the QMonitor portal; sign in, select the organization, enter an agent name, and approve
the request. Approval creates the agent record. ConfigWizardCmd then receives its credentials, installs the service, and starts it. No separate
ConfigWizard GUI or pre-created agent is required.
If the machine has no QMonitor agent installed, launching ConfigWizardCmd without arguments also starts enrollment. See Enrolling and Managing Agents with ConfigWizardCmd for options and details.
When the command completes, the agent appears on the Instances page. You can then register SQL Server instances and assign them to that agent.
Additional considerations
The service account is used to authenticate to SQL Server instances when using
Integrated Security (Windows authentication). On Windows, ConfigWizardCmd uses
a per-agent virtual account by default (NT SERVICE\qmonitoragent_<org>_<agent>).
On Linux, it uses the service user selected during package installation, or a
dedicated per-agent user. You can specify a different account during enrollment
with --service-user; see the ConfigWizardCmd reference.
Integrated Security avoids storing SQL Server passwords. Windows virtual service accounts authenticate to remote SQL Servers using the computer account.
Warning
If you change the service account later, do not just update it in Services. Use ConfigWizardCmd’sset-service-user command to update service credentials
and ensure required file system permissions and other settings are applied.When ConfigWizardCmd completes setup, the agent starts and reports its state to QMonitor. It begins collecting data after SQL Server instances are registered and assigned to it. On the Instances page click the green/red icon next to an agent to view its state, service account, and agent version.
Setting up the agent on Linux
Enroll and configure the agent using ConfigWizardCmd. See Enrolling and Managing Agents with ConfigWizardCmd for options and examples.
On Linux, the agent cannot impersonate Windows users, so Integrated Security is not available. Entra (Managed Identity) authentication may be available if the Linux VM or container supports a managed identity.
Running the QMonitor agent in a container
On its first start, the container runs ConfigWizardCmd enrollment and prints an
approval URL in its logs. Open the URL, sign in to QMonitor, select the
organization, enter an agent name, and approve the request. Mount a persistent
volume at /credentials so the enrolled agent’s credentials survive container
restarts.
Keep the container image updated through your normal deployment process.
Example compose.yaml:
services:
qmonitor-agent:
image: qmonitor/agent:latest
volumes:
- qmonitor-agent-credentials:/credentials
restart: unless-stopped
volumes:
qmonitor-agent-credentials:
Start the container and follow its logs to get the approval URL:
docker compose up -d
docker compose logs -f qmonitor-agent
After enrollment succeeds, the first container exits; the restart policy starts it again with the saved credentials, and it then runs the agent.