Skip to content
Draft
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
3 changes: 3 additions & 0 deletions lib/config_default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export interface Chart {
datasourceUid: string;
datasourceType: string;
query: string;
// InfluxDB ALIAS BY pattern (e.g. "$tag_domain"); names the per-series frames
// returned by a GROUP BY tag query. Optional; single-series queries don't need it.
alias?: string;
format?: string;
unitSuffix?: string;
from?: string;
Expand Down
2 changes: 2 additions & 0 deletions lib/infobox/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ async function fetchChartData(
resultFormat: "time_series",
intervalMs,
maxDataPoints,
// InfluxDB ALIAS BY, e.g. "$tag_domain" to name per-tag series from a GROUP BY
...(chart.alias ? { alias: applySubst(chart.alias, subst) } : {}),
},
],
from: fromStr,
Expand Down