【问题标题】:How to find Prometheus latest version with curl?如何使用 curl 找到 Prometheus 最新版本?
【发布时间】:2022-01-04 13:33:22
【问题描述】:

我需要使用 cURL http 请求收集 Prometheus 的最新版本。到目前为止,我可以看到 Prometheus 版本发布在 https://github.com/prometheus/prometheus/releases/ 下。但是,这需要以某种方式解析整个 HTML 页面才能找到它。 有没有更直接的方式来捕获最新版的 Prometheus? 谢谢

【问题讨论】:

    标签: prometheus


    【解决方案1】:

    你可以使用

    https://github.com/prometheus/prometheus/releases/latest
    

    /latest 会将您重定向到标记为最新的版本

    【讨论】:

    • 感谢您的提示!
    猜你喜欢
    • 1970-01-01
    • 2021-04-04
    • 2019-07-16
    • 1970-01-01
    • 2020-10-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-27
    相关资源
    最近更新 更多