本章节讲解服务发现与Relabelling的机制与范例。通过服务发现的方式,我们可以在不重启Prometheus服务的情况下动态的发现需要监控的Target实例信息。如上图所示,对于线上环境我们可能会划分为:dev,stage,prod不同的集群。每一个集群运行多个主机节点,每个服务器节点上运行一个NodeExporter实例。NodeExporter实例会自动注册到Consul中,而Promet
分类:
其他好文 时间:
2020-09-17 19:42:24
阅读次数:
38
部署gitlab 部署drone # ip:xxxxxxxx ci-build ### docker-compose.yml #测试成功,附带mysql version: "2.1" services: drone-server: image: drone/drone:1 ports: - 443: ...
分类:
其他好文 时间:
2020-09-17 19:26:43
阅读次数:
26
MAC下运行的telnet客户端,需要安装python3的环境。`#!/usr/local/bin/python3importsocketimportsysimportreifname==‘main‘:iflen(sys.argv)!=3:print("Usage:telnet[remote_ip|FQDN][remote_port]")exit()ifre.m
分类:
Web程序 时间:
2020-09-17 17:55:11
阅读次数:
38
最近又遇到了linuxvda测试的需求,根据官方kb又简单整理了一波安装centos,选择desktop模式,配置网络,修改计算机名关闭防火墙systemctldisablefirewalld.service关闭selinuxvi/etc/selinux/config![](https://s4.51cto.com/images/blog/202009/07/73cc2fae6459a2bdcdc
分类:
系统相关 时间:
2020-09-17 17:49:11
阅读次数:
46
with_items遍历列表中每个元素,包括嵌套列表with_list将嵌套列表作为整体元素遍历with_together将多个列表中的子列表元素,一起输出,不成对则null补位示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_items:[1,2,3][a,b]debug
分类:
其他好文 时间:
2020-09-17 17:19:57
阅读次数:
31
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:41
阅读次数:
32
生成vb文件指令 1. -- 指令 wsdl.exe /l:vb /n:webser /out:C:/LoginProxyService.vb http://192.168.1.2/services/Login?wsdl ...
分类:
其他好文 时间:
2020-09-17 16:55:41
阅读次数:
35
GNOME、KDE、Xfce桌面任选其一,Xfce占用资源较GNOME、KDE较少; 1、GNOME桌面安装GNOME # yum -y groups install "GNOME Desktop" 启动GNOME桌面 # startx 2、KDE桌面安装KDE # yum groupinstall ...
分类:
其他好文 时间:
2020-09-17 13:42:51
阅读次数:
31
1,正常的push,只是在 Remote 那里填上 分支名:如 localBranchesC。 ...
分类:
其他好文 时间:
2020-09-17 13:39:06
阅读次数:
22
set-executionpolicy remotesigned 关于Set-ExecutionPolicy详细信息 Set-ExecutionPolicy 可更改 Windows PowerShell 执行策略的用户首选项。要在 Windows Vista、Windows Server 2008 ...
分类:
系统相关 时间:
2020-09-17 13:22:15
阅读次数:
34