Skip to content

Commit

Permalink
enum configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhemmarchand committed Oct 21, 2018
1 parent 4d20831 commit 9349dd0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/kafka_monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,21 @@ Full telegraf.conf example
mbean = "kafka.connect:type=task-error-metrics,connector=*,task=*"
tag_keys = ["connector", "task"]

# Kafka connect return a status value which is non numerical
# Using the enum processor with the following configuration replaces the string value by our mapping
[[processors.enum]]
[[processors.enum.mapping]]
## Name of the field to map
field = "status"

## Table of mappings
[processors.enum.mapping.value_mappings]
paused = 0
running = 1
unassigned = 2
failed = 3
destroyed = 4

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

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

0 comments on commit 9349dd0

Please sign in to comment.