Skip to content

Commit

Permalink
reverted the hostedIn and changed the port
Browse files Browse the repository at this point in the history
  • Loading branch information
nathalapooja committed Oct 24, 2023
1 parent e942c2c commit ddfaa4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion terraform/eks/daemon/apm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ resource "kubernetes_daemonset" "service" {
command = [
"/bin/sh",
"-c",
"while true; echo '${data.template_file.traceid_generator.rendered}' > traceid_generator.go && chmod +x traceid_generator.go; export START_TIME=$(date +%s%N); export TRACE_ID=$(go run ./traceid_generator.go); do echo '${data.template_file.server_consumer.rendered}' | sed -e \"s/START_TIME/$START_TIME/\" > server_consumer.json; curl -H 'Content-Type: application/json' -d @server_consumer.json -i http://127.0.0.1:4318/v1/metrics --verbose; echo '${data.template_file.client_producer.rendered}' | sed -e \"s/START_TIME/$START_TIME/\" > client_producer.json; curl -H 'Content-Type: application/json' -d @client_producer.json -i http://127.0.0.1:4318/v1/metrics --verbose; echo '${data.template_file.traces.rendered}' | sed -e \"s/START_TIME/$START_TIME/\" | sed -e \"s/TRACE_ID/$TRACE_ID/\" > traces.json; curl -H 'Content-Type: application/json' -d @traces.json -i http://127.0.0.1:4318/v1/traces --verbose; sleep 1; done"
"while true; echo '${data.template_file.traceid_generator.rendered}' > traceid_generator.go && chmod +x traceid_generator.go; export START_TIME=$(date +%s%N); export TRACE_ID=$(go run ./traceid_generator.go); do echo '${data.template_file.server_consumer.rendered}' | sed -e \"s/START_TIME/$START_TIME/\" > server_consumer.json; curl -H 'Content-Type: application/json' -d @server_consumer.json -i http://127.0.0.1:4316/v1/metrics --verbose; echo '${data.template_file.client_producer.rendered}' | sed -e \"s/START_TIME/$START_TIME/\" > client_producer.json; curl -H 'Content-Type: application/json' -d @client_producer.json -i http://127.0.0.1:4316/v1/metrics --verbose; echo '${data.template_file.traces.rendered}' | sed -e \"s/START_TIME/$START_TIME/\" | sed -e \"s/TRACE_ID/$TRACE_ID/\" > traces.json; curl -H 'Content-Type: application/json' -d @traces.json -i http://127.0.0.1:4316/v1/traces --verbose; sleep 1; done"
]
env {
name = "HOST_IP"
Expand Down
8 changes: 4 additions & 4 deletions test/metric/apm_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ var (

ServerConsumerInstructions = []dimension.Instruction{
{
Key: "HostedIn.EKS.Cluster",
Key: "EKS.Cluster",
Value: dimension.UnknownDimensionValue(),
},
{
Key: "HostedIn.K8s.Namespace",
Key: "K8s.Namespace",
Value: dimension.ExpectedDimensionValue{Value: aws.String("default")},
},
{
Expand All @@ -39,11 +39,11 @@ var (

ClientProducerInstructions = []dimension.Instruction{
{
Key: "HostedIn.EKS.Cluster",
Key: "EKS.Cluster",
Value: dimension.UnknownDimensionValue(),
},
{
Key: "HostedIn.K8s.Namespace",
Key: "K8s.Namespace",
Value: dimension.ExpectedDimensionValue{Value: aws.String("default")},
},
{
Expand Down

0 comments on commit ddfaa4f

Please sign in to comment.