Connection and query details for a metric data source. Only the Prometheus data source is currently supported: provide the query under spec.query. With counter true or omitted, a good, bad or total query must be a bare PromQL vector selector (e.g. http_requests_total{status="500"}), because Dash0 wraps it in sum(increase(...[5m])). With counter false, these queries accept any PromQL expression that evaluates to an instant vector, including histogram_count(increase(...[5m])). Raw queries also accept instant-vector expressions. Dash0 wraps counter-false and raw queries only in sum(...).
string
Reference to an existing DataSource object by name. Not currently supported — provide an inline spec.query instead. Requests that set metricSourceRef are rejected with a 400.
string
Predefined data source type. Only 'Prometheus' is currently supported (the default when omitted); other types are rejected with a 400.
objectrequired
Data-source-specific query parameters. For Prometheus this is { query: "<PromQL>" }, in the shape this schema describes.
Used by 2
These schemas and endpoints reference this type directly.