Skip to content

Commit

Permalink
Add cloudprober.cfg and remove redundent deps
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiranFang committed Mar 21, 2019
1 parent 54a6e33 commit 71b333a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
31 changes: 31 additions & 0 deletions cloudprober/cloudprober.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
probe {
type: EXTERNAL
name: "spanner"
interval_msec: 1800000
timeout_msec: 30000
targets { dummy_targets {} } # No targets for external probe
external_probe {
mode: ONCE
command: "php grpc_gpc_prober/prober.php --api=spanner"
}
}

probe {
type: EXTERNAL
name: "firestore"
interval_msec: 1800000
timeout_msec: 30000
targets { dummy_targets {} } # No targets for external probe
external_probe {
mode: ONCE
command: "php grpc_gpc_prober/prober.php --api=firestore"
}
}

surfacer {
type: STACKDRIVER
name: "stackdriver"
stackdriver_surfacer {
monitoring_url: "custom.googleapis.com/cloudprober/"
}
}
13 changes: 3 additions & 10 deletions cloudprober/composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
{
"name": "php_code/test_php",
"description": "test example for PHP",
"name": "grpc_gcp_prober",
"description": "grpc cloudprober for PHP",
"require": {
"grpc/grpc": "^v1.15.0",
"google/protobuf": "^v3.3.0",
"google/auth": "^v1.4.0",
"google/cloud": "^v0.86.0",
"google/cloud-error-reporting": "^v0.12.1"
},
"autoload": {
"psr-4": {
"Google\\Cloud\\ErrorReporting\\V1beta1\\": "vendor/google/cloud/ErrorReporting/src/V1beta1"
}
"google/cloud": "^v0.86.0"
}
}
2 changes: 1 addition & 1 deletion cloudprober/grpc_gpc_prober/prober.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

chdir(dirname(__FILE__));
require '../vendor/autoload.php';

// require_once '../Google/Cloud/Firestore/V1beta1/FirestoreClient.php';
Expand Down

0 comments on commit 71b333a

Please sign in to comment.