Open jszwedko opened 3 years ago
I suspect user should use influxdb_logs
sink, instead of influxdb_metrics
sink.
For the latter sink, it assumes a definite metric schema, which will be aggregated before encoded (definite schema too) to influxdb line protocol. It's not odd, but just for a different use case.
When trying to sink a event as is, use influxdb_logs
sink instead.
E.g. given a event,
{host: "example.com", name:"sda2", reads:798000i, writes: 2674662i }
it will be sinked to influxdb as is,
diskio,host=seth.localdomain.com,name=sda2 reads=798000i,writes=2674662i 1620945840000000000
See https://vector.dev/docs/reference/configuration/sinks/influxdb_logs/#mapping-log-fields
Reported by user in discord: https://discord.com/channels/742820443487993987/746070591097798688/842534119246397456
User is seeing vector write metrics like:
But cannot figure out how to do calculations of them when the field name,
value
, is the same for all metrics.Telegraf writes metrics that look like:
This seems more correct to me at first blush, but I'm also not terribly familiar with influxdb.