diff --git a/metrics/map.go b/metrics/map.go index 94d30eba..062f98bb 100644 --- a/metrics/map.go +++ b/metrics/map.go @@ -169,8 +169,9 @@ func (m *Map) String() string { // ParseMapFromString parses a map value string into a map object. // Note that the values are always parsed as floats, so even a map with integer -// values will become a float map. For example: -// "map:code 200:10123 404:21" will be parsed as: +// values will become a float map. +// For example: +// "map:code,200:10123,404:21" will be parsed as: // "map:code 200:10123.000 404:21.000". func ParseMapFromString(mapValue string) (*Map, error) { tokens := strings.Split(mapValue, ",") diff --git a/rds/server/gcp/proto/config.proto b/rds/server/gcp/proto/config.proto index 1cae95ed..6729fc2a 100644 --- a/rds/server/gcp/proto/config.proto +++ b/rds/server/gcp/proto/config.proto @@ -1,4 +1,4 @@ -// Configuration proto for GCE targets. +// Configuration proto for GCP provider. // Example config: // { // project: 'test-project-id' @@ -12,6 +12,14 @@ // name: "lame-duck-targets" // } // } +// +// # Pub/Sub messages from the topic lame-duck-targets. +// pubsub_messages { +// subscription { +// name: "lame-duck-targets-{{.hostname}}" +// topic_name: "lame-duck-targets" +// } +// } // } syntax = "proto2"; diff --git a/rds/server/kubernetes/proto/config.proto b/rds/server/kubernetes/proto/config.proto index 1d0920c3..af2cbfb2 100644 --- a/rds/server/kubernetes/proto/config.proto +++ b/rds/server/kubernetes/proto/config.proto @@ -1,15 +1,23 @@ -// Configuration proto for GCE targets. -// Example config: -// { -// project: 'test-project-id' +// Configuration proto for Kubernetes provider. // -// # GCE instances -// gce_instances {} +// Example provider config: +// { +// pods {} +// } // -// # RTC variables from the config lame-duck-targets, re-evaluated every 10s. -// rtc_variables { -// rtc_config { -// name: "lame-duck-targets" +// In probe config: +// probe { +// targets{ +// rds_targets { +// resource_path: "k8s://pods" +// filter { +// key: "namespace" +// value: "default" +// } +// filter { +// key: "name" +// value: "cloudprober.*" +// } // } // } // }