-
Notifications
You must be signed in to change notification settings - Fork 7
/
kafka-e2e.yml
62 lines (60 loc) · 2.16 KB
/
kafka-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
description: |
End-to-end tests for Kafka integration
agent:
build_context: ./agent_dir
env_vars:
NRJMX_VERSION: "1.5.3"
scenarios:
- description: |
This scenario will verify that metrics from a Kafka Cluster
are correcly collected.
before:
- docker compose -f "deps/docker-compose.yml" up -d
after:
- docker compose -f "deps/docker-compose.yml" down -v
integrations:
- name: nri-kafka
binary_path: bin/nri-kafka
env:
CLUSTER_NAME: e2e-kfk-cluster
AUTODISCOVER_STRATEGY: bootstrap
BOOTSTRAP_BROKER_HOST: kafka
BOOTSTRAP_BROKER_KAFKA_PORT: 9092
BOOTSTRAP_BROKER_KAFKA_PROTOCOL: PLAINTEXT
BOOTSTRAP_BROKER_JMX_PORT: 1099
COLLECT_BROKER_TOPIC_DATA:
TOPIC_MODE: all
tests:
nrqls: []
entities:
- type: "KAFKABROKER"
data_type: "Metric"
metric_name: "kafka.broker.ioOutPerSecond"
expected_number: 3
- type: "KAFKATOPIC"
data_type: "Metric"
metric_name: "kafka.topic.partitionsWithNonPreferredLeader"
expected_number: 3
metrics:
- source: "kafka.yml"
except_entities:
- KafkaConsumer
- KafkaProducer
- KafkaConsumerGroup
except_metrics:
- kafka.broker.bytesWrittenToTopicPerSecond
- kafka.broker.logFlushPerSecond
- kafka.broker.consumer.requestsExpiredPerSecond
- kafka.broker.follower.requestExpirationPerSecond
- kafka.broker.request.avgTimeOffset
- kafka.broker.request.avgTimeOffset99Percentile
- kafka.broker.request.fetchConsumerRequestsPerSecond
- kafka.broker.request.fetchFollowerRequestsPerSecond
- kafka.broker.request.listGroupsRequestsPerSecond
- kafka.broker.request.offsetCommitRequestsPerSecond
- kafka.broker.request.produceRequestsPerSecond
- kafka.broker.topic.diskSize
- kafka.topic.bytesInPerSec
- kafka.topic.bytesOutPerSec
- kafka.topic.messagesInPerSec
- kafka.topic.retentionBytesOrTime