diff --git a/src/schemas/json/prometheus.json b/src/schemas/json/prometheus.json index 17ac5f5aa44..155f40c4ac2 100644 --- a/src/schemas/json/prometheus.json +++ b/src/schemas/json/prometheus.json @@ -1581,6 +1581,55 @@ } }, "additionalProperties": false + }, + "tracing": { + "description": "Configures exporting traces from Prometheus to a tracing backend via the OTLP protocol.", + "type": ["object", "null"], + "properties": { + "client_type": { + "description": "Client used to export the traces. Options are 'http' or 'grpc'.", + "type": ["string", "null"], + "enum": ["http", "grpc", null], + "default": "grpc" + }, + "endpoint": { + "description": "Endpoint to send the traces to. Should be provided in format :.", + "type": ["string", "null"] + }, + "sampling_fraction": { + "description": "Sets the probability a given trace will be sampled. Must be a float from 0 through 1.", + "type": ["number", "null"], + "minimum": 0, + "maximum": 1, + "default": 0 + }, + "insecure": { + "description": "If disabled, the client will use a secure connection.", + "type": ["boolean", "null"], + "default": false + }, + "headers": { + "description": "Key-value pairs to be used as headers associated with gRPC or HTTP requests.", + "type": ["object", "null"], + "additionalProperties": { + "type": "string" + } + }, + "compression": { + "description": "Compression key for supported compression types. Supported compression: gzip.", + "type": ["string", "null"] + }, + "timeout": { + "$ref": "#/definitions/duration", + "description": "Maximum time the exporter will wait for each batch export.", + "default": "10s" + }, + "tls_config": { + "$ref": "#/definitions/tls_config", + "description": "TLS configuration." + } + }, + "additionalProperties": false } }, "title": "Prometheus", diff --git a/src/test/prometheus/prometheus.json b/src/test/prometheus/prometheus.json index 3bb2793a2b7..d7fd90a4989 100644 --- a/src/test/prometheus/prometheus.json +++ b/src/test/prometheus/prometheus.json @@ -375,5 +375,11 @@ "tsdb": { "out_of_order_time_window": "10m" } + }, + "tracing": { + "client_type": "grpc", + "endpoint": "otlp-ingester.monitoring.svc.cluster.local.:4317", + "insecure": true, + "sampling_fraction": 0.17 } }