如何在Prometheus yml配置文件中配置特定的IP? [英] How to configure a specific IP in prometheus yml configuration file?

查看:138
本文介绍了如何在Prometheus yml配置文件中配置特定的IP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用特定的IP地址运行Prometheus.默认情况下,它在本地主机上运行.我在 prometheus配置

I would like to run Prometheus with a specific IP address. By default, it is running on localhost. I don't see any such option in the prometheus configuration

推荐答案

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

You can use the command line option for configuring your listen address

./prometheus --web.listen-address="0.0.0.0:9090" 

这篇关于如何在Prometheus yml配置文件中配置特定的IP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆