diff --git a/receiver/googlecloudmonitoringreceiver/config.schema.yaml b/receiver/googlecloudmonitoringreceiver/config.schema.yaml new file mode 100644 index 0000000000000..e2423b7d29f88 --- /dev/null +++ b/receiver/googlecloudmonitoringreceiver/config.schema.yaml @@ -0,0 +1,19 @@ +$defs: + metric_config: + type: object + properties: + metric_descriptor_filter: + description: Filter for listing metric descriptors. Only support `project` and `metric.type` as filter objects. See https://cloud.google.com/monitoring/api/v3/filters#metric-descriptor-filter for more details. + type: string + metric_name: + type: string +type: object +properties: + metrics_list: + type: array + items: + $ref: metric_config + project_id: + type: string +allOf: + - $ref: go.opentelemetry.io/collector/scraper/scraperhelper.controller_config diff --git a/receiver/googlecloudpubsubpushreceiver/config.schema.yaml b/receiver/googlecloudpubsubpushreceiver/config.schema.yaml new file mode 100644 index 0000000000000..1ea19c0caeb7e --- /dev/null +++ b/receiver/googlecloudpubsubpushreceiver/config.schema.yaml @@ -0,0 +1,9 @@ +description: Config defines configuration for the receiver. +type: object +properties: + encoding: + description: Endpoint identifies the expected encoding of messages received from Pub/Sub. + type: string + x-customType: go.opentelemetry.io/collector/component.ID +allOf: + - $ref: go.opentelemetry.io/collector/config/confighttp.server_config diff --git a/receiver/googlecloudpubsubreceiver/config.schema.yaml b/receiver/googlecloudpubsubreceiver/config.schema.yaml new file mode 100644 index 0000000000000..43a70d25ea816 --- /dev/null +++ b/receiver/googlecloudpubsubreceiver/config.schema.yaml @@ -0,0 +1,31 @@ +type: object +properties: + client_id: + description: The client id that will be used by Pubsub to make load balancing decisions + type: string + compression: + description: Lock down the compression of the payload, leave empty for attribute based detection + type: string + encoding: + description: Lock down the encoding of the payload, leave empty for attribute based detection + type: string + endpoint: + description: Override of the Pubsub Endpoint, leave empty for the default endpoint + type: string + ignore_encoding_error: + description: Ignore errors when the configured encoder fails to decoding a PubSub messages + type: boolean + insecure: + description: Only has effect if Endpoint is not "" + type: boolean + project: + description: Google Cloud Project ID where the Pubsub client will connect to + type: string + subscription: + description: The fully qualified resource name of the Pubsub subscription + type: string + user_agent: + description: User agent that will be used by the Pubsub client to connect to the service + type: string +allOf: + - $ref: go.opentelemetry.io/collector/exporter/exporterhelper.timeout_config diff --git a/receiver/googlecloudspannerreceiver/config.schema.yaml b/receiver/googlecloudspannerreceiver/config.schema.yaml new file mode 100644 index 0000000000000..7510bbadb1109 --- /dev/null +++ b/receiver/googlecloudspannerreceiver/config.schema.yaml @@ -0,0 +1,39 @@ +$defs: + instance: + type: object + properties: + databases: + type: array + items: + type: string + instance_id: + type: string + project: + type: object + properties: + instances: + type: array + items: + $ref: instance + project_id: + type: string + service_account_key: + type: string +type: object +properties: + backfill_enabled: + type: boolean + cardinality_total_limit: + type: integer + hide_topn_lockstats_rowrangestartkey: + type: boolean + projects: + type: array + items: + $ref: project + top_metrics_query_max_rows: + type: integer + truncate_text: + type: boolean +allOf: + - $ref: go.opentelemetry.io/collector/scraper/scraperhelper.controller_config