Skip to content

Commit 5c4a3f4

Browse files
committed
adding README file and testing env. new variable
1 parent ecca007 commit 5c4a3f4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CLOUDWATCH AGENT CONFIG.
2+
This cloudwatch-agent.json file is a version of the amazon-cloudwatch-agent fitted to the needs of the python sample app using custom metrics.
3+
4+
It handles the custom metrics through the addition of the otlp ports:
5+
"otlp": {
6+
"grpc_endpoint": "0.0.0.0:4317",
7+
"http_endpoint": "0.0.0.0:4318"
8+
}

terraform/python/ec2/default/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ resource "null_resource" "main_service_setup" {
178178
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=grpc
179179
export OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=grpc
180180
export OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=localhost:4317
181-
export OTEL_EXPORTER_OTLP_INSECURE=true
181+
export OTEL_EXPORTER_OTLP_METRICS_INSECURE=true
182182
export OTEL_TRACES_SAMPLER=always_on
183183
export OTEL_RESOURCE_ATTRIBUTES="service.name=python-sample-application-${var.test_id},deployment.environment.name=ec2:default"
184184
export AWS_REGION='${var.aws_region}'

0 commit comments

Comments
 (0)