kubedex / exporter Goto Github PK
View Code? Open in Web Editor NEWPrometheus metrics exporter for Helm Tiller
Home Page: https://kubedex.com
License: Apache License 2.0
Prometheus metrics exporter for Helm Tiller
Home Page: https://kubedex.com
License: Apache License 2.0
This simple change provides the namespace of a release in the metric.
Unfortunatly there is actual an issue with my Github account, so I can't make a pull request. So it comes here as diff. It would be nice if you would integrate this. Thanks a lot!
index 37bffe6..265ea1c 100755
--- a/src/kubedex.py
+++ b/src/kubedex.py
@@ -40,9 +40,9 @@ class CustomCollector(object):
print(e)
continue
metric = Metric('helm_chart_info', 'Helm chart information', 'gauge')
- chart_count = Counter([(release.chart.metadata.name, release.chart.metadata.version) for release in all_releases])
+ chart_count = Counter([(release.chart.metadata.name, release.chart.metadata.version, release.namespace) for release in all_releases])
for chart in chart_count:
- metric.add_sample('helm_chart_info', value=chart_count[chart], labels={"name": chart[0], "version": chart[1]})
+ metric.add_sample('helm_chart_info', value=chart_count[chart], labels={"name": chart[0], "version": chart[1], "namespace": chart[2]})
yield metric
Hi,
Looking at the code I see that this exporter only scrape metrics from the kube-namespace
. We install helm in each namespace and install apps into those namespaces. So, if this exporter give the ability to scrape multiple namespaces that would be better.
Thanks,
This exporter doesn't include a service and servicemonitor resrouces for Prometheus to scrape the metrics. Can these be added.
in some of our clusters kubedex fails with the following error.
kubectl logs -n monitoring msa-monitoring-kubedex-exporter-5555975f7-hdhwv
<_Rendezvous of RPC that terminated with:
status = StatusCode.RESOURCE_EXHAUSTED
details = "Received message larger than max (5308389 vs. 4194304)"
debug_error_string = "{"created":"@1554216457.448112296","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1099,"grpc_message":"Received message larger than max (5308389 vs. 4194304)","grpc_status":8}"
>
<_Rendezvous of RPC that terminated with:
status = StatusCode.RESOURCE_EXHAUSTED
details = "Received message larger than max (5308389 vs. 4194304)"
debug_error_string = "{"created":"@1554216460.004088903","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1099,"grpc_message":"Received message larger than max (5308389 vs. 4194304)","grpc_status":8}"
>
<_Rendezvous of RPC that terminated with:
status = StatusCode.RESOURCE_EXHAUSTED
details = "Received message larger than max (5308389 vs. 4194304)"
debug_error_string = "{"created":"@1554216462.964069445","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1099,"grpc_message":"Received message larger than max (5308389 vs. 4194304)","grpc_status":8}"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.