随笔分类 - 04-系统运维
摘要:1. 先在jenkins外面的菜单中定义lockable resource的名字; 2. 在build中,若需要通过build parameter决定lock resource的名字,可以enable groovy script,然后写入例如: resourceName.equals(PARAM1)
阅读全文
摘要:Prometheus: The prometheus input plugin gathers metrics from HTTP servers exposing metrics in Prometheus format. https://github.com/influxdata/telegra
阅读全文
摘要:【From】https://blog.51cto.com/fscaps/1424352 什么是IOPS? IOPS (英文:Input/Output Operations Per Second),即每秒进行读写(I/O)操作的次数,多用于数据库等场合,衡量随机访问的性能。存储端的IOPS性能和主机端
阅读全文
摘要:1. 在kapacitor的httppost配置中,row-template用于HttpPost node中,HttpPost node是一种独立的node。而alert-template是用于在Alert node中的post()操作。 2. 如下alert-template例子: alert-t
阅读全文
摘要:一步一步打造基于TICK的工业级系统监控平台 https://blog.csdn.net/tianshan2010/article/details/103900064?utm_medium=distribute.pc_relevant.none-task-blog-utm_term-1&spm=10
阅读全文
摘要:string='My long string' if [[ $string == *"My long"* ]] || [[ $string == *"my long"* ]]; then echo "It's there"fi
阅读全文
摘要:【From】 部分摘录如下 https://blog.51cto.com/soarwilldo/1350111 https://cloud.tencent.com/developer/article/1090661 https://blog.csdn.net/qq_31278903/article/
阅读全文
摘要:【From】 https://my.oschina.net/leejun2005/blog/1602482 1、问题背景 昨天下午突然收到运维邮件报警,显示数据平台服务器cpu利用率达到了98.94%,而且最近一段时间一直持续在70%以上,看起来像是硬件资源到瓶颈需要扩容了,但仔细思考就会发现咱们的
阅读全文
摘要:简述: https://yq.aliyun.com/articles/679214 关于metrics relabel,即实现逻辑: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_re
阅读全文
摘要:1. 安装docker,百度解决; 2. 拉取postgreSQL的docker镜像文件:docker pull postgres:12.1 3. 创建 docker volume,名字为“dv_pgdata"(其实可以省略手动创建,直接跑下一步,docker也会自动创建的):docker volu
阅读全文
摘要:【From】https://www.unixhot.com/page/ops
阅读全文
摘要:有时候需要用到ansible的变量的嵌套解析,就是“变量中嵌套变量”。例子如下: 假设有一个外部传递的变量,system_code = CRM,而我们同时有一系列类似的变量,如: ABS_port=10000 ETL_port=5678 CRM_port=1234 想通过system_code变量来
阅读全文
摘要:【From】https://www.cnblogs.com/duhuo/p/5695256.html 命令:curl 在Linux中curl是一个利用URL规则在命令行下工作的文件传输工具,可以说是一款很强大的http命令行工具。它支持文件的上传和下载,是综合传输工具,但按传统,习惯称url为下载工
阅读全文
摘要:Sample:export MINIO_ACCESS_KEY=<TENANT1_ACCESS_KEY> export MINIO_SECRET_KEY=<TENANT1_SECRET_KEY> minio server --address :9001 http://192.168.10.11/dat
阅读全文
摘要:/quietDown: Put Jenkins in a Quiet mode, in preparation for a restart. In that mode Jenkins don’t start any build /cancelQuietDown: Cancel the effect
阅读全文
摘要:Use the -y option to ssh-keygen: From the 'man ssh-keygen' -y This option will read a private OpenSSH format file and print an OpenSSH public key to s
阅读全文
摘要:ansible -all -i host1.abc.com, -m ping #注意主机名称后面的逗号,就算一台主机也是必须的。多台主机可以用逗号隔开 ansible all -i host1.abc.com, -m command -a "hostname -f" #在远程主机上执行shell命令
阅读全文
摘要:Linux 最大进程数 Linux 下监控用户最大进程数参数(nproc)是否到达上限
阅读全文
摘要:【From】 https://blog.csdn.net/zhydream77/article/details/81223805 ansible命令基础 • ansible <host-pattern> [options]host-pattern 主机戒定义的分组-M 指定模块路径-m 使用模块,默
阅读全文