File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
terraform/python/ec2/default Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 } '
You can’t perform that action at this time.
0 commit comments