Giter VIP home page Giter VIP logo

Comments (3)

reefland avatar reefland commented on May 31, 2024

Not clear to me, where you would place the release: kube-prometheus-stack type label needed for auto-discovery?

Would this work???

    # Full Options for Service Monitor
    serviceMonitor:
      enabled: true
      endpoints:
        - port: http
          path: /metrics
          interval: 1m
          scrapeTimeout: 10s
      # -- Additional labels for the Kubernetes `ServiceMonitor` object
      labels:
        release: kube-prometheus-stack

Side note - can you also consider creating a podMonitor equivalent? If the pod doesn't require a service in front of it, then no reason to create one just for the sake of using a serviceMonitor.

from helm-charts.

onedr0p avatar onedr0p commented on May 31, 2024

I am guessing you don't need the ServiceMonitor labels for auto-discovery if you have the kps chart configured with the following? I have never had to include those labels on a ServiceMonitor before.

https://github.com/onedr0p/home-ops/blob/66096c2802daf96e48c7843ea1ef23ba76242084/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml#L208-L211

PodMonitor could totally be added as an option too, however currently the only way to define ports is by creating a service. Implementing a way to define ports without a service might be challenging but that is an entirely separate issue.

from helm-charts.

reefland avatar reefland commented on May 31, 2024

Thanks for the reference to the ...SelectorNilUsesHelmValues didn't know about them, will research.

from helm-charts.

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.