This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
/
config.proto
68 lines (55 loc) · 2.86 KB
/
config.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
syntax = "proto2";
package cloudprober;
import "github.com/google/cloudprober/probes/proto/config.proto";
import "github.com/google/cloudprober/servers/proto/config.proto";
import "github.com/google/cloudprober/surfacers/proto/config.proto";
import "github.com/google/cloudprober/targets/proto/targets.proto";
import "github.com/google/cloudprober/targets/rds/server/proto/config.proto";
import "github.com/google/cloudprober/targets/rtc/rtcreporter/proto/rtcreporter.proto";
message ProberConfig {
// Probes to run.
repeated probes.ProbeDef probe = 1;
// Surfacers are used to export probe results for further processing.
// If no surfacer is configured, a prometheus and a file surfacer are
// initialized:
// - Prometheus makes probe results available at http://<host>:9313/metrics.
// - File surfacer writes results to stdout.
//
// You can disable default surfacers (in case you want no surfacer at all), by
// adding the following to your config:
// surfacer {}
repeated surfacer.SurfacerDef surfacer = 2;
// Servers to run inside cloudprober. These servers can serve as targets for
// other probes.
repeated servers.ServerDef server = 3;
// Common services related options.
// Next tag: 102
// Resource discovery server
optional targets.rds.ServerConf rds_server = 95;
// Port for the default HTTP server. This port is also used for prometheus
// exporter (URL /metrics). Default port is 9313. If not specified in the
// config, default port can be overridden by the environment variable
// CLOUDPROBER_PORT.
optional int32 port = 96;
// Host for the default HTTP server. Default listens on all addresses. If not
// specified in the config, default port can be overridden by the environment
// variable CLOUDPROBER_HOST.
optional string host = 101;
// How often to export system variables. To learn more about system variables:
// http://godoc.org/github.com/google/cloudprober/sysvars.
optional int32 sysvars_interval_msec = 97 [default = 10000];
// Variables specified in this environment variable are exported as it is.
// This is specifically useful to export information about system environment,
// for example, docker image tag/digest-id, OS version etc. See
// tools/cloudprober_startup.sh in the cloudprober directory for an example on
// how to use these variables.
optional string sysvars_env_var = 98 [default = "SYSVARS"];
// Options for RTC reporter. RTC reporter reports information about the
// current instance to a Runtime Config (RTC). This is useful if you want your
// instance to be dynamically discoverable through RTC targets. This is
// disabled by default.
optional targets.rtcreporter.RtcReportOptions rtc_report_options = 99;
// Global targets options. Per-probe options are specified within the probe
// stanza.
optional targets.GlobalTargetsOptions global_targets_options = 100;
}