Prometheus Panel builder
The Prometheus Panel builder helps creating panels in the format expected by Perses.
Usage#
Parameters#
Parameter | Type | Mandatory/Optional | Default | Description |
---|
#clause | "by" | "without" | "" | Optional | "" | The aggregation clause for this panel’s queries. |
#clauseLabels | […string] | Optional | [] | The labels on which to aggregate for this panel’s queries. |
spec | PanelSpec | Mandatory | | A PanelSpec object |
the panel spec object can use the following string fields provided by the builder, via interpolation:
Field | Type | Description |
---|
#aggr | string | Aggregation clause built from the provided #clause and #clauseLabels . E.g by (namespace, pod) |
Example#