Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
6aa57e15
Commit
6aa57e15
authored
Dec 22, 2014
by
Brendan Burns
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3079 from vishh/fix_monitoring
Improve monitoring e2e test.
parents
2bc8d233
ad37518f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
monitoring.sh
hack/e2e-suite/monitoring.sh
+4
-2
No files found.
hack/e2e-suite/monitoring.sh
View file @
6aa57e15
...
@@ -68,10 +68,12 @@ function cleanup {
...
@@ -68,10 +68,12 @@ function cleanup {
}
}
function
influx-data-exists
{
function
influx-data-exists
{
local
max_retries
=
10
local
retry_delay
=
30
#seconds
local
influx_ip
=
$(
"
${
KUBECTL
}
"
get
-o
json pods influx-grafana |
grep
hostIP |
awk
'{print $2}'
|
sed
's/["|,]//g'
)
local
influx_ip
=
$(
"
${
KUBECTL
}
"
get
-o
json pods influx-grafana |
grep
hostIP |
awk
'{print $2}'
|
sed
's/["|,]//g'
)
local
influx_url
=
"http://
$influx_ip
:8086/db/k8s/series?u=root&p=root"
local
influx_url
=
"http://
$influx_ip
:8086/db/k8s/series?u=root&p=root"
if
!
curl
-G
$influx_url
--data-urlencode
"q=select * from stats limit 1"
\
if
!
curl
-
-retry
$max_retries
--retry-delay
$retry_delay
-
G
$influx_url
--data-urlencode
"q=select * from stats limit 1"
\
||
!
curl
-G
$influx_url
--data-urlencode
"q=select * from machine limit 1"
;
then
||
!
curl
-
-retry
$max_retries
--retry-delay
$retry_delay
-
G
$influx_url
--data-urlencode
"q=select * from machine limit 1"
;
then
echo
"failed to retrieve stats from Infludb. monitoring test failed"
echo
"failed to retrieve stats from Infludb. monitoring test failed"
exit
1
exit
1
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment