Code Monkey home page Code Monkey logo

Comments (7)

sstarcher avatar sstarcher commented on July 21, 2024

It will do it on each call to /metrics you can set it up to do this in the background and to cache the results if you use https://github.com/sstarcher/helm-exporter/blob/master/main.go#L50

from helm-exporter.

rlex avatar rlex commented on July 21, 2024

Thanks! I guess default prometheus scraping of 30s sometimes broke helm-exporter.
Much better now, might be worth better documenting that in helm chart? https://github.com/sstarcher/helm-exporter/blob/master/helm/values.yaml#L6

from helm-exporter.

sstarcher avatar sstarcher commented on July 21, 2024

It could certainly help people who have large clusters

from helm-exporter.

evgeny-test avatar evgeny-test commented on July 21, 2024

Hello!
I am having a similar problem.
My cluster has no Internet access.
I have set a variable "latestChartVersion: false", but have a long startup time and CrashLooping.

I tried setting a variable "initialDelaySeconds: 120" for reading and liveness probes, than I can see in logs
time="2021-12-10T16:06:27Z" level=warning msg="failed to update artifacthub cache due to Get "https://artifacthub.io/api/v1/helm-exporter\": dial tcp 13.33.240.37:443: i/o timeout "

Is there a standard way to disable artifacthub update?

from helm-exporter.

sstarcher avatar sstarcher commented on July 21, 2024

Your error is not the same thing. Your issue is it trying to fetch charts, but you have no internet access. I believe currently for it to work you would need to specify OverrideRegistries for each of your charts. If you do that it will not fall back to artifacthub.

Certainly a bug that it should not cause a crashback loop if it can't reach artifacthub

from helm-exporter.

evgeny-test avatar evgeny-test commented on July 21, 2024

Thanks for the quick response!

I have set the following settings, but I still get an unavailable artifacthub.
I don't have a real local helm repository with this charts.

helm-exporter:
...
  config:
    helmRegistries:
      override:
        - registry:
            url: "localhost"
          charts:
            - es
            - kibana
            - logstash
            - prometheus
            - ...

Why use artifacthub if I disabled latestChartVersion?

For info: When I set the setting "initialDelaySeconds: 120", the pod works fine, despite the warning.

from helm-exporter.

sstarcher avatar sstarcher commented on July 21, 2024

I bet the issue is it's failing in init where we do the cache.

err := update()

So latest chart version is disabling the actual fetching, but we are still polling the cache. We likely need a way to disable the cache from happening or move it to a separate function call. I would consider that a bug.

from helm-exporter.

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.