Change InfluxDB output of 'mic' from field to tag ()

This commit is contained in:
Sumpter Smartt 2021-12-05 05:24:01 -05:00 committed by GitHub
parent 5bade43a8c
commit 7fc96b455b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -301,7 +301,8 @@ static void print_influx_data(data_output_t *output, data_t *data, char const *f
else if (!strcmp(data->key, "type")
|| !strcmp(data->key, "subtype")
|| !strcmp(data->key, "id")
|| !strcmp(data->key, "channel")) {
|| !strcmp(data->key, "channel")
|| !strcmp(data->key, "mic")) {
str = mbuf_snprintf(buf, ",%s=", data->key);
str++;
end = &buf->buf[buf->len - 1];
@ -329,7 +330,8 @@ static void print_influx_data(data_output_t *output, data_t *data, char const *f
else if (!strcmp(data->key, "type")
|| !strcmp(data->key, "subtype")
|| !strcmp(data->key, "id")
|| !strcmp(data->key, "channel")) {
|| !strcmp(data->key, "channel")
|| !strcmp(data->key, "mic")) {
// skip
}
else {