mehdy / keepalived-exporter

Prometheus Keepalived exporter
GNU General Public License v3.0
115 stars 37 forks source link

fix: send signal for before getting script #138

Closed mehdy closed 11 months ago

mehdy commented 11 months ago

Fixes #135

mehdy commented 11 months ago

Yeah, I noticed. It's a bad idea that we rely on the order of execution. Each function should be able to respond correctly on its own.

clwluvw commented 11 months ago

Yeah, I noticed. It's a bad idea that we rely on the order of execution. Each function should be able to respond correctly on its own.

I guess we already tried to do that but the fact is the ScriptVrrps is relying on DataVrrps functionality - maybe it would make sense to mix ScriptVrrps and DataVrrps into a single func? But still extracting the signal would make more sense I guess :))

mehdy commented 11 months ago

Yes. I think this could be a better impl for now. Let me know what you think.