Skip to content

zookeeper: when no servers specified, doesn't collect statistics #2886

Closed
@smalenfant

Description

@smalenfant

Directions

Bug report

Enable the input only with [[inputs.zookeeper]] doesn't collect any statistics

Relevant telegraf.conf:

[[inputs.zookeeper]]

System info:

Centos 7.3, telegraf 1.2.1

Steps to reproduce:

telegraf --test --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d --input-filter zookeeper

Expected behavior:

Input to provide collection for zookeeper on localhost when there is no servers specified.

Actual behavior:

[root@zookeeper01~]# telegraf --test --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d --input-filter zookeeper
* Plugin: inputs.zookeeper, Collection 1

Additional info:

Proposal:

Current behavior:

According to documentation (at least the way I read it), servers parameter seems optional and would use localhost:2181.

Desired behavior:

With simple input configured, zookeeper collection would start on localhost. This is what most input plugins works.

Use case: [Why is this important (helps with prioritizing requests)]

Workaround is fairly easy, specify servers = [":2181"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions