On 21.10.24 03:27, 'Amir Hadadi' via Prometheus Developers wrote:
> As also introduced for node_exporter 
> <https://github.com/prometheus/node_exporter/pull/1148>, and asked for in 
> process exporter <https://github.com/ncabatoff/process-exporter/issues/248>, 
> I believe there's benefit for an option to disable all the collection of go 
> runtime metrics (e.g. "go_gc_duration_second" and any other go_* metric) in 
> the statsd exporter.
> Those metrics are included by default when using the default go prometheus 
> client's default registrerer.
> 
> I made a PR <https://github.com/prometheus/statsd_exporter/pull/587> which 
> introduces a flag called "collector.disable-go-runtime-metrics" that 
> controls the collection of those metrics.
> Not adding the flag will keep collection as always been.

My first thought is that we should do this in a unified
way, i.e. both the flag name and the exact behavior should be the same
for all
exporters. https://github.com/prometheus/node_exporter/pull/1148
introduces the flag in this way (from the docs):

  --[no-]web.disable-exporter-metrics
      Exclude metrics about the exporter itself (promhttp_*,
      process_*, go_*).

In that PR, it was also discussed why we want the "full removal". If
this conclusion still stands, let's do the same for all exporters, and
not slightly different solutions everywhere. Maybe this can go into
https://github.com/prometheus/exporter-toolkit ?

-- 
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/ZxeamvbhavK6KiO4%40mail.rabenste.in.

Reply via email to