From 572b647f1880f49c2da19c9640b6066df95f9373 Mon Sep 17 00:00:00 2001 From: kshvakov Date: Fri, 16 Mar 2018 22:35:12 +0200 Subject: [PATCH] check interface --- plugins/inputs/clickhouse/clickhouse.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/inputs/clickhouse/clickhouse.go b/plugins/inputs/clickhouse/clickhouse.go index 6bc9f6fbd6e89..627d0d13f42be 100644 --- a/plugins/inputs/clickhouse/clickhouse.go +++ b/plugins/inputs/clickhouse/clickhouse.go @@ -112,7 +112,7 @@ func (ch *ClickHouse) Start(telegraf.Accumulator) (err error) { } // Stop ClickHouse input service -func (ch *ClickHouse) Stop(ClickHouse) { +func (ch *ClickHouse) Stop() { if ch.connect != nil { ch.connect.Close() } @@ -149,3 +149,5 @@ var measurementMap = map[string]string{ "metrics": systemMetricsSQL, "asynchronous_metrics": systemAsyncMetricsSQL, } + +var _ telegraf.ServiceInput = &ClickHouse{}