Agent
Datasentinel offers two monitoring approaches: agent-based and agentless. This guide focuses on the installation of an agent, applicable when you opt for the agent-based monitoring method.
Step-by-Step Installation Instructions
Date
Last available agent version
2
3
Test the status
datasentinel status agent Copyright 2023 (c) Datasentinel- All rights reserved www.datasentinel.io
================================================================================
Agent
Version : 3.3.0
Server : pg-crm-4529
Port : 8282
Start time : 2023-03-18 15:45:31
Collection rate : low
Table monitoring limit : 1000
Query monitoring limit : 30000
Sql max size : 256000
Proxy
host :
port : 0
user :
password :
Upload
host : upload_server_to_be_defined
port : 443
Connections
declared : 0
running : 0
not running : 0// Example
export DATASENTINEL_AGENT_HOST=172.16.250.1997
Automatic Startup Configuration
## Basic systemd Service
[Unit]
Description=DataSentinel Agent
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=postgres
Environment=DATASENTINEL_FOREGROUND=1
ExecStart=/var/lib/pgsql/datasentinel/datasentinel start agent
ExecStop=/var/lib/pgsql/datasentinel/datasentinel stop agent
# Restart automatically if it crashes
#Restart=on-failure
[Install]
WantedBy=multi-user.target$ systemctl daemon-reload
$ systemctl enable datasentinel-agent
$ systemctl start datasentinel-agent
$ systemctl status datasentinel-agent● datasentinel-agent.service - DataSentinel Agent
Loaded: loaded (/usr/lib/systemd/system/datasentinel-agent.service; enabled; preset: disabled)
Active: active (running) since Fri 2026-01-30 13:23:45 CET; 1s ago
Main PID: 76505 (datasentinel)
Tasks: 7 (limit: 48683)
Memory: 51.0M
CPU: 1.250s
CGroup: /system.slice/datasentinel-agent.service
└─76505 /var/lib/pgsql/datasentinel/datasentinel start agent
Jan 30 13:23:45 pg-crm-4743 systemd[1]: Started DataSentinel Agent.PostgreSQL
User
create user datasentinel password 'myPassword';
grant pg_monitor,pg_read_all_settings,pg_read_all_stats to datasentinel;
// If you intend to utilize the option for terminating a session directly from the User Interface
grant pg_signal_backend to datasentinel;File pg_hba.conf
Add Instance
TagsUseful CLI commands
CLIAPI
API ReferenceConfiguration Files
Log File
Last updated