Hi,

I am new to Prometheus and I am trying to write a prometheus exporter to 
collect some custom metrics from a linux app. The exporter needs to execute 
a binary to get the required metrics. I saw some simple examples and I am 
able to get the exporter working. Now I want to make the exporter ready for 
shipping and want to design it according to industry standards.

1. I don't understand what is a CustomCollector and if I need to implement 
one for my use case. I couldn't even find a good document explaining when 
and where it should be used.
2. I have added a timer loop, which collects the metrics at the defined 
interval, I am wondering if there is a way to manage this interval from the 
prometheus server.
https://prometheus.io/docs/instrumenting/writing_exporters/#scheduling
This link says that the exporter should not collect metrics at arbitrary 
intervals, however it doesn't say how to sync it with the prometheus server.
3. I am writing the exporter in python, is there a standard directory 
layout/coding practice that I should follow?

I went through a couple of prometheus documentation, but they are at a very 
high level and does not include implementation details and the blogs that 
have examples are very basic and does not show how to scale and make it 
ready to ship.

Any help and directions would be appreciated.

This is the blog I followed to implement my simple exporter: 
https://trstringer.com/quick-and-easy-prometheus-exporter/

Siddhant

-- 
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/4dae42d1-4960-4da3-858a-b9881425c17an%40googlegroups.com.

Reply via email to