Skip to content

Commit 4be1e55

Browse files
authored
[Bugfix] EMF exporter not handling prometheus config in container envs (#1844)
1 parent dc890fe commit 4be1e55

8 files changed

Lines changed: 1019 additions & 20 deletions
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[agent]
2+
collection_jitter = "0s"
3+
debug = false
4+
flush_interval = "1s"
5+
flush_jitter = "0s"
6+
hostname = "host_name_from_env"
7+
interval = "60s"
8+
logfile = ""
9+
logtarget = "lumberjack"
10+
metric_batch_size = 1000
11+
metric_buffer_limit = 10000
12+
omit_hostname = false
13+
precision = ""
14+
quiet = false
15+
round_interval = false
16+
17+
[inputs]
18+
19+
[[inputs.prometheus]]
20+
cluster_name = "TestCluster"
21+
prometheus_config_path = "{prometheusFileName}"
22+
23+
[outputs]
24+
25+
[[outputs.cloudwatchlogs]]
26+
endpoint_override = "https://fake_endpoint"
27+
force_flush_interval = "5s"
28+
log_stream_name = "host_name_from_env"
29+
mode = "EC2"
30+
profile = "default"
31+
region = "us-west-2"
32+
region_type = "ACJ"
33+
shared_credential_file = "/root/.aws/credentials"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"agent": {
3+
"region": "us-west-2"
4+
},
5+
"logs": {
6+
"metrics_collected": {
7+
"kubernetes": {
8+
"cluster_name": "TestCluster",
9+
"metrics_collection_interval": 30,
10+
"disable_metric_extraction": true,
11+
"enhanced_container_insights": true,
12+
"accelerated_compute_metrics": false,
13+
"kueue_container_insights": false
14+
},
15+
"prometheus": {
16+
"cluster_name": "TestCluster",
17+
"prometheus_config_path": "{prometheusFileName}"
18+
}
19+
},
20+
"force_flush_interval": 5,
21+
"endpoint_override":"https://fake_endpoint"
22+
}
23+
}

0 commit comments

Comments
 (0)