Skip to content

Add a RunProbe api to Cloudprober grpc service - #1186

Merged
manugarg merged 11 commits into
cloudprober:mainfrom
Redexing:add_runonce_grpc
Dec 20, 2025
Merged

manugarg merged 11 commits into
cloudprober:mainfrom
Redexing:add_runonce_grpc

Conversation

@Redexing

@Redexing Redexing commented Dec 8, 2025 •

Copy link
Copy Markdown
Contributor

Add a RunProbe api to the existing Cloudprober gRPC service, to run once the specified probe (or all probes) that this Cloudprober instance is configured with.

The ResultMetric plumbing is a bit more involved, given different types and shapes of results we could expect; so I have left that as a followup TODO item.

Also made slight tweak on the global State and how gRPC server is configured and started, to make it more customizable, for users of Cloudprober as a library.

Tested:

$ ./cmd/cloudprober/cloudprober --config_file=./examples/surfacers/default_surfacers.cfg --run_once 

Probe: http_google
  Target: www.google.com
    Status: ok (latency: 99.191997ms)
    Metrics: 
      1766205870 labels=ptype=http total=1 success=1 latency=98873.047 timeouts=0 resp-code=map:code,200:1

Comment thread state/state.go Resolved
Comment thread cmd/cloudprober/main.go Resolved
Comment thread prober/proto/service.proto Resolved
Comment thread prober/prober.go Resolved
@Redexing

Copy link
Copy Markdown
Contributor Author

PTAL

@Redexing

Copy link
Copy Markdown
Contributor Author

PTAL

Comment thread cloudprober.go Resolved
Comment thread cloudprober.go Resolved
@manugarg
manugarg merged commit 4b6b254 into cloudprober:main Dec 20, 2025
@manugarg manugarg added this to the v0.14.2 milestone Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants