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
相关推荐
元气满满的热码式9 小时前
K8S中Service详解(一)
云原生·容器·kubernetes
元气满满的热码式13 小时前
K8S中ingress详解
云原生·容器·kubernetes
jcrose258014 小时前
Ubuntu二进制部署K8S 1.29.2
linux·ubuntu·kubernetes
matrixlzp14 小时前
K8S 启动探测、就绪探测、存活探测
云原生·容器·kubernetes
Dusk_橙子14 小时前
在K8S中,如何使用EFK实现日志的统一管理?
云原生·容器·kubernetes
Tony115414 小时前
Kubernetes v1.28.0安装dashboard v2.6.1(k8s图形化操作界面)
云原生·容器·kubernetes
龙胖不下锅14 小时前
k8s资源预留
云原生·容器·kubernetes
超级阿飞14 小时前
利用Kubespray安装生产环境的k8s集群-排错篇
docker·容器·kubernetes
喝醉酒的小白14 小时前
在 Kubernetes 上快速安装 KubeSphere v4.1.2
云原生·容器·kubernetes
progrmmmm14 小时前
k8s使用nfs持久卷
linux·服务器·kubernetes·k8s·运维开发