Skip to content

Commit da5c9c5

Browse files
authored
Modify endpoint printing for monitoring services
1 parent c32e32c commit da5c9c5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/endpoints.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ on:
2828
required: false
2929
default: ''
3030
type: string
31-
3231
jobs:
3332
print-endpoints:
3433
name: Print Service Endpoints
@@ -44,22 +43,22 @@ jobs:
4443
- name: Update kubeconfig
4544
run: |
4645
aws eks update-kubeconfig --name ${{ inputs.cluster_name }} --region us-east-1
47-
4846
- name: Print Service Endpoints
4947
run: |
5048
echo "================= SERVICE ENDPOINTS ================="
5149
ARGOCD_HOST=$(kubectl get svc argocd-server -n ${{ inputs.argocd_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
52-
PROM_HOST=$(kubectl get svc kube-prometheus-stack-prometheus -n ${{ inputs.monitoring_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
53-
GRAFANA_HOST=$(kubectl get svc kube-prometheus-stack-grafana -n ${{ inputs.monitoring_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
50+
MONITORING_HOST=$(kubectl get ingress monitoring-ingress -n ${{ inputs.monitoring_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
5451
APP_HOST=$(kubectl get svc ${{ inputs.app_name }}-svc -n ${{ inputs.app_namespace }} -o jsonpath='{.status.loadBalancer.ingress[0].hostname}' 2>/dev/null || echo 'Not found')
5552
echo "ArgoCD: http://$ARGOCD_HOST"
56-
echo "Prometheus: http://$PROM_HOST:9090"
57-
echo "Grafana: http://$GRAFANA_HOST"
53+
echo "Monitoring (All-in-One): http://$MONITORING_HOST"
54+
echo " ├── Grafana: http://$MONITORING_HOST/grafana"
55+
echo " ├── Prometheus: http://$MONITORING_HOST/prometheus"
56+
echo " └── AlertManager: http://$MONITORING_HOST/alertmanager"
5857
echo "App: http://$APP_HOST"
5958
echo "================= DEFAULT CREDENTIALS ================="
6059
ARGOCD_PASS=$(kubectl -n ${{ inputs.argocd_namespace }} get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' 2>/dev/null | base64 -d || echo 'Not found')
6160
echo "ArgoCD -> Username: admin"
6261
echo "ArgoCD -> Password: $ARGOCD_PASS"
6362
echo "Grafana -> Username: admin"
6463
echo "Grafana -> Password: ${{ secrets.GRAFANA_PASSWORD }}"
65-
echo "Prometheus -> No login needed (anonymous access by default)"
64+
echo "Prometheus -> No login needed (anonymous access by default)"

0 commit comments

Comments
 (0)