刷新prometheus.yml,重新加载配置文件

news/2024/5/19 0:30:57 标签: reload, prometheus.yml, 刷新, 配置文件, Prometheus

Prometheusprometheusyml_0">Prometheus提供两种重新加载配置文件prometheus.yml的方法:

# 第一种,向prometheus进行发信号
kill -HUP  pid

# 第二种,向prometheus发送HTTP请求
# /-/reload只接收POST请求,并且需要在启动prometheus进程时,指定 --web.enable-lifecycle
curl -XPOST http://prometheus.chenlei.com/-/reload

http://www.niftyadmin.cn/n/1412898.html

相关文章

codeSmith实现ExtJS中Grid代码生成

新的项目中。要使用ExtJs&#xff0c;为了简单&#xff0c;写了这么一个简单的CodeSmith模板来根据数据库中的表生成Grid。 代码如下&#xff1a; <%--Name:<%GetClassName(SourceTable) %>Author: sunfishlu Description: --%><% CodeTemplate Language"…

【spring boot 学习笔记】日志相关

1. 如何启用日志&#xff1f; maven依赖中添加&#xff1a;spring-boot-starter-logging <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-logging</artifactId> </dependency>实际开发中我们不…

Httpd-2.4实现2个虚拟主机

Httpd-2.4实现2个虚拟主机&#xff1a;要求如下a.1.提供两个基于名称的虚拟主机www1,www2;有单独的错误日志和访问日志&#xff1b;1.通过www1的/server-status提供httpd状态信息&#xff0c;且仅允许tom用户访问&#xff1b;2.www2不允许192.168.0.0/24网段的任意主机访问&…

ArrayList 的实现原理

ArrayList 概述 ArrayList 可以理解为动态数组&#xff0c;用 MSDN 中的说法&#xff0c;就是 Array 的复杂版本。与 Java 中的数组相比&#xff0c;它的容量能动态增长。ArrayList 是 List 接口的可变数组的实现。实现了所有可选列表操作&#xff0c;并允许包括 null 在内的所…

Prometheus + Grafna监控Redis

# 下载redis_exporter wget https://github.com/oliver006/redis_exporter/releases/download/v1.3.3/redis_exporter-v1.3.3.linux-amd64.tar.gztar zxf redis_exporter-v1.3.3.linux-amd64.tar.gz cd redis_exporter-v1.3.3.linux-amd64# 启动&#xff0c;有密码则要加 -redi…

input只能输入数字,格式化数值的显示

2019独角兽企业重金招聘Python工程师标准>>> 在使用input域输入的时候&#xff0c;有时候要求只能输入数字&#xff0c; 1.比较简单的验证方法 <input typetext οnblur"if(isNaN(this.value))alert(不是数字)"> 2.使用正则来验证 正则: <script…

《小狗钱钱》读书笔记

关于成功 确立最重要的目标&#xff08;愿望&#xff09;。 会有一些人想要阻止我们实现自己的目标。阻力甚至经常来自我们的亲戚朋友。但还是有一些不让自己迷失的方法。 一个人挣钱多少是和他的自信心联系在一起的。还有就是取决于他的精力是集中在自己的能力范围之内&…

单元格里用“...”替换超长字符

关键代码如上图&#xff0c;然后在GridView中设置一个模板列调用上面的函数即可。<asp:TemplateField><ItemTemplate><asp:Label ID"add" runat"server" Text<%#GetString((DataBinder.Eval(Container.DataItem,"UserName")).…