github.com/google/cloudprober@v0.11.3/examples/external/cloudprober_aggregate.cfg (about)

     1  # Run an external probe and aggregate metrics in cloudprober.
     2  probe {
     3    name: "redis_probe"
     4    type: EXTERNAL
     5    targets { dummy_targets {} }
     6    external_probe {
     7      mode: ONCE
     8      command: "./redis_probe"
     9  
    10      output_metrics_options {
    11        aggregate_in_cloudprober: true
    12  
    13        # Create distributions for get_latency_ms and set_latency_ms.
    14        dist_metric {
    15          key: "get_latency_ms"
    16          value: {
    17            explicit_buckets: "0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.5,2.0"
    18          }
    19        }
    20        dist_metric {
    21          key: "set_latency_ms"
    22          value: {
    23            explicit_buckets: "0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.5,2.0"
    24          }
    25        }
    26      }
    27    }
    28  }