上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 89 下一页
摘要: 前言 在 Linux 环境中,我使用 sudo 执行命令,发生报错:sudo: unable to resolve host xxxx: Name or service not known 解决 这个错误通常发生在更改主机名后,使用 sudo 命令时出现问题。sudo 命令会尝试解析主机名,但如果无 阅读全文
posted @ 2024-01-22 18:20 牛奔 阅读(1484) 评论(0) 推荐(1)
摘要: 前言 在 mac 上安装 python 后,会自动在 .zprofile 文件中,加入: # Setting PATH for Python 3.12 # The original version is saved in .zprofile.pysave PATH="/Library/Framewo 阅读全文
posted @ 2023-12-24 23:12 牛奔 阅读(363) 评论(0) 推荐(0)
摘要: 制作 ubuntu U盘启动盘 下载Ubuntu镜像 打开 Ubuntu 官网:https://ubuntu.com/download/desktop ,进入页面后,点击右边的【Download】按钮开始下载 Ubuntu 的 ISO 系统镜像文件 下载安装并配置U盘启动盘 下载 Rufuse 写盘 阅读全文
posted @ 2023-12-23 20:14 牛奔 阅读(4777) 评论(0) 推荐(0)
摘要: 介绍 Prometheus 支持 4 种 指标类型,分别是 Counter、Gauge、Histogram 和 Summary。 Counter 指标类型,指标值是只能递增,不能递减的数值。需要注意的是,当 Prometheus server 重启时,指标值会被重置为 0。该指标类型可用于统计接口的 阅读全文
posted @ 2023-11-26 13:04 牛奔 阅读(446) 评论(0) 推荐(0)
摘要: 前言 使用 json.dumps(result) 对数据转 JSON 数据出现错误:TypeError: Object of type float32 is not JSON serializable 数据中存在的 float32 数据是 numpy 格式的数据,Python 内置的 float 类 阅读全文
posted @ 2023-11-13 22:50 牛奔 阅读(789) 评论(0) 推荐(0)
摘要: 前言 在 kubernetes 中配置 https://github.com/NVIDIA/k8s-device-plugin 时, 报错:Detected non-NVML platform: could not load NVML: libnvidia-ml.so.1: cannot open 阅读全文
posted @ 2023-10-18 21:34 牛奔 阅读(458) 评论(0) 推荐(1)
摘要: 前言 在管理 Kubernetes 集群的过程中,我们经常会遇到这样一种情况:在某台节点上发现某个进程资源占用量很高,却又不知道是哪个容器里的进程。有没有办法可以根据进程 PID 快速找到 Pod 名称呢? 解决 假设现在有一个 prometheus 进程的 PID 是 14338: 要获取容器的 阅读全文
posted @ 2023-10-12 22:35 牛奔 阅读(443) 评论(0) 推荐(0)
摘要: 前言 在 ssh -i 指定密钥文件 登录时,出现以下报错: Permissions 0644 for 'xxxx' are too open. It is required that your private key files are NOT accessible by others. This 阅读全文
posted @ 2023-10-09 20:11 牛奔 阅读(1667) 评论(0) 推荐(0)
摘要: 前言 编辑或者修改后的 dashboard 保存为 json 文件,在其他环境导入使用,报错 Failed to upgrade legacy queries Datasource xxxxxxx was not found,无法显示监控数据 问题原因为:从其他 grafana 导出的 dashbo 阅读全文
posted @ 2023-10-09 20:07 牛奔 阅读(1399) 评论(0) 推荐(0)
摘要: 报错 当我在打包 docker镜像时,发生了报错 $ sudo docker build -t dcgm-exporter:3.2.5 . 1.772 The following signatures couldn't be verified because the public key is no 阅读全文
posted @ 2023-10-04 09:52 牛奔 阅读(1063) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 89 下一页