{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/chronosphere/main/json-schema/chronosphere-configv1-read-otel-metrics-ingestion-response-schema.json", "title": "configv1ReadOtelMetricsIngestionResponse", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/chronosphere-otelmetricsingestion-api-openapi.yml#/components/schemas/configv1ReadOtelMetricsIngestionResponse", "properties": { "otel_metrics_ingestion": { "$ref": "#/$defs/configv1OtelMetricsIngestion" } }, "type": "object", "$defs": { "OtelMetricsIngestionResourceAttributes": { "properties": { "exclude_keys": { "description": "Specifies resource attributes to exclude. If a resource attribute's key\nmatches any of the strings in this array, that resource attribute is\nexcluded.", "items": { "type": "string" }, "type": "array" }, "filter_mode": { "allOf": [ { "$ref": "#/$defs/ResourceAttributesFilterMode" } ], "description": "Specifies which filter mode to use for copying resource attributes into\nthe label set. The `APPEND_DEFAULT_EXCLUDE_KEYS` mode copies all resource\nattributes, excluding any that match either the user-supplied\n`exclude_keys` list or a Chronosphere-managed list of suggested\nexclusions. The `CUSTOM_EXCLUDE_KEYS` mode copies all resource\nattributes, excluding any that match the user-supplied `exclude_keys`\nlist, but is not affected by the Chronosphere-managed list of exclusions.\nDefault: `APPEND_DEFAULT_EXCLUDE_KEYS`." }, "flatten_mode": { "allOf": [ { "$ref": "#/$defs/ResourceAttributesFlattenMode" } ], "description": "Specifies how to combine hierarchical OpenTelemetry attributes into a\nsingle set of of labels for a given time series. The `MERGE` mode copies\nresource attributes only if there is no conflicting attribute on the\nindividual data point. The `OVERWRITE` mode gives resource attributes\nprecedence over data point attributes. The `IGNORE` mode doesn't copy any\nresource attributes into the time series label set. Default: `MERGE`." }, "generate_target_info": { "description": "If `true`, generates a `target_info` time series with labels derived from\nresource attributes. The `filter_mode` and `exclude_keys` settings apply\nin the same manner that they apply to the `flatten` operation. Default:\n`false`.", "type": "boolean" } }, "type": "object" }, "ResourceAttributesFilterMode": { "enum": [ "APPEND_DEFAULT_EXCLUDE_KEYS", "CUSTOM_EXCLUDE_KEYS" ], "type": "string" }, "ResourceAttributesFlattenMode": { "enum": [ "MERGE", "OVERWRITE", "IGNORE" ], "type": "string" }, "configv1OtelMetricsIngestion": { "properties": { "created_at": { "description": "Timestamp of when the OtelMetricsIngestion was created. Cannot be set by clients.", "format": "date-time", "readOnly": true, "type": "string" }, "resource_attributes": { "allOf": [ { "$ref": "#/$defs/OtelMetricsIngestionResourceAttributes" } ], "description": "Specifies how to ingest OpenTelemetry resource attributes. These attributes\nhave no direct equivalent in the internal data model of Chronosphere\nObservability Platform." }, "updated_at": { "description": "Timestamp of when the OtelMetricsIngestion was last updated. Cannot be set by clients.", "format": "date-time", "readOnly": true, "type": "string" } }, "type": "object" } } }