Title
#fleet
s

shailendra manghate

05/18/2021, 6:33 AM
Hi, We are using fleet 3.2 version. Does fleet have inbuilt option to turn on/off metrics? If not, Can we disable metrics commenting code rootMux.Handle("/metrics", prometheus.InstrumentHandler("metrics", promhttp.Handler())) in serve.go file? Any safe alternative for the disabling metrics.
Noah Talerman

Noah Talerman

05/18/2021, 1:20 PM
Typically folks will front Fleet with a proxy that handles exposing/not exposing particular endpoints. Check out https://defensivedepth.com/2020/04/02/kolide-fleet-breaking-out-the-osquery-api-web-ui/ for some guidance on that.