Comments (7)
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.
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.
It could certainly help people who have large clusters
from helm-exporter.
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.
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.
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.
I bet the issue is it's failing in init where we do the cache.
helm-exporter/registries/helm_hub.go
Line 60 in 67c0a2e
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)
- Commit left out release? HOT 1
- Runtime error when disabling one of the metrics HOT 1
- vulnerabilites in 1.2.5 HOT 4
- helm_chart_info{} metric not available when chart is in "pending-upgrade" status HOT 12
- How to disable lookup on artifactshub, when configured nexus repository. HOT 3
- ChartMuseum to OCI & index.yaml registry Harbor HOT 1
- MULTIPLESCHARTS on Chart, how can we select an especific registry? HOT 8
- Possibility to disable chart up-to-date-check HOT 4
- New patch release with updated dependencies? HOT 1
- Add Flux support : auto discover registries and chart names HOT 1
- Add release history support
- Feature Request: Namespace selection by label
- No logs from helm exproter pod HOT 4
- Missing helm charts found - Failed to search chart info HOT 14
- Upgrade alpine to 3.14.2 HOT 2
- Version outdated label HOT 5
- Metric value question HOT 3
- OCI registry support HOT 1
- no such file or directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-exporter.