Skip to content

Commit

Permalink
Merge pull request #124 from rsevilla87/use-svc
Browse files Browse the repository at this point in the history
Use prometheus service rather than route
  • Loading branch information
vishnuchalla authored Aug 8, 2024
2 parents 9fbc6bd + 7a88503 commit 93c1506
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 93c1506

Please sign in to comment.