1. 首页
  2. 数据库
  3. 其它
  4. 简单的普罗米修斯安装 源码

简单的普罗米修斯安装 源码

上传者: 2021-03-12 17:43:36上传 ZIP文件 3.24KB 热度 9次
简单的普罗米修斯安装 运行kubectl apply -f prometheus.yaml 将注释添加到您希望Prometheus收集的部署中。 将端口( 8080 )和路径( /metrics )替换为您的pod公开的正确端口和路径。 apiVersion: apps/v1 kind: Deployment metadata: name: web labels: comp: web spec: replicas: 1 revisionHistoryLimit: 2 selector: matchLabels: comp: web template: metadata: labels: comp: web annotations: prometheus.io/path:
下载地址
用户评论