Skip to content

Commit 0c33e52

Browse files
authored
Merge pull request #95 from Trackunit/feature/document-scrapemode
Document the difference between scrapemodes
2 parents ea47f26 + be3686c commit 0c33e52

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/metrics.md

+5
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,13 @@ kminion_kafka_consumer_group_topic_partition_lag{group_id="bigquery-sink",partit
8282
# HELP kminion_kafka_consumer_group_topic_lag The number of messages a consumer group is lagging behind across all partitions in a topic
8383
# TYPE kminion_kafka_consumer_group_topic_lag gauge
8484
kminion_kafka_consumer_group_topic_lag{group_id="bigquery-sink",topic_name="shop-activity"} 147481
85+
```
8586

87+
#### Offset Commits Metrics
88+
The following metrics are only available when KMinion is configured to use `scrapeMode: offsetsTopic`.
89+
```
8690
# HELP kminion_kafka_consumer_group_offset_commits_total The number of offsets committed by a group
8791
# TYPE kminion_kafka_consumer_group_offset_commits_total counter
8892
kminion_kafka_consumer_group_offset_commits_total{group_id="bigquery-sink"} 1098
8993
```
94+

docs/reference-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ minion:
5252
enabled: true
5353
# Mode specifies whether we export consumer group offsets using the Admin API or by consuming the internal
5454
# __consumer_offsets topic. Both modes have their advantages and disadvantages.
55+
# * adminApi:
56+
# - Useful for managed kafka clusters that do not provide access to the offsets topic.
57+
# * offsetsTopic
58+
# - Enables kminion_kafka_consumer_group_offset_commits_total metrics.
59+
# - Processing the offsetsTopic requires slightly more memory and cpu than using the adminApi. The amount depends on the
60+
# size and throughput of the offsets topic.
5561
scrapeMode: adminApi # Valid values: adminApi, offsetsTopic
5662
# Granularity can be per topic or per partition. If you want to reduce the number of exported metric series and
5763
# you aren't interested in per partition lags you could choose "topic" where all partition lags will be summed

0 commit comments

Comments
 (0)