如何在prometheus yml配置文件中配置特定的IP?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在prometheus yml配置文件中配置特定的IP?相关的知识,希望对你有一定的参考价值。

我想用特定的IP地址运行Prometheus。默认情况下,它在localhost上运行。我没有在prometheus configuration看到任何这样的选择

答案

您可以使用命令行选项配置监听地址

./prometheus --web.listen-address =“0.0.0.0:9090”

以上是关于如何在prometheus yml配置文件中配置特定的IP?的主要内容,如果未能解决你的问题,请参考以下文章

无法使用docker(prom / prometheus)加载prometheus.yml配置文件

Prometheus.yml 配置文件解析

Prometheus:帮助编辑/配置 Cisco MIB 的 snmp_exporter 的 generator.yml 文件

Prometheus安装与配置

Prometheus安装与配置

Prometheus安装与配置