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/4dd7dd4d-48a0-47da-99e3-060e3c9748c4n%40googlegroups.com.

Reply via email to