influxdata/telegraf

Auto create table in BigQuery

Open

#13,033 创建于 2023年4月4日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Go (4,161 fork)batch import
area/gcpfeature requesthelp wantedplugin/output

仓库指标

Star
 (9,892 star)
PR 合并指标
 (平均合并 2天 12小时) (30 天内合并 136 个 PR)

描述

Use Case

With some input plugins the metric names and formats are unknown on beforehand, the number of tags and fields can vary over time. Therefore it would be nice if the outputs.bigquery plugin could handle this in a way similar to the outputs.sql plugin.

Expected behavior

Telegraf creates the required table in BigQuery with all the corresponding metric fields and tags just as the sql

Actual behavior

Tables for metrics need to be created on beforehand in BigQuery.

Additional info

Here is a PoC which adds a new BigQuery field on the fly, proving it should be possible.

贡献者指南