-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathkafka-config.yml.k8s_sample
86 lines (84 loc) · 3.86 KB
/
kafka-config.yml.k8s_sample
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# This file includes *examples* which would be added to the top level `newrelic-infrastructure:` section of
# the values.yaml file for the `newrelic/nri-bundle` chart.
# All values must be changed to match your environment; using any placeholder values will fail.
# For more details, please refer to our docs
# https://docs.newrelic.com/docs/kubernetes-pixie/kubernetes-integration/advanced-configuration/monitor-services/monitor-services-running-kubernetes/
# and the source values.yaml file for the chart:
# https://github.com/newrelic/nri-kubernetes/blob/main/charts/newrelic-infrastructure/values.yaml#L540
# Labels and URLs have been set to be compatible with those as defined in bitnami's helm chart:
# https://github.com/bitnami/charts/tree/master/bitnami/kafka
newrelic-infrastructure:
enabled: true
integrations:
kafka-config-broker.yaml:
discovery:
command:
exec: /var/db/newrelic-infra/nri-discovery-kubernetes --port 10250 --tls
match:
label.app.kubernetes.io/component: kafka
label.app.kubernetes.io/instance: kafka
integrations:
- name: nri-kafka
env:
CLUSTER_NAME: kafka-canary
AUTODISCOVER_STRATEGY: bootstrap
# Please note that the following URL must be tweaked according to the cluster's setup and broker
# configuration. It must point to exactly one pod (i.e. not being load-balanced), and it MUST MATCH the
# advertised name for that broker. Otherwise, collection will fail.
BOOTSTRAP_BROKER_HOST: ${discovery.podName}.kafka-headless.${discovery.namespace}.svc.cluster.local
BOOTSTRAP_BROKER_JMX_PORT: 5555
METRICS: "true"
LOCAL_ONLY_COLLECTION: "true"
kafka-config-offset.yaml:
discovery:
command:
exec: /var/db/newrelic-infra/nri-discovery-kubernetes --port 10250 --tls
match:
label.app.kubernetes.io/component: kafka
label.app.kubernetes.io/instance: kafka
integrations:
- name: nri-kafka
env:
CLUSTER_NAME: "testcluster3"
METRICS: "false"
INVENTORY: "false"
CONSUMER_OFFSET: "true"
AUTODISCOVER_STRATEGY: bootstrap
# Please note that the following URL must be tweaked according to the cluster's setup and broker
# configuration. It must point to exactly one pod (i.e. not being load-balanced), and it MUST MATCH the
# advertised name for that broker. Otherwise, collection will fail.
BOOTSTRAP_BROKER_HOST: ${discovery.podName}.kafka-headless.${discovery.namespace}.svc.cluster.local
BOOTSTRAP_BROKER_KAFKA_PORT: 9092
BOOTSTRAP_BROKER_KAFKA_PROTOCOL: PLAINTEXT
# A regex pattern that matches the consumer groups to collect metrics from
CONSUMER_GROUP_REGEX: '.*'
kafka-config-producer.yaml:
discovery:
command:
exec: /var/db/newrelic-infra/nri-discovery-kubernetes --port 10250 --tls
match:
label.app.kubernetes.io/instance: kafka
label.role: producer
integrations:
- name: nri-kafka
env:
CLUSTER_NAME: "kafka-canary"
PRODUCERS: '[{"host": "${discovery.ip}", "port": 5555}]'
TOPIC_MODE: list
TOPIC_LIST: '["test"]'
METRICS: "true"
kafka-config-consumer.yaml:
discovery:
command:
exec: /var/db/newrelic-infra/nri-discovery-kubernetes --port 10250 --tls
match:
label.app.kubernetes.io/instance: kafka
label.role: consumer
integrations:
- name: nri-kafka
env:
CLUSTER_NAME: "kafka-canary"
CONSUMERS: '[{"host": "${discovery.ip}", "port": 5555}]'
TOPIC_MODE: list
TOPIC_LIST: '["test"]'
METRICS: "true"