Hello,

I would like the propose adding to mysqld_exporter the ability to /-/reload 
the scraper configuration. Currently scrapers are only configurable via 
--collect.<name>[.arg] and cannot be reconfigured at runtime, so this 
proposal also entails allowing collectors to be configured via a file, and 
then to have the ability to reconfigure scrapers when the contents of that 
file change and /-/reload is called.

I opened a GH issue here 
<https://github.com/prometheus/mysqld_exporter/issues/759>. It was closed 
by Ben saying that the maintainers had no plans to implement, but didn't 
say whether they would be open to a contribution, which I'd be happy to 
offer if so.

The reason this would be useful to me is that my organization runs 
mysqld_exporter in a container co-located with a mysqld container in the 
same Kubernetes pod. mysqld has a socket but no port so there's no way to 
reconfigure the mysqld_exporter container without recreating the pod. I 
realize this situation may not be common, but hopefully this idea would be 
generally useful and merit consideration here.

I have prototyped a solution locally that works pretty well and is fully 
backwards compatible.

Thanks,
Max

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-developers/9c110603-3652-44c6-a196-1334dd1f1d65n%40googlegroups.com.

Reply via email to