Skip to content

Commit

Permalink
doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Oct 19, 2018
1 parent d2200b3 commit f4a4b9d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docs/kafka_monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ The recommendation is to rely either on Splunk HEC or TCP inputs to forward Tele
Zookeeper monitoring
====================

Collecting with Telegraf
------------------------

The Zookeeper monitoring is very simple and achieved by Telegraf and the Zookeeper input plugin.

**The following configuration stands in telegraf.conf and configures the input plugin to monitor multiple Zookeeper servers from one source:**::
Expand All @@ -81,6 +84,34 @@ The Zookeeper monitoring is very simple and achieved by Telegraf and the Zookeep
[[inputs.zookeeper]]
servers = ["localhost:12181"]

Full telegraf.conf example
--------------------------

*The following telegraf.conf collects a cluster of 3 Zookeeper servers:*::

[agent]
interval = "10s"
flush_interval = "10s"
hostname = "$HOSTNAME"

# outputs
[[outputs.http]]
url = "https://splunk:8088/services/collector"
insecure_skip_verify = true
data_format = "splunkmetric"
## Provides time, index, source overrides for the HEC
splunkmetric_hec_routing = true
## Additional HTTP headers
[outputs.http.headers]
# Should be set manually to "application/json" for json data_format
Content-Type = "application/json"
Authorization = "Splunk 205d43f1-2a31-4e60-a8b3-327eda49944a"
X-Splunk-Request-Channel = "205d43f1-2a31-4e60-a8b3-327eda49944a"

# zookeeper metrics
[[inputs.zookeeper]]
servers = ["zookeeper-1:12181","zookeeper-2:22181","zookeeper-3:32181"]

**Vizualizations of metrics within the Splunk metrics workspace application:**

.. image:: img/zookeeper_metrics_workspace.png
Expand Down

0 comments on commit f4a4b9d

Please sign in to comment.