如果你想让postgres_exporter在后台运行,你可以使用nohup或systemd服务来管理它。 这是一个使用systemd服务管理postgres_exporter的示例: 首先,创建一个postgres_exporter.service文件: bash sudo nano /etc/systemd/system/postgres_exporter.service 然后,添加以下内容: ini [Unit] Description=Postgres Exporter After=ne...
环境变量和端口都在启动脚本里设置好,环境变量按实际的情况填写数据库的IP+端口,postgres-exporter的默认端口是9187 cat > /usr/lib/systemd/system/postgres_exporter.service<<EOF[Unit]Description=postgres_exporterAfter=network.target[Service]Type=simpleUser=postgresEnvironment="DATA_SOURCE_NAME=postgresql//:loca...
web.systemd-socket Use systemd socket activation listeners instead of port listeners (Linux only). Default is false web.listen-address Address to listen on for web interface and telemetry. Default is :9187. web.config.file Configuration file to use TLS and/or basic authentication. The format of...
( github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/coreos/go-systemd/v22 v22.5.0 // indirect github.com/go-logfmt/logfmt v0.5.1 // indirect github.com...
/etc/default/prometheus-postgres-exporter /etc/init.d/prometheus-postgres-exporter /lib/systemd/system/prometheus-postgres-exporter.service /usr/bin/prometheus-postgres-exporter /usr/share/doc/prometheus-postgres-exporter/NEWS.Debian.gz /usr/share/doc/prometheus-postgres-exporter/NOTICE /usr/share/doc/...
daemon turns other processes into daemons または systemd-sysv system and service manager - SysV links libc6 (>= 2.34) GNU C Library: Shared libraries prometheus-postgres-exporter のダウンロード アーキテクチャバージョンパッケージサイズインストールサイズファイル amd64 0.10.1-1...
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+...
DATA_SOURCE_NAME=pstgresql://monitor@100.112.10.132:5432/postgres?sslmode=disable, postgresql://monitor@100.112.10.135:5432/postgres?sslmode=disable Log: with one connect string Nov 12 15:08:45 ari39-vm-07660 systemd[1]: Started Prometheus exporter for Postgresql. Nov 12 15:08:45 ari39-vm...
A PostgreSQL metric exporter for Prometheus. Contribute to sonyakkmas/postgres_exporter development by creating an account on GitHub.
其他與 prometheus-postgres-exporter 有關的套件 依賴 推薦 建議 enhances adduser add and remove users and groups daemon turns other processes into daemons 或者systemd-sysv system and service manager - SysV links libc6(>= 2.34) GNU C Library: Shared libraries ...