-
Prom-run的功能是定期执行命令,并将命令返回的代码以Prometheus度量的形式进行导出
资源介绍
Prometheus Shell命令运行器
定期运行命令并将其返回代码导出为Prometheus度量。
$ docker run -ti tomwilkie/prom-run -h
Usage: ./prom-run (options) command...
-listen-addr string
Address to listen on (default ":9152")
-period duration
Period with which to run the command. (default 10s)
-timeout duration
Amount of time to give the command to run. (default 10m0s)
该命令的输出也可以通过HTTP在/获得。
要运行此程序,请尝试:
$ dock