oracle
https://github.com/Corundex/database_exporter/
database_exporter
mkdir -p /usr/local/database_exporter
cd /usr/local/database_exporter
wget https://github.com/Corundex/database_exporter/releases/download/0.6.6/database_exporter.tar.gz
tar zxvf database_exporter.tar.gz -C /usr/local/database_exporter
创建systemd服务
cat > /usr/lib/systemd/system/database_exporter.service «EOF
[Unit]
Description=database_exporter
After=network.target
[Service]
Type=simple
User=root
Environment=“LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib”
ExecStart=/usr/local/database_exporter/database_exporter -config.file /usr/local/database_exporter/config/oracle_exporter_test002.yml
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
启动database_exporter
systemctl daemon-reload
systemctl start database_exporter
systemctl status database_exporter
systemctl enable database_exporter
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |