Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Denz
opsgenie_heartbeat
Commits
4cf4e231
Commit
4cf4e231
authored
Oct 22, 2019
by
Sebastian Denz
Browse files
remove vars from script
parent
0d3e5065
Pipeline
#8486
passed with stage
in 49 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
heartbeat.sh
View file @
4cf4e231
#!/bin/sh
# uses:
PROMETHEUS
=
"http://10.10.65.38:32090/-/healthy"
ALERTMANAGER
=
"http://10.10.65.38:32092/-/healthy"
APITOKEN
=
"
956b4bb7-5bd6-4512
-aea2-338b0155b6cb"
#
PROMETHEUS="http://10.10.65.38:32090/-/healthy"
#
ALERTMANAGER="http://10.10.65.38:32092/-/healthy"
#
APITOKEN="
12345565-123123-11
-aea2-338b0155b6cb"
if
[
"
$(
curl
$PROMETHEUS
2>/dev/null
)
"
!=
"Prometheus is Healthy."
]
then
...
...
Write
Preview
Supports
Markdown
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