瀏覽代碼

Use metric column as prefix

If multiple value columns are returned and a metric column is
returned aswell the metric column will be used as prefix for
the series name
Sven Klemm 7 年之前
父節點
當前提交
b28a362635
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/sources/features/datasources/postgres.md

+ 1 - 1
docs/sources/features/datasources/postgres.md

@@ -101,7 +101,7 @@ The resulting table panel:
 
 
 If you set `Format as` to `Time series`, for use in Graph panel for example, then the query must return a column named `time` that returns either a sql datetime or any numeric datatype representing unix epoch.
 If you set `Format as` to `Time series`, for use in Graph panel for example, then the query must return a column named `time` that returns either a sql datetime or any numeric datatype representing unix epoch.
 Any column except `time` and `metric` is treated as a value column.
 Any column except `time` and `metric` is treated as a value column.
-You may return a column named `metric` that is used as metric name for the value column.
+You may return a column named `metric` that is used as metric name for the value column. If you return multiple value columns and a column named `metric` then this column is used as prefix for the series name.
 
 
 **Example with `metric` column:**
 **Example with `metric` column:**