github.com/google/cloudprober@v0.11.3/surfacers/prometheus/proto/config.proto (about)

     1  syntax = "proto2";
     2  
     3  package cloudprober.surfacer.prometheus;
     4  
     5  option go_package = "github.com/google/cloudprober/surfacers/prometheus/proto";
     6  
     7  message SurfacerConf {
     8    // How many metrics entries (EventMetrics) to buffer. Incoming metrics
     9    // processing is paused while serving data to prometheus. This buffer is to
    10    // make writes to prometheus surfacer non-blocking.
    11    // NOTE: This field is confusing for users and will be removed from the config
    12    // after v0.10.3.
    13    optional int64 metrics_buffer_size = 1 [default = 10000];
    14  
    15    // Whether to include timestamps in metrics. If enabled (default) each metric
    16    // string includes the metric timestamp as recorded in the EventMetric.
    17    // Prometheus associates the scraped values with this timestamp. If disabled,
    18    // i.e. timestamps are not exported, prometheus associates scraped values with
    19    // scrape timestamp.
    20    optional bool include_timestamp = 2 [default = true];
    21  
    22    // URL that prometheus scrapes metrics from.
    23    optional string metrics_url = 3 [default = "/metrics"];
    24  
    25    // Prefix to add to all metric names. For example setting this field to
    26    // "cloudprober_" will result in metrics with names:
    27    // cloudprober_total, cloudprober_success, cloudprober_latency, ..
    28    optional string metrics_prefix = 4;
    29  }