github.com/google/cloudprober@v0.11.3/targets/gce/proto/config.proto (about)

     1  // Configuration proto for GCE targets.
     2  syntax = "proto2";
     3  
     4  package cloudprober.targets.gce;
     5  
     6  option go_package = "github.com/google/cloudprober/targets/gce/proto";
     7  
     8  // TargetsConf represents GCE targets, e.g. instances, forwarding rules etc.
     9  message TargetsConf {
    10    // If running on GCE, this defaults to the local project.
    11    // Note: Multiple projects support in targets is experimental and may go away
    12    // with future iterations.
    13    repeated string project = 1;
    14  
    15    oneof type {
    16      Instances instances = 2;
    17      ForwardingRules forwarding_rules = 3;
    18    }
    19  }
    20  
    21  // Represents GCE instances
    22  message Instances {
    23    // IP address resolving options.
    24  
    25    // Use DNS to resolve target names (instances). If set to false (default),
    26    // IP addresses specified in the compute.Instance resource is used. If set
    27    // to true all the other resolving options are ignored.
    28    optional bool use_dns_to_resolve = 1 [default = false];
    29  
    30    // Get the IP address from Network Interface
    31    message NetworkInterface {
    32      optional int32 index = 1 [default = 0];
    33      enum IPType {
    34        // Private IP address.
    35        PRIVATE = 0;
    36  
    37        // IP address of the first access config.
    38        PUBLIC = 1;
    39  
    40        // First IP address from the first Alias IP range. For example, for
    41        // alias IP range "192.168.12.0/24", 192.168.12.0 will be returned.
    42        ALIAS = 2;
    43      }
    44      optional IPType ip_type = 2 [default = PRIVATE];
    45    }
    46    optional NetworkInterface network_interface = 2;
    47  
    48    // Labels to filter instances by ("key:value-regex" format).
    49    repeated string label = 3;
    50  }
    51  
    52  // Represents GCE forwarding rules. Does not support multiple projects
    53  message ForwardingRules {
    54    // Important: if multiple probes use forwarding_rules targets, only the
    55    // settings in the definition will take effect.
    56    // TODO(manugarg): Fix this behavior.
    57    //
    58    // For regional forwarding rules, regions to return forwarding rules for.
    59    // Default is to return forwarding rules from the region that the VM is
    60    // running in. To return forwarding rules from all regions, specify region as
    61    // "all".
    62    repeated string region = 1;
    63  }
    64  
    65  // Global GCE targets options. These options are independent of the per-probe
    66  // targets which are defined by the "GCETargets" type above.
    67  message GlobalOptions {
    68    // How often targets should be evaluated/expanded
    69    optional int32 re_eval_sec = 1 [default = 900];  // default 15 min
    70    // Compute API version.
    71    optional string api_version = 2 [default = "v1"];
    72  }