From 00b1f1de1f40059a26d75964408be3a13738c3d8 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 29 Jul 2016 11:35:32 +0200 Subject: [PATCH] grpc plugin: Add the "ds_names" field to the ValueList message. --- proto/types.proto | 2 ++ src/grpc.cc | 3 +++ 2 files changed, 5 insertions(+) diff --git a/proto/types.proto b/proto/types.proto index 5d82a5b9..623dad8f 100644 --- a/proto/types.proto +++ b/proto/types.proto @@ -53,4 +53,6 @@ message ValueList { google.protobuf.Duration interval = 3; Identifier identifier = 4; + + repeated string ds_names = 5; } diff --git a/src/grpc.cc b/src/grpc.cc index 905e403b..5c8fa159 100644 --- a/src/grpc.cc +++ b/src/grpc.cc @@ -190,6 +190,9 @@ static grpc::Status marshal_value_list(const value_list_t *vl, collectd::types:: return grpc::Status(grpc::StatusCode::INTERNAL, grpc::string("unknown value type")); } + + auto name = msg->add_ds_names(); + name->assign(ds->ds[i].name); } return grpc::Status::OK; -- 2.11.0