cloudprober 1571075707104404176 1571075811 labels=ptype=external,probe=test,dst= success=0 total=1 latency=0.000E1014 11:23:08.079129 15135 external.go:454] external probe process died with the status: exit status 1. Stderr: Traceback (most recent call last): File "./test.py", line 12, in <module> test() File "./test.py", line 6, in test r.raise_for_status() File "/Users/lingyiwang/Library/Python/2.7/lib/python/site-packages/requests/models.py", line 935, in raise_for_status raise HTTPError(http_error_msg, response=self)requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: https://httpbin.org/status/500cloudprober 1571077303053422024 1571077388 labels=ptype=external,probe=test,dst= success=0 total=1 latency=0.000cloudprober --config_file cloudprober.cfg
probe { name: "test" type: EXTERNAL targets { dummy_targets {} } external_probe { mode: ONCE command: "./test.py" } interval_msec: 60000 timeout_msec: 1000}#!/usr/bin/env python
import requests
def test():
r = requests.get("https://httpbin.org/status/500")
r.raise_for_status()
return r
if __name__ == "__main__":
test()cloudprober --config_file cloudprober.cfg --log_dir logsSorry just found in the source code that the logs go into GCE when running on GKE.
--
You received this message because you are subscribed to the Google Groups "Cloudprober" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudprober...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudprober/60553b04-5f56-4131-aedb-5ae6690c520e%40googlegroups.com.