Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Troubleshooting

Manu Garg edited this page Aug 3, 2024 · 1 revision

Debug Logs

You can enable debug logs in Cloudprober by setting the --debug_log flag. However, it may produce a lot of logs, making it difficult to find what you're looking for. To fix that problem, Cloudprober comes with another flag: --debug_logname_regex. This flag lets you filter logs by log attributes -- in most cases it's sufficient to filter by probe name or surfacer name. Example invocation:

# Show debug logs only for probe named dns_probe
cloudprober --config_file=/cfg/cloudprober.cfg --debug_log --debug_logname_regex=dns_probe

# Show debug logs for prometheus surfacer
cloudprober --config_file=/cfg/cloudprober.cfg --debug_log --debug_logname_regex=prometheus

# Show global debug logs, log associated with overall cloudprober independent of any component
cloudprober --config_file=/cfg/cloudprober.cfg --debug_log --debug_logname_regex=global

Caution: Debug logs may contain sensitive information, be careful while enabling them.

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.