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
相关推荐
青春不流名5 小时前
安装nerdctl和buildkitd脚本命令
容器
项目題供诗5 小时前
黑马k8s(九)
云原生·容器·kubernetes
取啥都被占用6 小时前
milvus+flask山寨《从零构建向量数据库》第7章case2
flask·milvus·向量数据库
游王子7 小时前
Milvus(24):全文搜索、文本匹配
milvus
IP管家7 小时前
企业级IP代理解决方案:负载均衡与API接口集成实践
服务器·网络·数据库·网络协议·tcp/ip·容器·负载均衡
宋康8 小时前
Docker 常用命令
docker·容器·eureka
孤的心了不冷8 小时前
【Linux】Linux安装并配置MongoDB
linux·运维·mongodb·容器
wjy6_10 小时前
Rocky Linux 9.5 基于kubeadm部署k8s
linux·运维·kubernetes
意倾城12 小时前
Docker常见命令解读
docker·容器
我没有开挂17 小时前
旧 docker 版本通过 nvkind 搭建虚拟多节点 gpu 集群的坑
运维·docker·容器