在Ubuntu中,SQLAdmin是一个常用的数据库管理工具,提供了实时性能监控、查询分析、错误日志查看、用户活动监控等功能。但是目前并没有官方的sqladmin,这里为您提供一些在Ubuntu上监控SQL Server性能的工具:
sudo apt-get install netdata
或者使用Docker:
docker run -d --name=netdata --publish=19999:19999 --restart=always --memory=170M --cap-add=NET_ADMIN netdata/netdata
wget https://github.com/prometheus/prometheus/releases/download/v2.30.3/prometheus-2.30.3.linux-amd64.tar.gz
tar xvfz prometheus-2.30.3.linux-amd64.tar.gz
cd prometheus-2.30.3.linux-amd64
./prometheus --config.file=prometheus.yml
wget https://dl.grafana.com/oss/release/grafana-8.2.0.linux-amd64.tar.gz
tar -zxvf grafana-8.2.0.linux-amd64.tar.gz
cd grafana-8.2.0
./bin/grafana-server
prometheus.yml
文件,添加抓取配置:scrape_configs:
- job_name: 'sqladmin'
static_configs:
- targets: ['sqladmin:9090']
请注意,具体的步骤可能会根据你使用的SQL Server版本和Ubuntu版本有所不同。如果你需要更详细的指导,建议查阅你所使用的SQL Server版本的官方文档。