prometheus自定义监控指标 pushgateway添加为服务方式启动 vim /usr/lib/systemd/system/pushgateway.service [Unit] Description=pushgateway After=network.target [Service] ExecStart=/opt/pushgateway/pushgateway Restart=on-failure [Install] WantedBy