CREATE USER postgres_exporter; ALTER USER postgres_exporter WITH PASSWORD 'postgres_exporter'; ALTER USER postgres_exporter SET SEARCH_PATH TO postgres_exporter,pg_catalog; GRANT CONNECT ON DATABASE postgres TO postgres_exporter; GRANT pg_monitor to postgres_exporter; #退出当前连接 \q 2)Docker run...