google/cloudprober

Provide an option to disable sysvars logging

Closed this issue · 4 comments

Currently sysvars are always reporting and it has impact in the surfacer (i.e. storage in Stackdriver). In our use case we only need to report the latency so it would be great to have a way to disable the report of the rest of metrics.

Hello @javiergp, I just realized there is an option to limit the variables exported to stackdriver:

optional string allowed_metrics_regex = 3;

I think that will meet your requirement. Can you please verify?

Thank you @manugarg it works for Cloud Monitoring metric! However it still logs to Cloud Logging but that's not an issue right now.

Cool. Renamed the issue to say "provide an option to disable sysvars logging".

I just verified that sysvars logs to cloud logging only in the beginning:

l.Info(em.String())

or, if debug mode is enabled.

I am going to close it now. Please feel free to re-open if it's still an issue.