Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flame
flame-clmc
Commits
a67fb730
Commit
a67fb730
authored
6 years ago
by
Nikolay Stanchev
Browse files
Options
Downloads
Patches
Plain Diff
Slight update to pipeline script
parent
626275e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/test/pipeline.sh
+5
-11
5 additions, 11 deletions
scripts/test/pipeline.sh
with
5 additions
and
11 deletions
scripts/test/pipeline.sh
+
5
−
11
View file @
a67fb730
...
...
@@ -40,8 +40,8 @@ do
'{from: $from, to: $to, service_function_chain: $sfc, service_function_chain_instance: $sfci, service_functions: {($sf): {measurement_name: $measurement, response_time_field: $response_time, request_size_field: $request_size, response_size_field: $response_size}}}'
)
echo
"Sending build request to CLMC"
response
=
$(
curl
-s
-X
POST
-d
"
${
JSON_STRING
}
"
http://
${
CLMC_IP
}
/clmc-service/graph/temporal
)
timestamp
=
$(
echo
${
response
}
| jq
-r
'.graph.time_range.to'
)
graph_uuid
=
$(
echo
${
response
}
| jq
-r
'.
graph
.
uuid
'
)
fields
=
$(
echo
${
response
}
| jq
-r
'.
| "\(.
graph.time_range.to
) \(.graph.uuid)"
'
)
read
timestamp
graph
_
uuid
<<<
${
fields
}
echo
"Received request uuid
${
graph_uuid
}
"
echo
"Timestamp to use for measurement
${
timestamp
}
"
...
...
@@ -57,18 +57,12 @@ do
local_tags
=
$(
echo
${
response
}
| jq
-r
'.local_tags | to_entries | map("\(.key)=\(.value|tostring)") | join (",")'
)
echo
"Local tags:
${
local_tags
}
"
rtt
=
$(
echo
${
response
}
| jq
-r
'.round_trip_time'
)
echo
"Round-trip-time:
${
rtt
}
"
service_delay
=
$(
echo
${
response
}
| jq
-r
'.response_time'
)
echo
"Service delay:
${
service_delay
}
"
network_delay
=
$(
echo
${
response
}
| jq
-r
'.total_forward_latency'
)
echo
"Network latency
${
network_delay
}
"
fields
=
$(
echo
${
response
}
| jq
-r
'. | "\(.round_trip_time) \(.response_time) \(.total_forward_latency)"'
)
read
rtt service_delay network_delay
<<<
${
fields
}
measurement_line
=
"
${
rtt_measurement
}
,
${
global_tags
}
,
${
local_tags
}
round_trip_time=
${
rtt
}
,service_delay=
${
service_delay
}
,network_delay=
${
network_delay
}
${
timestamp
}
"
echo
"Measurement line:
${
measurement_line
}
"
response
=
$(
curl
-si
-XPOST
"http://
${
CLMC_IP
}
/influxdb/write?db=
${
sfc
}
"
--data-binary
"
${
measurement_line
}
"
)
response
=
$(
curl
-si
-X
POST
"http://
${
CLMC_IP
}
/influxdb/write?db=
${
sfc
}
"
--data-binary
"
${
measurement_line
}
"
)
echo
"InfluxDB response:
${
response
}
"
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment