consul_exporter icon indicating copy to clipboard operation
consul_exporter copied to clipboard

Collect operator autopilot health metrics

Open chuckyz opened this issue 3 years ago • 4 comments

This extends the exporter to collect everything exposed by the https://www.consul.io/api-docs/operator/autopilot#read-health endpoint. Naming is weird, but I wanted to call out that this isn't something that should typically be collected unless you need to keep track of really low level stats.

This is my first time extending a prometheus exporter and I find this one super helpful, thank you all for all your hard work and please let me know if anything here is super wrong. :)

chuckyz avatar Nov 10 '20 08:11 chuckyz

Ignore previous iterations of this comment I was building off my local master... 🤦

Fixing test issues and lint problems now.

chuckyz avatar Nov 10 '20 18:11 chuckyz

I had to soft rebase off origin's head, and then git commit --signoff followed by git push +operator_autopilot_health.

For anyone who journeys here and hits something similar, hopefully https://gist.github.com/patik/b8a9dc5cd356f9f6f980#the-harder-and-less-flexible-way helps to clean up.

Also, for DCO bot whatever reason commits from my Windows desktop with my main email never pass the DCO check.

chuckyz avatar Nov 20 '20 04:11 chuckyz

Apologies for the very belated answer. Would you be able to rebase?

simonpasquier avatar Jan 29 '21 16:01 simonpasquier

@simonpasquier I can.

In Consul 1.9 they also added a lot of new autopilot metrics that are extremely useful. Do you have a way to deal with version breakage?

chuckyz avatar Feb 08 '21 18:02 chuckyz