Closed stanxing closed 4 years ago
After some research, there seems to be a consensus that this is useful. I would accept a PR for this.
I suggest naming the parameter web.disable-exporter-metrics
to keep the same standard used in node-exporter
.
disableExporterMetrics = kingpin.Flag(
"web.disable-exporter-metrics",
"Exclude metrics about the exporter itself (promhttp_*, process_*, go_*).",
).Bool()
References:
@estahn PR linked
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@estahn Why PR hasn't been merged?
If someone needs the original repo with the PR:
https://gist.github.com/mingalevme/28642bf1160a760f024d5155259d32a4
When I run the program and visit /metrics, I found they includes many
go_collector
metrics. This has nothing to do with php_fpm and can not be disabled. Mybe someone think it is helpful to debug exporter self. But I feel they are noise and take up a lot of space. So may be should have a flag to control whether this behavior is enabled.