Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions src/schemas/json/prometheus.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <host>:<port>.",
"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",
Expand Down
6 changes: 6 additions & 0 deletions src/test/prometheus/prometheus.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}