Giter Club home page Giter Club logo

Comments (3)

intelligentfu avatar intelligentfu commented on July 20, 2024

监控部分我们已经整理出相关方案和 serviceMonitor 配置实例,现在在文档发版流程中。 至于helm 我们有这个打算,细节上我们比较谨慎还在详细讨论中,非常感谢你超前的提示。

from doris-operator.

catpineapple avatar catpineapple commented on July 20, 2024

ServiceMonitor itself is a CR provided by Prometheus Operator, which is used to tell Prometheus how to monitor the service (Service). It is part of the Prometheus Operator and is designed to simplify the process of configuring and managing monitoring targets in Kubernetes. ServiceMonitor is to Prometheus Operator what doris helm chart is to
doris-operator. Therefore, ServiceMonitor should not be added to doris' helm chart. If you need to use ServiceMonitor, you can refer to our operation documentation (coming soon) to add it manually.

from doris-operator.

wdxxl avatar wdxxl commented on July 20, 2024

here is my example for service monitor be & fe. hope it works for you.

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    prometheus: k8s
  name: doriscluster-sample-be-monitor
  namespace: monitoring
spec:
  endpoints:
    - interval: 35s
      port: webserver-port # 8040
      path: /metrics
      params:
        format:
          - prometheus
      honorLabels: true
      relabelings:
        - sourceLabels: [ __address__ ]
          targetLabel: group
          replacement: "be"
  namespaceSelector:
    matchNames:
      - doris
  selector:
    matchLabels:
      app.doris.ownerreference/name: doriscluster-sample
      app.kubernetes.io/component: be
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    prometheus: k8s
  name: doriscluster-sample-fe-monitor
  namespace: monitoring
spec:
  endpoints:
    - interval: 35s
      port: http-port # 8030
      path: /metrics
      params:
        format:
          - prometheus
      honorLabels: true
      relabelings:
        - sourceLabels: [ __address__ ]
          targetLabel: group
          replacement: "fe"
  namespaceSelector:
    matchNames:
      - doris
  selector:
    matchLabels:
      app.doris.ownerreference/name: doriscluster-sample
      app.kubernetes.io/component: fe

from doris-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.