Skip to content

Commit

Permalink
Use prometheus service rather than route
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 committed Jul 26, 2024
1 parent efabd4c commit 9223c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dittybopper/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ fi
#FIXME: This is OCP-Specific; needs updating to support k8s
echo ""
echo -e "\033[32mGetting environment vars...\033[0m"
export PROMETHEUS_URL="https://$($k8s_cmd get routes -n openshift-monitoring prometheus-k8s -o jsonpath="{.spec.host}")"
export PROMETHEUS_URL="https://prometheus-k8s.openshift-monitoring.svc.cluster.local:9091"
export PROMETHEUS_BEARER=$($k8s_cmd create token -n openshift-monitoring prometheus-k8s --duration 240h || $k8s_cmd sa get-token -n openshift-monitoring prometheus-k8s || $k8s_cmd sa new-token -n openshift-monitoring prometheus-k8s)
echo "Prometheus URL is: ${PROMETHEUS_URL}"
if [[ -n ${PROMETHEUS_BEARER} ]]; then
Expand Down

0 comments on commit 9223c8d

Please sign in to comment.