grafana/dashboard-schemas/targets/Prometheus.cue
Chris Trott a6eebc22e8
Dashboard Schemas (#28793)
* cue mod init github.com/grafana/grafana/dashboard-schemas

* dashboard-schemas: Document exporting to OpenAPI

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-24 08:54:34 +01:00

20 lines
485 B
CUE

package targets
#Prometheus: {
// Query expression.
expr: string
// Controls the name of the time series, using name or pattern.
legendFormat?: string
// Interval.
interval?: int | *1
// Target reference ID.
refId: string
// Perform an “instant” query, to return only the latest value that
// Prometheus has scraped for the requested time series.
instant: bool | *false
// Resolution.
intervalFactor?: int
// Format.
format: *"time_series" | "table" | "heat_map"
}