milvus helm k8s开启监控

https://milvus.io/docs/monitor.md

文章写的很清晰 ,我这边做一下个人补充,初版可能只是配置,具体的grafana 监控报表后期补一下。

架构如下:

values.yaml 配置 enabled: true 改为true

复制代码
metrics:
  enabled: true

  serviceMonitor:
    # Set this to `true` to create ServiceMonitor for Prometheus operator
    enabled: true
    interval: "30s"
    scrapeTimeout: "10s"
    # Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
    additionalLabels: {}

生产的可执行yaml (可直接手动部署)

需要改标签

复制代码
---
# Source: milvus/templates/servicemonitor.yaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: my-release-milvus
  labels:
    helm.sh/chart: milvus-4.0.31 
    app.kubernetes.io/name: milvus
    app.kubernetes.io/instance: my-release
    app.kubernetes.io/version: "2.2.13"  
    app.kubernetes.io/managed-by: Helm
spec:
  endpoints:
    - honorLabels: true
      interval: 30s
      scrapeTimeout: 10s
      path: /metrics
      port: metrics
  namespaceSelector:
    matchNames:
      - default
  selector:
    matchLabels:
      app.kubernetes.io/name: milvus
      app.kubernetes.io/instance: my-release
  targetLabels:
    - app.kubernetes.io/name
    - app.kubernetes.io/instance
    - component
相关推荐
努力进修1 小时前
Docker+cpolar 实战:打造灵活可控的远程办公系统
运维·docker·容器
Generalzy2 小时前
从本地 Demo 到生产级检索:Milvus 学习笔记(3)
笔记·学习·milvus
Earth explosion4 小时前
大规模向量库的索引选型与查询性能调优:Milvus 实战指南
人工智能·milvus·ai智能体
jieyucx4 小时前
Docker 入门第一阶段:建立正确认知与初体验
运维·docker·容器
only_Klein6 小时前
k8sgpt集成Prometheus Grafana
gpt·kubernetes·prometheus
jieyucx7 小时前
Docker 入门第二阶段:掌握日常命令
运维·docker·容器
有毒的教程7 小时前
Kubernetes进阶实战教程(生产落地完整版)
云原生·容器·kubernetes
Generalzy8 小时前
从本地 Demo 到生产级检索:Milvus 学习笔记(2)
golang·milvus
不会C语言的男孩10 小时前
Docker 在嵌入式设备中的常用玩法
运维·docker·容器
白日焰火110 小时前
Redis 哨兵搭建+ACL权限控制
linux·docker·kubernetes