-
Notifications
You must be signed in to change notification settings - Fork 170
/
Copy pathotel-collector-config.yaml
78 lines (72 loc) · 2.13 KB
/
otel-collector-config.yaml
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
receivers:
otlp:
protocols:
grpc:
http:
prometheus:
config:
global:
scrape_interval: 1m
scrape_timeout: 10s
scrape_configs:
- job_name: confluent-cloud
sample_limit: 10000
scrape_interval: 1m
scrape_timeout: 55s
honor_timestamps: true
static_configs:
- targets:
- api.telemetry.confluent.cloud
scheme: https
basic_auth:
username: "<CCLOUD_API_KEY>"
password: "<CCLOUD_API_SECRET>"
metrics_path: /v2/metrics/cloud/export
params:
"resource.kafka.id":
- "lkc-<kafka-cluster-id>"
processors:
batch:
exporters:
logging:
verbosity: detailed # turn off in production to save disk usage
debug:
verbosity: detailed # turn off in production to save disk usage
awsemf:
region: ap-northeast-1
namespace: 'ECS/ContainerMetrics/OpenTelemetry3'
log_group_name: '/aws/ecs/containerinsights/taku-20240912-1438/performance3'
dimension_rollup_option: "NoDimensionRollup"
resource_to_telemetry_conversion:
enabled: true
metric_declarations:
- dimensions: [[]]
metric_name_selectors:
- "up"
- dimensions: [["kafka_id"]]
metric_name_selectors:
- "confluent_kafka_server*"
- dimensions: [["kafka_id", "principal_id"]]
metric_name_selectors:
- "confluent_kafka_server*"
- dimensions: [["kafka_id", "principal_id", "type"]]
metric_name_selectors:
- "confluent_kafka_server*"
- dimensions: [["kafka_id", "topic"]]
metric_name_selectors:
- "confluent_kafka_server*"
- dimensions: [["kafka_id", "topic", "consumer_group_id"]]
metric_name_selectors:
- "confluent_kafka_server*"
- dimensions: [["kafka_id", "topic", "partition"]]
metric_name_selectors:
- "confluent_kafka_server*"
extensions:
health_check:
service:
extensions: [health_check]
pipelines:
metrics:
receivers: [prometheus]
processors: []
exporters: [logging, awsemf]