摘要: 镜像导入导出 导出镜像 docker save 镜像id > 镜像名称.tar 导入镜像 docker save < 镜像名称.tar 容器导入导出 导出容器 docker export 容器id > 容器名称.tar 导入镜像 docker import 容器名称.tar 阅读全文
posted @ 2023-01-17 14:04 Jruing 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 新建数据卷 [root@VM-24-9-centos ~]# docker volume create portainer_data 拉取Portainer镜像 [root@VM-24-9-centos ~]# docker pull portainer/portainer-ce Using def 阅读全文
posted @ 2023-01-17 14:02 Jruing 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 安装vsftpd yum install -y vsftpd 修改配置文件 cd /etc/vsftpd user_list # 白名单 ftpusers # 黑名单 vsftpd.conf # 配置文件 vi vsftpd.conf # 以下参数需要修改 anonymous_enable=no # 阅读全文
posted @ 2023-01-17 14:02 Jruing 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 本文以下面链接文件为测试过程,为了方便,可以在本地把文件解压后重新压缩为 zip类型的压缩包 http://www.mobanwang.com/mb/UploadFiles_2010/lo202105/202105033.rar 拉取镜像 [root@VM-24-9-centos ~]# docke 阅读全文
posted @ 2023-01-17 13:57 Jruing 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Blackbox Exporter是Prometheus社区提供的官方黑盒监控解决方案,其允许用户通过:HTTP、HTTPS、DNS、TCP以及ICMP 的方式对网络进行探测。我们可以利用这个exporter定时访问业务系统某个接口来确定服务是否存活 下载 [root@VM-24-9-centos 阅读全文
posted @ 2023-01-17 13:55 Jruing 阅读(877) 评论(0) 推荐(0) 编辑
摘要: docker安装google/cadvisor [root@VM-24-9-centos ~]# docker pull google/cadvisor Using default tag: latest latest: Pulling from google/cadvisor ff3a5c916c 阅读全文
posted @ 2023-01-17 13:54 Jruing 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Grafana官网 下载Grafana [root@VM-24-9-centos Prometheus_server]# wget https://dl.grafana.com/oss/release/grafana-9.3.2.linux-amd64.tar.gz 安装Grafana [root@ 阅读全文
posted @ 2023-01-17 13:50 Jruing 阅读(73) 评论(0) 推荐(0) 编辑
摘要: Node_exporter是可以在* Nix和Linux系统上运行的计算机度量标准的导出器。 Node_exporter 主要用于暴露 metrics 给 Prometheus,其中 metrics 包括:cpu 的负载,内存的使用情况,网络等。 配置文件 修改主配置文件 [root@VM-24-9 阅读全文
posted @ 2023-01-17 13:41 Jruing 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 全局配置注解 global: # 默认情况抓取目标的频率,默认1分钟 [ scrape_interval: <duration> | default = 1m ] # 抓取请求超时的时间,默认10S [ scrape_timeout: <duration> | default = 10s ] # 评 阅读全文
posted @ 2023-01-17 13:34 Jruing 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 一般一个job作为一个业务服务,它下面的监控的机器/节点都是这个服务的节点,为了方便管理,我们可以按照job划分,为每个job创建一个子配置文件,这样方便管理 配置文件 # my global config global: scrape_interval: 15s # #每15s采集一次数据 eva 阅读全文
posted @ 2023-01-17 13:29 Jruing 阅读(504) 评论(0) 推荐(0) 编辑
摘要: Label Lable是为了方便管理及查询监控目标,在后续写promtheus查询语法的时候需要使用标签作为查询条件 配置文件 # A scrape configuration containing exactly one endpoint to scrape: # Here it's Promet 阅读全文
posted @ 2023-01-17 13:26 Jruing 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 官网 https://prometheus.io/docs/introduction/overview/ 下载Prometheus https://prometheus.io/download/ 安装Prometheus 配置文件 # my global config global: scrape_ 阅读全文
posted @ 2023-01-17 13:22 Jruing 阅读(428) 评论(0) 推荐(0) 编辑
摘要: CGO是什么 cgo 是在 Android 和 iOS 上运行 Go 程序的关键,它允许GO程序与C语言库相互操作 未用到CGO的时候,建议编译的时候禁用CGO,比如编译ARM架构的时候就需要打开该选项,该选项默认情况下为1 编译为exe可执行文件 go env -w CGO_ENABLED=0 # 阅读全文
posted @ 2023-01-17 11:13 Jruing 阅读(386) 评论(0) 推荐(0) 编辑