侧边栏壁纸
博主头像
技术博客 博主等级

行动起来,活在当下

  • 累计撰写 15 篇文章
  • 累计创建 1 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

阿里云arms prometheus增加自定义target

Administrator
2025-03-07 / 0 评论 / 0 点赞 / 1 阅读 / 0 字
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  annotations:
    arms.prometheus.io/discovery: 'true'
  name: cmdbmonitor
  namespace: prod
spec:
  endpoints:
  - interval: 30s
    path: /metrics
    port: client
  namespaceSelector:
    matchNames:
    - default
  selector:
    matchLabels:
      app.kubernetes.io/instance: cmdb
      micrometer-prometheus-discovery: 'true'

0

评论区