github.com/google/cloudprober@v0.11.3/examples/surfacers/stackdriver_surfacer.cfg (about)

     1  # This config file adds two surfacers: prometheus and stackdriver. Prometheus
     2  # surfacer exports data for all probes, while stackdriver exports data only
     3  # from one probe.
     4  #
     5  # NOTE: We need to explicitly specify prometheus surfacer since stackdriver
     6  # surfacer is configured.
     7  probe {
     8      name: "http_google"
     9      type: HTTP
    10      targets {
    11          host_names: "www.google.com"
    12      }
    13  }
    14  probe {
    15      name: "http_aws"
    16      type: HTTP
    17      targets {
    18          host_names: "aws.amazon.com"
    19      }
    20  }
    21  surfacer {
    22      type: PROMETHEUS
    23  }
    24  
    25  # Surfacer to export data to Google Cloud Monitoring (Stackdriver). It assumes
    26  # that cloudprober is running on GCP (that's why no project specification), and
    27  # VMs or GKE nodes have write access for Stackdriver.
    28  # More on stackdriver surfacer:
    29  # https://cloudprober.org/surfacers/stackdriver/
    30  surfacer {
    31      type: STACKDRIVER
    32      
    33      # Exports data only from the "http_aws" probe.
    34      stackdriver_surfacer {
    35          allowed_metrics_regex: ".*\/http_aws\/.*"
    36      }
    37  }