Git Product home page Git Product logo

exporter's People

Contributors

elliotfehr avatar sacreman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

exporter's Issues

Add chart namespace

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

Scrape other namespaces than kube-system

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,

kubedex fails with StatusCode.RESOURCE_EXHAUSTED Received message larger than max

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}"

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.