如何重载Prometheus配置
Reloading Prometheus’ Configuration A common question from new users is if they need to restart Prometheus every time they change the configuration. The good news is that you don’t, allowing your monitoring to continue uninterrupted as your system changes. There are two ways to ask Prometheus to reload it’s configuration, a SIGHUP and the POSTing to the /-/reload handler. To send a SIGHUP, first determine the process id of Prometheus. This may be in a file such as /var/run/prometheus.pid, or you can use tools such as pgrep to find it. Then use the kill command to send the signal: 1kill -HUP 1234 Alternatively, you can send a HTTP POST to the Prometheus web server: 1curl -X POST :9090/-/reload Note that as of……