l

linux常用命令3

tree  du   ping   tree命令参数详解 ``` -A 使用ASNI绘图字符显示树状图而非以ASCII字符组合。 -C 在文件和目录清单加上色彩,便于区分各种类型。 -d 显示目录名称而非内容。 -D 列出文件或目录的更改时间。 -…

S

SaltSatck常用指令二

##### #### ### ## 域名管理 salt.modules.dnsutil salt 'minion' dnsutil.A msc.myai.red #从monion获取指定域名A记录 salt 'minion' network.ping archlin…

数据库

```sh select * from data_source where url = "http://es-vpc-fin-biz-log.za.net:9200" and name = "baobeibizlog" update data_source_backup se…

P

Prometheus 管理常用知识点

1、检查Prometheus配置文件的语法合法性 promtool check config <PATH>/prometheus.yaml 2、Prometheus配置文件热加载   启动Prometheus需要开启  --web.enable-lifecyle , 然后就…

c

consul服务注册与健康检查

一、Consul的服务注册 - 服务注册: 可以使用api接口工具postman或者ApiPost来注册一个服务,新建一个PUT请求方法,输入地址http://<consul url>/v1/agent/service/register这个url,然后配置Headers信息(k…

G

Grafana中的grafana cli帮助

grafana-cli语法: ``` grafana-cli [global options] command [command options] [arguments...]grafana-cli -h / --help 获取帮助信息 -v /…

使

使用gitlab 对grafana用户做认证

登录gitlab服务页面创建应用AK   修改grafana的配置文件  grafana.ini  ``` #################################### GitLab Auth ######################### [auth.gi…

g

grafana中Data links和Links

``` 钻取/详细信息链接(Drilldown / detail link)钻取部分允许添加动态面板的链接,可以链接到其他仪表板或URL。 每个链接都有一个标题,一个类型和参数。链接可以是 dashboard或 absolute链接。如果它是一个仪表板链接, dashboard值…

容器中golang开启debug

镜像中安装d​lv命令 1、下载指定版本delve到本地 下载地址 https://github.com/go-delve/delve 2、修改Docker​file新增一下内容 ``` A​DD ./delve-<XXX>.tar.gz /tmp W​ORKDIR /…

流量复制以及压测工具

一、tcpcopy https://github.com/session-replay-tools/tcpcopy 二、goreplay https://github.com/buger/goreplay 三、iperf https://iperf.fr/

p

python日期时间处理模块-datatime

Python内置的时间模块datetime包含以下六个类和两个常数,提供了用于处理日期和时间的类和对应的方法 datetime.date 一个理想化的简单型日期,它假设当今的公历在过去和未来永远有效,属性包含: year、month、day datetime…

n

nginx的TCP代理限速

使用nginx的四层网络代理达到限制连接数以及限制带宽;使用以下模块 ngx_http_geo_module ngx_stream_proxy_module ngx_http_limit_conn_module 点击查看代码 ``` stream { log_forma…