07 2022 档案
摘要:1. make make也可以内存分配,但是和new不同。 它只用于chan、map、slice的内存创建,无可替代。 而且它返回的类型就是这三个类型本身,而不是他们的指针类型,因为这三种类型就是引用类型,所以就没有必要返回他们的指针了。 func make(t Type, size ...Inte
阅读全文
摘要:https://blog.csdn.net/K346K346/article/details/118314382?spm=1001.2014.3001.5501
阅读全文
摘要:go学习指南 https://www.bookstack.cn/read/For-learning-Go-Tutorial/README.md Go 的最佳实践 https://dablelv.github.io/go-coding-advice/
阅读全文
摘要:https://www.junmajinlong.com/golang/index/https://www.junmajinlong.com/golang/index/
阅读全文
摘要:https://blog.51cto.com/u_14205795/4561310 1 增加自定义标签ident,标签值用__address__的ip - job_name: 'label_test' static_configs: - targets: ['192.168.214.151:9100
阅读全文
摘要:1. 安装迁移工具 pip install sqlite3-to-mysql 2. 准备好mysql数据库 # 创建数据库grafana,创建用户grafana并授权 CREATE DATABASE IF NOT EXISTS grafana DEFAULT CHARSET utf8mb4 COLL
阅读全文
摘要:yum install skopeo [root@mattermost tmp]# cat /home/ops/mattermost-docker/docker/upload.sh #!/bin/bash cat version.txt | while read line do version=$l
阅读全文
摘要:https://wiki.eryajf.net/pages/0322lius/#_3-%E5%B0%8F%E7%BB%93
阅读全文
摘要:1. 创建脚本 cd categraf-v0.2.2-linux-amd64 [root@bogon categraf-v0.2.2-linux-amd64]# vim scripts/echo.sh #!/bin/bash echo "metric_preffix,labelkey1=labelv
阅读全文
摘要:下载并编译generator go install github.com/prometheus/snmp_exporter/generator@latest cd ${GOPATH-$HOME/go}/src/github.com/prometheus/snmp_exporter/generator
阅读全文
摘要:https://www.cnblogs.com/kevingrace/p/10482469.html
阅读全文
摘要:upstream backend { server {ip}:8065; keepalive 32; } proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=mattermost_cache:10m max_size=3g inactive=
阅读全文
摘要:定时任务 */5 * * * * cd /home/ops/prometheus-2.3.0.linux-amd64/;rsync -artz -R --delete --timeout=180 ./ --include="prometheus.yml" --exclude="*" vmagent@
阅读全文
摘要:https://codeantenna.com/a/BMC65HDGPV https://blog.csdn.net/weixin_38073361/article/details/105588182 https://blog.csdn.net/weixin_38204423/article/det
阅读全文