【文件属性】:
文件名称:prom-run:定期运行命令并将其返回代码导出为Prometheus度量
文件大小:1.82MB
文件格式:ZIP
更新时间:2021-05-28 23:04:31
Go
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