Thanks a lot for your valuable inputs and suggestions. *query1:* I had created with python with Prometheus-client library, I want to execute this lib as Pod so need to create docker image(python,prometheus-client ). here size of the image is going up to 130+mb and also CPU core utilization is more. Only for few 4 to 6 custom metrics its consuming approximate 1 core.
Do you have any idea to minimize the CPU utilization *query2:* When I am using this lib , I can still see some unwanted metrics are populating other than mu custom metrics. Do you have any idea like jow I can remove it from my metrics list? *Once again thanks a lot @*Brian Candler On Thursday, April 21, 2022 at 10:48:03 PM UTC+5:30 Brian Candler wrote: > See: https://prometheus.io/docs/instrumenting/clientlibs/ > > Choose your programming language, write your exporter using the prometheus > client library for that language. There are various tutorials, e.g. > https://prometheus.io/docs/guides/go-application/ > > At the end of the day, an exporter is just a HTTP server that returns a > response body containing prometheus metrics exposition format > <https://prometheus.io/docs/instrumenting/exposition_formats/>. The > client libraries can just make things a little easier, e.g. maintaining > counters for you. > > Some alternative approaches you could also consider: > - use node_exporter's textfile collector. Then you just need to write > metrics to a file, and node_exporter will pick them up automatically. > - use exporter_exporter > <https://github.com/QubitProducts/exporter_exporter>, which is able to > exec a script > - use one of the other generic exporters like statsd_exporter or > pushgateway, and write your metrics to that (where they will persist, > waiting for prometheus to scrape them) > > On Thursday, 21 April 2022 at 16:36:30 UTC+1 [email protected] wrote: > >> How to write Custom - exporter for specific application? We need create >> custom metrics to full fill our application level metrics . >> >> >> -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f47c1fc5-463f-4f3f-84c3-3ca1b109463en%40googlegroups.com.

